authservice

package
v0.0.0-...-700b64f Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authservice.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NewUser",
			Handler:    _Auth_NewUser_Handler,
		},
		{
			MethodName: "GetToken",
			Handler:    _Auth_GetToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authservice/authservice.proto",
}

Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	NewUser(ctx context.Context, in *NewUserRequest, opts ...grpc.CallOption) (*NewUserReply, error)
	GetToken(ctx context.Context, in *GetNewTokenRequest, opts ...grpc.CallOption) (*GetNewTokenReply, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	NewUser(context.Context, *NewUserRequest) (*NewUserReply, error)
	GetToken(context.Context, *GetNewTokenRequest) (*GetNewTokenReply, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type GetNewTokenReply

type GetNewTokenReply struct {
	Username             string                   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Status               *GetNewTokenReply_Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Token                string                   `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*GetNewTokenReply) Descriptor

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

func (*GetNewTokenReply) GetStatus

func (m *GetNewTokenReply) GetStatus() *GetNewTokenReply_Status

func (*GetNewTokenReply) GetToken

func (m *GetNewTokenReply) GetToken() string

func (*GetNewTokenReply) GetUsername

func (m *GetNewTokenReply) GetUsername() string

func (*GetNewTokenReply) ProtoMessage

func (*GetNewTokenReply) ProtoMessage()

func (*GetNewTokenReply) Reset

func (m *GetNewTokenReply) Reset()

func (*GetNewTokenReply) String

func (m *GetNewTokenReply) String() string

func (*GetNewTokenReply) XXX_DiscardUnknown

func (m *GetNewTokenReply) XXX_DiscardUnknown()

func (*GetNewTokenReply) XXX_Marshal

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

func (*GetNewTokenReply) XXX_Merge

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

func (*GetNewTokenReply) XXX_Size

func (m *GetNewTokenReply) XXX_Size() int

func (*GetNewTokenReply) XXX_Unmarshal

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

type GetNewTokenReply_Status

type GetNewTokenReply_Status struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetNewTokenReply_Status) Descriptor

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

func (*GetNewTokenReply_Status) GetMessage

func (m *GetNewTokenReply_Status) GetMessage() string

func (*GetNewTokenReply_Status) GetSuccess

func (m *GetNewTokenReply_Status) GetSuccess() bool

func (*GetNewTokenReply_Status) ProtoMessage

func (*GetNewTokenReply_Status) ProtoMessage()

func (*GetNewTokenReply_Status) Reset

func (m *GetNewTokenReply_Status) Reset()

func (*GetNewTokenReply_Status) String

func (m *GetNewTokenReply_Status) String() string

func (*GetNewTokenReply_Status) XXX_DiscardUnknown

func (m *GetNewTokenReply_Status) XXX_DiscardUnknown()

func (*GetNewTokenReply_Status) XXX_Marshal

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

func (*GetNewTokenReply_Status) XXX_Merge

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

func (*GetNewTokenReply_Status) XXX_Size

func (m *GetNewTokenReply_Status) XXX_Size() int

func (*GetNewTokenReply_Status) XXX_Unmarshal

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

type GetNewTokenRequest

type GetNewTokenRequest 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"`
	PreviousToken        string   `protobuf:"bytes,3,opt,name=previous_token,json=previousToken,proto3" json:"previous_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetNewTokenRequest) Descriptor

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

func (*GetNewTokenRequest) GetPassword

func (m *GetNewTokenRequest) GetPassword() string

func (*GetNewTokenRequest) GetPreviousToken

func (m *GetNewTokenRequest) GetPreviousToken() string

func (*GetNewTokenRequest) GetUsername

func (m *GetNewTokenRequest) GetUsername() string

func (*GetNewTokenRequest) ProtoMessage

func (*GetNewTokenRequest) ProtoMessage()

func (*GetNewTokenRequest) Reset

func (m *GetNewTokenRequest) Reset()

func (*GetNewTokenRequest) String

func (m *GetNewTokenRequest) String() string

func (*GetNewTokenRequest) XXX_DiscardUnknown

func (m *GetNewTokenRequest) XXX_DiscardUnknown()

func (*GetNewTokenRequest) XXX_Marshal

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

func (*GetNewTokenRequest) XXX_Merge

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

func (*GetNewTokenRequest) XXX_Size

func (m *GetNewTokenRequest) XXX_Size() int

func (*GetNewTokenRequest) XXX_Unmarshal

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

type NewUserReply

type NewUserReply struct {
	Username             string               `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Status               *NewUserReply_Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*NewUserReply) Descriptor

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

func (*NewUserReply) GetStatus

func (m *NewUserReply) GetStatus() *NewUserReply_Status

func (*NewUserReply) GetUsername

func (m *NewUserReply) GetUsername() string

func (*NewUserReply) ProtoMessage

func (*NewUserReply) ProtoMessage()

func (*NewUserReply) Reset

func (m *NewUserReply) Reset()

func (*NewUserReply) String

func (m *NewUserReply) String() string

func (*NewUserReply) XXX_DiscardUnknown

func (m *NewUserReply) XXX_DiscardUnknown()

func (*NewUserReply) XXX_Marshal

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

func (*NewUserReply) XXX_Merge

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

func (*NewUserReply) XXX_Size

func (m *NewUserReply) XXX_Size() int

func (*NewUserReply) XXX_Unmarshal

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

type NewUserReply_Status

type NewUserReply_Status struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewUserReply_Status) Descriptor

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

func (*NewUserReply_Status) GetMessage

func (m *NewUserReply_Status) GetMessage() string

func (*NewUserReply_Status) GetSuccess

func (m *NewUserReply_Status) GetSuccess() bool

func (*NewUserReply_Status) ProtoMessage

func (*NewUserReply_Status) ProtoMessage()

func (*NewUserReply_Status) Reset

func (m *NewUserReply_Status) Reset()

func (*NewUserReply_Status) String

func (m *NewUserReply_Status) String() string

func (*NewUserReply_Status) XXX_DiscardUnknown

func (m *NewUserReply_Status) XXX_DiscardUnknown()

func (*NewUserReply_Status) XXX_Marshal

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

func (*NewUserReply_Status) XXX_Merge

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

func (*NewUserReply_Status) XXX_Size

func (m *NewUserReply_Status) XXX_Size() int

func (*NewUserReply_Status) XXX_Unmarshal

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

type NewUserRequest

type NewUserRequest 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 (*NewUserRequest) Descriptor

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

func (*NewUserRequest) GetPassword

func (m *NewUserRequest) GetPassword() string

func (*NewUserRequest) GetUsername

func (m *NewUserRequest) GetUsername() string

func (*NewUserRequest) ProtoMessage

func (*NewUserRequest) ProtoMessage()

func (*NewUserRequest) Reset

func (m *NewUserRequest) Reset()

func (*NewUserRequest) String

func (m *NewUserRequest) String() string

func (*NewUserRequest) XXX_DiscardUnknown

func (m *NewUserRequest) XXX_DiscardUnknown()

func (*NewUserRequest) XXX_Marshal

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

func (*NewUserRequest) XXX_Merge

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

func (*NewUserRequest) XXX_Size

func (m *NewUserRequest) XXX_Size() int

func (*NewUserRequest) XXX_Unmarshal

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

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) GetToken

func (UnimplementedAuthServer) NewUser

type UnsafeAuthServer

type UnsafeAuthServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.

Jump to

Keyboard shortcuts

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