Documentation ¶
Overview ¶
Package go_micro_srv_dataservice is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
CreateUserReq CreateUserResp
Index ¶
- func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)
- func (m *CreateUserReq) GetName() string
- func (*CreateUserReq) ProtoMessage()
- func (m *CreateUserReq) Reset()
- func (m *CreateUserReq) String() string
- func (m *CreateUserReq) XXX_DiscardUnknown()
- func (m *CreateUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateUserReq) XXX_Merge(src proto.Message)
- func (m *CreateUserReq) XXX_Size() int
- func (m *CreateUserReq) XXX_Unmarshal(b []byte) error
- type CreateUserResp
- func (*CreateUserResp) Descriptor() ([]byte, []int)
- func (m *CreateUserResp) GetMsg() string
- func (*CreateUserResp) ProtoMessage()
- func (m *CreateUserResp) Reset()
- func (m *CreateUserResp) String() string
- func (m *CreateUserResp) XXX_DiscardUnknown()
- func (m *CreateUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateUserResp) XXX_Merge(src proto.Message)
- func (m *CreateUserResp) XXX_Size() int
- func (m *CreateUserResp) XXX_Unmarshal(b []byte) error
- type UserHandler
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserHandler ¶
func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error
Types ¶
type CreateUserReq ¶
type CreateUserReq struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUserReq) Descriptor ¶
func (*CreateUserReq) Descriptor() ([]byte, []int)
func (*CreateUserReq) GetName ¶
func (m *CreateUserReq) GetName() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) Reset ¶
func (m *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (m *CreateUserReq) String() string
func (*CreateUserReq) XXX_DiscardUnknown ¶
func (m *CreateUserReq) XXX_DiscardUnknown()
func (*CreateUserReq) XXX_Marshal ¶
func (m *CreateUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserReq) XXX_Merge ¶
func (dst *CreateUserReq) XXX_Merge(src proto.Message)
func (*CreateUserReq) XXX_Size ¶
func (m *CreateUserReq) XXX_Size() int
func (*CreateUserReq) XXX_Unmarshal ¶
func (m *CreateUserReq) XXX_Unmarshal(b []byte) error
type CreateUserResp ¶
type CreateUserResp struct { Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUserResp) Descriptor ¶
func (*CreateUserResp) Descriptor() ([]byte, []int)
func (*CreateUserResp) GetMsg ¶
func (m *CreateUserResp) GetMsg() string
func (*CreateUserResp) ProtoMessage ¶
func (*CreateUserResp) ProtoMessage()
func (*CreateUserResp) Reset ¶
func (m *CreateUserResp) Reset()
func (*CreateUserResp) String ¶
func (m *CreateUserResp) String() string
func (*CreateUserResp) XXX_DiscardUnknown ¶
func (m *CreateUserResp) XXX_DiscardUnknown()
func (*CreateUserResp) XXX_Marshal ¶
func (m *CreateUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserResp) XXX_Merge ¶
func (dst *CreateUserResp) XXX_Merge(src proto.Message)
func (*CreateUserResp) XXX_Size ¶
func (m *CreateUserResp) XXX_Size() int
func (*CreateUserResp) XXX_Unmarshal ¶
func (m *CreateUserResp) XXX_Unmarshal(b []byte) error
type UserHandler ¶
type UserHandler interface {
CreateUser(context.Context, *CreateUserReq, *CreateUserResp) error
}
type UserService ¶
type UserService interface {
CreateUser(ctx context.Context, in *CreateUserReq, opts ...client.CallOption) (*CreateUserResp, error)
}
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
Click to show internal directories.
Click to hide internal directories.