Documentation ¶
Index ¶
- type Server
- func (server *Server) Decode(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
- func (server *Server) DecodeString(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
- func (server *Server) Encode(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
- func (server *Server) EncodeString(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct{}
Server - RPC server
func (*Server) Decode ¶
func (server *Server) Decode(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
Decode - common.Decode RPC handler
func (*Server) DecodeString ¶
func (server *Server) DecodeString(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
DecodeString - common.DecodeString RPC handler
func (*Server) Encode ¶
func (server *Server) Encode(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
Encode - common.Encode RPC handler
func (*Server) EncodeString ¶
func (server *Server) EncodeString(ctx context.Context, req *commonProto.GeneralRequest) (*commonProto.GeneralResponse, error)
EncodeString - common.EncodeString RPC handler
Click to show internal directories.
Click to hide internal directories.