Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthServer
- type CheckAuthenticationRequest
- func (*CheckAuthenticationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckAuthenticationRequest) GetToken() string
- func (*CheckAuthenticationRequest) ProtoMessage()
- func (x *CheckAuthenticationRequest) ProtoReflect() protoreflect.Message
- func (x *CheckAuthenticationRequest) Reset()
- func (x *CheckAuthenticationRequest) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPasswordRaw() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetData() *LoginResponse_LoginResponseData
- func (x *LoginResponse) GetErrors() map[string]string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type LoginResponse_LoginResponseData
- func (*LoginResponse_LoginResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse_LoginResponseData) GetToken() string
- func (*LoginResponse_LoginResponseData) ProtoMessage()
- func (x *LoginResponse_LoginResponseData) ProtoReflect() protoreflect.Message
- func (x *LoginResponse_LoginResponseData) Reset()
- func (x *LoginResponse_LoginResponseData) String() string
- type UnimplementedAuthServer
- type UnsafeAuthServer
Constants ¶
This section is empty.
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "meetmorrowsolonmars.co_story.auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "CheckAuthentication", Handler: _Auth_CheckAuthentication_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.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)
var File_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) CheckAuthentication(ctx context.Context, in *CheckAuthenticationRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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 { Login(context.Context, *LoginRequest) (*LoginResponse, error) CheckAuthentication(context.Context, *CheckAuthenticationRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type CheckAuthenticationRequest ¶
type CheckAuthenticationRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CheckAuthenticationRequest) Descriptor
deprecated
func (*CheckAuthenticationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckAuthenticationRequest.ProtoReflect.Descriptor instead.
func (*CheckAuthenticationRequest) GetToken ¶
func (x *CheckAuthenticationRequest) GetToken() string
func (*CheckAuthenticationRequest) ProtoMessage ¶
func (*CheckAuthenticationRequest) ProtoMessage()
func (*CheckAuthenticationRequest) ProtoReflect ¶
func (x *CheckAuthenticationRequest) ProtoReflect() protoreflect.Message
func (*CheckAuthenticationRequest) Reset ¶
func (x *CheckAuthenticationRequest) Reset()
func (*CheckAuthenticationRequest) String ¶
func (x *CheckAuthenticationRequest) String() string
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` PasswordRaw string `protobuf:"bytes,3,opt,name=password_raw,json=passwordRaw,proto3" json:"password_raw,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPasswordRaw ¶
func (x *LoginRequest) GetPasswordRaw() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Data *LoginResponse_LoginResponseData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetData ¶
func (x *LoginResponse) GetData() *LoginResponse_LoginResponseData
func (*LoginResponse) GetErrors ¶
func (x *LoginResponse) GetErrors() map[string]string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type LoginResponse_LoginResponseData ¶
type LoginResponse_LoginResponseData struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse_LoginResponseData) Descriptor
deprecated
func (*LoginResponse_LoginResponseData) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse_LoginResponseData.ProtoReflect.Descriptor instead.
func (*LoginResponse_LoginResponseData) GetToken ¶
func (x *LoginResponse_LoginResponseData) GetToken() string
func (*LoginResponse_LoginResponseData) ProtoMessage ¶
func (*LoginResponse_LoginResponseData) ProtoMessage()
func (*LoginResponse_LoginResponseData) ProtoReflect ¶
func (x *LoginResponse_LoginResponseData) ProtoReflect() protoreflect.Message
func (*LoginResponse_LoginResponseData) Reset ¶
func (x *LoginResponse_LoginResponseData) Reset()
func (*LoginResponse_LoginResponseData) String ¶
func (x *LoginResponse_LoginResponseData) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) CheckAuthentication ¶
func (UnimplementedAuthServer) CheckAuthentication(context.Context, *CheckAuthenticationRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
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.