Documentation
¶
Index ¶
- Variables
- func NewUserServiceEndpoints() []*api.Endpoint
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
- type LoginInput
- type LoginOutPut
- func (*LoginOutPut) Descriptor() ([]byte, []int)deprecated
- func (x *LoginOutPut) GetAccessToken() string
- func (x *LoginOutPut) GetExpiresIn() int32
- func (x *LoginOutPut) GetScope() string
- func (x *LoginOutPut) GetTokenType() string
- func (*LoginOutPut) ProtoMessage()
- func (x *LoginOutPut) ProtoReflect() protoreflect.Message
- func (x *LoginOutPut) Reset()
- func (x *LoginOutPut) String() string
- type UserService
- type UserServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_user_micro_proto protoreflect.FileDescriptor
Functions ¶
func NewUserServiceEndpoints ¶
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
Types ¶
type LoginInput ¶
type LoginInput struct { Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` // contains filtered or unexported fields }
func (*LoginInput) Descriptor
deprecated
func (*LoginInput) Descriptor() ([]byte, []int)
Deprecated: Use LoginInput.ProtoReflect.Descriptor instead.
func (*LoginInput) GetCode ¶
func (x *LoginInput) GetCode() string
func (*LoginInput) ProtoMessage ¶
func (*LoginInput) ProtoMessage()
func (*LoginInput) ProtoReflect ¶
func (x *LoginInput) ProtoReflect() protoreflect.Message
func (*LoginInput) Reset ¶
func (x *LoginInput) Reset()
func (*LoginInput) String ¶
func (x *LoginInput) String() string
type LoginOutPut ¶
type LoginOutPut struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` ExpiresIn int32 `protobuf:"varint,2,opt,name=ExpiresIn,proto3" json:"ExpiresIn,omitempty"` TokenType string `protobuf:"bytes,3,opt,name=TokenType,proto3" json:"TokenType,omitempty"` Scope string `protobuf:"bytes,4,opt,name=Scope,proto3" json:"Scope,omitempty"` // contains filtered or unexported fields }
func (*LoginOutPut) Descriptor
deprecated
func (*LoginOutPut) Descriptor() ([]byte, []int)
Deprecated: Use LoginOutPut.ProtoReflect.Descriptor instead.
func (*LoginOutPut) GetAccessToken ¶
func (x *LoginOutPut) GetAccessToken() string
func (*LoginOutPut) GetExpiresIn ¶
func (x *LoginOutPut) GetExpiresIn() int32
func (*LoginOutPut) GetScope ¶
func (x *LoginOutPut) GetScope() string
func (*LoginOutPut) GetTokenType ¶
func (x *LoginOutPut) GetTokenType() string
func (*LoginOutPut) ProtoMessage ¶
func (*LoginOutPut) ProtoMessage()
func (*LoginOutPut) ProtoReflect ¶
func (x *LoginOutPut) ProtoReflect() protoreflect.Message
func (*LoginOutPut) Reset ¶
func (x *LoginOutPut) Reset()
func (*LoginOutPut) String ¶
func (x *LoginOutPut) String() string
type UserService ¶
type UserService interface {
LoginServer(ctx context.Context, in *LoginInput, opts ...client.CallOption) (*LoginOutPut, error)
}
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
type UserServiceHandler ¶
type UserServiceHandler interface {
LoginServer(context.Context, *LoginInput, *LoginOutPut) error
}
Click to show internal directories.
Click to hide internal directories.