auth

package
v0.0.0-...-12eefb5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuth   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, 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.ClientConn) AuthServiceClient

type AuthServiceServer

type AuthServiceServer interface {
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
}

AuthServiceServer is the server API for AuthService service.

type CreateUserRequest

type CreateUserRequest 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"`
}

func (*CreateUserRequest) Descriptor

func (*CreateUserRequest) Descriptor() ([]byte, []int)

func (*CreateUserRequest) Equal

func (this *CreateUserRequest) Equal(that interface{}) bool

func (*CreateUserRequest) GetPassword

func (m *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (m *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) GoString

func (this *CreateUserRequest) GoString() string

func (*CreateUserRequest) Marshal

func (m *CreateUserRequest) Marshal() (dAtA []byte, err error)

func (*CreateUserRequest) MarshalTo

func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) Reset

func (m *CreateUserRequest) Reset()

func (*CreateUserRequest) Size

func (m *CreateUserRequest) Size() (n int)

func (*CreateUserRequest) String

func (this *CreateUserRequest) String() string

func (*CreateUserRequest) Unmarshal

func (m *CreateUserRequest) Unmarshal(dAtA []byte) error

func (*CreateUserRequest) XXX_DiscardUnknown

func (m *CreateUserRequest) XXX_DiscardUnknown()

func (*CreateUserRequest) XXX_Marshal

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

func (*CreateUserRequest) XXX_Merge

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

func (*CreateUserRequest) XXX_Size

func (m *CreateUserRequest) XXX_Size() int

func (*CreateUserRequest) XXX_Unmarshal

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

type CreateUserResponse

type CreateUserResponse struct {
}

func (*CreateUserResponse) Descriptor

func (*CreateUserResponse) Descriptor() ([]byte, []int)

func (*CreateUserResponse) Equal

func (this *CreateUserResponse) Equal(that interface{}) bool

func (*CreateUserResponse) GoString

func (this *CreateUserResponse) GoString() string

func (*CreateUserResponse) Marshal

func (m *CreateUserResponse) Marshal() (dAtA []byte, err error)

func (*CreateUserResponse) MarshalTo

func (m *CreateUserResponse) MarshalTo(dAtA []byte) (int, error)

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) Reset

func (m *CreateUserResponse) Reset()

func (*CreateUserResponse) Size

func (m *CreateUserResponse) Size() (n int)

func (*CreateUserResponse) String

func (this *CreateUserResponse) String() string

func (*CreateUserResponse) Unmarshal

func (m *CreateUserResponse) Unmarshal(dAtA []byte) error

func (*CreateUserResponse) XXX_DiscardUnknown

func (m *CreateUserResponse) XXX_DiscardUnknown()

func (*CreateUserResponse) XXX_Marshal

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

func (*CreateUserResponse) XXX_Merge

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

func (*CreateUserResponse) XXX_Size

func (m *CreateUserResponse) XXX_Size() int

func (*CreateUserResponse) XXX_Unmarshal

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

type LoginRequest

type LoginRequest 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"`
}

func (*LoginRequest) Descriptor

func (*LoginRequest) Descriptor() ([]byte, []int)

func (*LoginRequest) Equal

func (this *LoginRequest) Equal(that interface{}) bool

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (m *LoginRequest) GetUsername() string

func (*LoginRequest) GoString

func (this *LoginRequest) GoString() string

func (*LoginRequest) Marshal

func (m *LoginRequest) Marshal() (dAtA []byte, err error)

func (*LoginRequest) MarshalTo

func (m *LoginRequest) MarshalTo(dAtA []byte) (int, error)

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) Size

func (m *LoginRequest) Size() (n int)

func (*LoginRequest) String

func (this *LoginRequest) String() string

func (*LoginRequest) Unmarshal

func (m *LoginRequest) Unmarshal(dAtA []byte) error

func (*LoginRequest) XXX_DiscardUnknown

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal

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

func (*LoginRequest) XXX_Merge

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

func (*LoginRequest) XXX_Size

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal

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

type LoginResponse

type LoginResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}

func (*LoginResponse) Descriptor

func (*LoginResponse) Descriptor() ([]byte, []int)

func (*LoginResponse) Equal

func (this *LoginResponse) Equal(that interface{}) bool

func (*LoginResponse) GetToken

func (m *LoginResponse) GetToken() string

func (*LoginResponse) GoString

func (this *LoginResponse) GoString() string

func (*LoginResponse) Marshal

func (m *LoginResponse) Marshal() (dAtA []byte, err error)

func (*LoginResponse) MarshalTo

func (m *LoginResponse) MarshalTo(dAtA []byte) (int, error)

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) Size

func (m *LoginResponse) Size() (n int)

func (*LoginResponse) String

func (this *LoginResponse) String() string

func (*LoginResponse) Unmarshal

func (m *LoginResponse) Unmarshal(dAtA []byte) error

func (*LoginResponse) XXX_DiscardUnknown

func (m *LoginResponse) XXX_DiscardUnknown()

func (*LoginResponse) XXX_Marshal

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

func (*LoginResponse) XXX_Merge

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

func (*LoginResponse) XXX_Size

func (m *LoginResponse) XXX_Size() int

func (*LoginResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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