Documentation ¶
Index ¶
- Constants
- Variables
- func Decode(dst interface{}, data map[string]string) error
- func Encode(data interface{}) []interface{}
- func Find(ctx context.Context, redisClient redis.Cmdable, dst interface{}, key string, ...) error
- func GetTagByField(field reflect.StructField, fieldTag string) string
- func Storge(ctx context.Context, redisClient redis.Cmdable, key string, ...) error
- type Request
- type Response
- type StructValue
Constants ¶
View Source
const (
TagName = "json"
)
Variables ¶
View Source
var ( ErrParam = errors.New("参数不正确") ErrNotFound = errors.New("查询结果为0") )
View Source
var File_proto_great_hall_proto protoreflect.FileDescriptor
View Source
var (
Nil = []byte("null")
)
Functions ¶
func GetTagByField ¶
func GetTagByField(field reflect.StructField, fieldTag string) string
Types ¶
type Request ¶
type Request struct { Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type StructValue ¶
type StructValue struct {
// contains filtered or unexported fields
}
func Struct ¶
func Struct(dst interface{}) (StructValue, error)
Click to show internal directories.
Click to hide internal directories.