Documentation ¶
Index ¶
- func NewUserServiceEndpoints() []*api.Endpoint
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- 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 UserServiceClient
- type UserServiceHandler
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserServiceEndpoints ¶ added in v0.0.17
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
func RegisterUserServiceServer ¶ added in v0.0.17
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
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 UserServiceClient ¶ added in v0.0.17
type UserServiceClient interface {
Signup(ctx context.Context, in *ReqSignup, opts ...grpc.CallOption) (*RespSignup, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶ added in v0.0.17
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceHandler ¶
type UserServiceHandler interface {
Signup(context.Context, *ReqSignup, *RespSignup) error
}
type UserServiceServer ¶ added in v0.0.17
type UserServiceServer interface {
Signup(context.Context, *ReqSignup) (*RespSignup, error)
}
UserServiceServer is the server API for UserService service.
Click to show internal directories.
Click to hide internal directories.