user_micro

package
v0.0.0-...-35394d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_user_user_micro_proto protoreflect.FileDescriptor

Functions

func NewUserServiceEndpoints

func NewUserServiceEndpoints() []*api.Endpoint

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL