mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
244 lines
4.8 KiB
Go
244 lines
4.8 KiB
Go
package service
|
|
|
|
type Handler struct{}
|
|
|
|
func (h *Handler) Bool(v bool) bool {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) BoolPtr(v bool) *bool {
|
|
return &v
|
|
}
|
|
|
|
func (h *Handler) Int(v int) int {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int32(v int32) int32 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int64(v int64) int64 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt(v uint) uint {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt32(v uint32) uint32 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt64(v uint64) uint64 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float32(v float32) float32 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float64(v float64) float64 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) String(v string) string {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Struct(v Struct) Struct {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Interface(v interface{}) interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) BoolSlice(v []bool) []bool {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) IntSlice(v []int) []int {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int32Slice(v []int32) []int32 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int64Slice(v []int64) []int64 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UIntSlice(v []uint) []uint {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt32Slice(v []uint32) []uint32 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt64Slice(v []uint64) []uint64 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float32Slice(v []float32) []float32 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float64Slice(v []float64) []float64 {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) StringSlice(v []string) []string {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) IntMap(v map[int]interface{}) map[int]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int32Map(v map[int32]interface{}) map[int32]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int64Map(v map[int64]interface{}) map[int64]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UIntMap(v map[uint]interface{}) map[uint]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt32Map(v map[uint32]interface{}) map[uint32]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt64Map(v map[uint64]interface{}) map[uint64]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float32Map(v map[float32]interface{}) map[float32]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float64Map(v map[float64]interface{}) map[float64]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) StringMap(v map[string]interface{}) map[string]interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) IntTypeMap(v map[IntTypeMapKey]IntTypeMapValue) map[IntTypeMapKey]IntTypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int32TypeMap(v map[Int32TypeMapKey]Int32TypeMapValue) map[Int32TypeMapKey]Int32TypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int64TypeMap(v map[Int64TypeMapKey]Int64TypeMapValue) map[Int64TypeMapKey]Int64TypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UIntTypeMap(v map[UIntTypeMapKey]UIntTypeMapValue) map[UIntTypeMapKey]UIntTypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt32TypeMap(v map[UInt32TypeMapKey]UInt32TypeMapValue) map[UInt32TypeMapKey]UInt32TypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt64TypeMap(v map[UInt64TypeMapKey]UInt64TypeMapValue) map[UInt64TypeMapKey]UInt64TypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float32TypeMap(v map[Float32TypeMapKey]Float32TypeMapValue) map[Float32TypeMapKey]Float32TypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float64TypeMap(v map[Float64TypeMapKey]Float64TypeMapValue) map[Float64TypeMapKey]Float64TypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) StringTypeMap(v map[StringTypeMapKey]StringTypeMapValue) map[StringTypeMapKey]StringTypeMapValue {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) IntTypeMapTyped(v IntTypeMapTyped) IntTypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int32TypeMapTyped(v Int32TypeMapTyped) Int32TypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int64TypeMapTyped(v Int64TypeMapTyped) Int64TypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UIntTypeMapTyped(v UIntTypeMapTyped) UIntTypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt32TypeMapTyped(v UInt32TypeMapTyped) UInt32TypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt64TypeMapTyped(v UInt64TypeMapTyped) UInt64TypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float32TypeMapTyped(v Float32TypeMapTyped) Float32TypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float64TypeMapTyped(v Float64TypeMapTyped) Float64TypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) StringTypeMapTyped(v StringTypeMapTyped) StringTypeMapTyped {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) InterfaceSlice(v []interface{}) []interface{} {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) IntType(v IntType) IntType {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int32Type(v Int32Type) Int32Type {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Int64Type(v Int64Type) Int64Type {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UIntType(v UIntType) UIntType {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt32Type(v UInt32Type) UInt32Type {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) UInt64Type(v UInt64Type) UInt64Type {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float32Type(v Float32Type) Float32Type {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) Float64Type(v Float64Type) Float64Type {
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) StringType(v StringType) StringType {
|
|
return v
|
|
}
|