Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyStringProto ¶
type AnyStringProto struct {
Content string
}
func (*AnyStringProto) MarshalJSON ¶
func (r *AnyStringProto) MarshalJSON() ([]byte, error)
func (*AnyStringProto) ProtoReflect ¶
func (r *AnyStringProto) ProtoReflect() protoreflect.Message
func (*AnyStringProto) String ¶
func (r *AnyStringProto) String() string
type BizContext ¶
type ProtoHandler ¶
type ProtoHandler interface { // Validate is used for request verification. Validate(*BizContext, ProtoRequest, *errorcode.Errs) // Handle is used to process business logic Handle(*BizContext, ProtoRequest) ProtoResponse // GetType returns the type of request and response. GetType() (reqType, respType reflect.Type) }
ProtoHandler Is the service handler interface.
type ProtoRequest ¶
type ProtoResponse ¶
Click to show internal directories.
Click to hide internal directories.