Documentation
¶
Overview ¶
Package authpb is a generated protocol buffer package.
It is generated from these files:
github.com/molon/gomsg/pb/authpb/auth.proto
It has these top-level messages:
AuthResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { // 鉴权 Auth(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*AuthResponse, error) }
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthResponse ¶
type AuthResponse struct { // 用户id Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` // 平台 mobile/desktop 或者 其他 Platform string `protobuf:"bytes,2,opt,name=platform" json:"platform,omitempty"` }
func (*AuthResponse) Descriptor ¶
func (*AuthResponse) Descriptor() ([]byte, []int)
func (*AuthResponse) GetPlatform ¶
func (m *AuthResponse) GetPlatform() string
func (*AuthResponse) GetUid ¶
func (m *AuthResponse) GetUid() string
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) Reset ¶
func (m *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (m *AuthResponse) String() string
type AuthServer ¶
type AuthServer interface { // 鉴权 Auth(context.Context, *google_protobuf.Empty) (*AuthResponse, error) }
Click to show internal directories.
Click to hide internal directories.