Documentation ¶
Index ¶
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type ReqLogin
- func (*ReqLogin) Descriptor() ([]byte, []int)
- func (m *ReqLogin) GetPassword() string
- func (m *ReqLogin) GetUsername() string
- func (*ReqLogin) ProtoMessage()
- func (m *ReqLogin) Reset()
- func (m *ReqLogin) String() string
- func (m *ReqLogin) XXX_DiscardUnknown()
- func (m *ReqLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqLogin) XXX_Merge(src proto.Message)
- func (m *ReqLogin) XXX_Size() int
- func (m *ReqLogin) XXX_Unmarshal(b []byte) error
- type RespLogin
- func (*RespLogin) Descriptor() ([]byte, []int)
- func (m *RespLogin) GetToken() string
- func (*RespLogin) ProtoMessage()
- func (m *RespLogin) Reset()
- func (m *RespLogin) String() string
- func (m *RespLogin) XXX_DiscardUnknown()
- func (m *RespLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespLogin) XXX_Merge(src proto.Message)
- func (m *RespLogin) XXX_Size() int
- func (m *RespLogin) XXX_Unmarshal(b []byte) error
- type UnimplementedAuthServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // Unary Login(ctx context.Context, in *ReqLogin, opts ...grpc.CallOption) (*RespLogin, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
AuthServiceServer is the server API for AuthService service.
type ReqLogin ¶
type ReqLogin 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 (*ReqLogin) Descriptor ¶
func (*ReqLogin) GetPassword ¶
func (*ReqLogin) GetUsername ¶
func (*ReqLogin) ProtoMessage ¶
func (*ReqLogin) ProtoMessage()
func (*ReqLogin) XXX_DiscardUnknown ¶
func (m *ReqLogin) XXX_DiscardUnknown()
func (*ReqLogin) XXX_Marshal ¶
func (*ReqLogin) XXX_Unmarshal ¶
type RespLogin ¶
type RespLogin struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespLogin) Descriptor ¶
func (*RespLogin) ProtoMessage ¶
func (*RespLogin) ProtoMessage()
func (*RespLogin) XXX_DiscardUnknown ¶
func (m *RespLogin) XXX_DiscardUnknown()
func (*RespLogin) XXX_Marshal ¶
func (*RespLogin) XXX_Unmarshal ¶
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.