authpb

package
v0.0.0-...-cb3637a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

type AuthServiceServer

type AuthServiceServer interface {
	// Unary
	Login(context.Context, *ReqLogin) (*RespLogin, error)
}

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) Descriptor() ([]byte, []int)

func (*ReqLogin) GetPassword

func (m *ReqLogin) GetPassword() string

func (*ReqLogin) GetUsername

func (m *ReqLogin) GetUsername() string

func (*ReqLogin) ProtoMessage

func (*ReqLogin) ProtoMessage()

func (*ReqLogin) Reset

func (m *ReqLogin) Reset()

func (*ReqLogin) String

func (m *ReqLogin) String() string

func (*ReqLogin) XXX_DiscardUnknown

func (m *ReqLogin) XXX_DiscardUnknown()

func (*ReqLogin) XXX_Marshal

func (m *ReqLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqLogin) XXX_Merge

func (m *ReqLogin) XXX_Merge(src proto.Message)

func (*ReqLogin) XXX_Size

func (m *ReqLogin) XXX_Size() int

func (*ReqLogin) XXX_Unmarshal

func (m *ReqLogin) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespLogin) GetToken

func (m *RespLogin) GetToken() string

func (*RespLogin) ProtoMessage

func (*RespLogin) ProtoMessage()

func (*RespLogin) Reset

func (m *RespLogin) Reset()

func (*RespLogin) String

func (m *RespLogin) String() string

func (*RespLogin) XXX_DiscardUnknown

func (m *RespLogin) XXX_DiscardUnknown()

func (*RespLogin) XXX_Marshal

func (m *RespLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespLogin) XXX_Merge

func (m *RespLogin) XXX_Merge(src proto.Message)

func (*RespLogin) XXX_Size

func (m *RespLogin) XXX_Size() int

func (*RespLogin) XXX_Unmarshal

func (m *RespLogin) XXX_Unmarshal(b []byte) error

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) Login

Jump to

Keyboard shortcuts

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