Documentation ¶
Index ¶
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
- type ReqSignup
- func (*ReqSignup) Descriptor() ([]byte, []int)
- func (m *ReqSignup) GetPassword() string
- func (m *ReqSignup) GetUsername() string
- func (*ReqSignup) ProtoMessage()
- func (m *ReqSignup) Reset()
- func (m *ReqSignup) String() string
- func (m *ReqSignup) XXX_DiscardUnknown()
- func (m *ReqSignup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqSignup) XXX_Merge(src proto.Message)
- func (m *ReqSignup) XXX_Size() int
- func (m *ReqSignup) XXX_Unmarshal(b []byte) error
- type RespSignup
- func (*RespSignup) Descriptor() ([]byte, []int)
- func (m *RespSignup) GetCode() int32
- func (m *RespSignup) GetMessage() string
- func (*RespSignup) ProtoMessage()
- func (m *RespSignup) Reset()
- func (m *RespSignup) String() string
- func (m *RespSignup) XXX_DiscardUnknown()
- func (m *RespSignup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespSignup) XXX_Merge(src proto.Message)
- func (m *RespSignup) XXX_Size() int
- func (m *RespSignup) XXX_Unmarshal(b []byte) error
- type UserService
- type UserServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
Types ¶
type ReqSignup ¶
type ReqSignup struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqSignup) Descriptor ¶
func (*ReqSignup) GetPassword ¶
func (*ReqSignup) GetUsername ¶
func (*ReqSignup) ProtoMessage ¶
func (*ReqSignup) ProtoMessage()
func (*ReqSignup) XXX_DiscardUnknown ¶
func (m *ReqSignup) XXX_DiscardUnknown()
func (*ReqSignup) XXX_Marshal ¶
func (*ReqSignup) XXX_Unmarshal ¶
type RespSignup ¶
type RespSignup struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespSignup) Descriptor ¶
func (*RespSignup) Descriptor() ([]byte, []int)
func (*RespSignup) GetCode ¶
func (m *RespSignup) GetCode() int32
func (*RespSignup) GetMessage ¶
func (m *RespSignup) GetMessage() string
func (*RespSignup) ProtoMessage ¶
func (*RespSignup) ProtoMessage()
func (*RespSignup) Reset ¶
func (m *RespSignup) Reset()
func (*RespSignup) String ¶
func (m *RespSignup) String() string
func (*RespSignup) XXX_DiscardUnknown ¶
func (m *RespSignup) XXX_DiscardUnknown()
func (*RespSignup) XXX_Marshal ¶
func (m *RespSignup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespSignup) XXX_Merge ¶
func (m *RespSignup) XXX_Merge(src proto.Message)
func (*RespSignup) XXX_Size ¶
func (m *RespSignup) XXX_Size() int
func (*RespSignup) XXX_Unmarshal ¶
func (m *RespSignup) XXX_Unmarshal(b []byte) error
type UserService ¶
type UserService interface {
Signup(ctx context.Context, in *ReqSignup, opts ...client.CallOption) (*RespSignup, error)
}
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
type UserServiceHandler ¶
type UserServiceHandler interface {
Signup(context.Context, *ReqSignup, *RespSignup) error
}
Click to show internal directories.
Click to hide internal directories.