Documentation ¶
Index ¶
- Variables
- func RegisterUserAuthenticationServer(s grpc.ServiceRegistrar, srv UserAuthenticationServer)
- type AddAppAccessRequest
- func (*AddAppAccessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddAppAccessRequest) GetAppRole() common.AppRole
- func (x *AddAppAccessRequest) GetAppUuid() string
- func (x *AddAppAccessRequest) GetTracing_ID() string
- func (x *AddAppAccessRequest) GetUserUuid() string
- func (*AddAppAccessRequest) ProtoMessage()
- func (x *AddAppAccessRequest) ProtoReflect() protoreflect.Message
- func (x *AddAppAccessRequest) Reset()
- func (x *AddAppAccessRequest) String() string
- type AddAppAccessResponse
- func (*AddAppAccessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddAppAccessResponse) GetMsg() string
- func (x *AddAppAccessResponse) GetStatusCode() int32
- func (*AddAppAccessResponse) ProtoMessage()
- func (x *AddAppAccessResponse) ProtoReflect() protoreflect.Message
- func (x *AddAppAccessResponse) Reset()
- func (x *AddAppAccessResponse) String() string
- type IsAuthedRequest
- func (*IsAuthedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsAuthedRequest) GetAccessToken() string
- func (x *IsAuthedRequest) GetTracing_ID() string
- func (*IsAuthedRequest) ProtoMessage()
- func (x *IsAuthedRequest) ProtoReflect() protoreflect.Message
- func (x *IsAuthedRequest) Reset()
- func (x *IsAuthedRequest) String() string
- type IsAuthedResponse
- func (*IsAuthedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsAuthedResponse) GetAuthedUser() *common.AuthedUser
- func (x *IsAuthedResponse) GetIsAuthed() bool
- func (x *IsAuthedResponse) GetMsg() string
- func (x *IsAuthedResponse) GetStatusCode() int32
- func (*IsAuthedResponse) ProtoMessage()
- func (x *IsAuthedResponse) ProtoReflect() protoreflect.Message
- func (x *IsAuthedResponse) Reset()
- func (x *IsAuthedResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetTracing_ID() 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) GetAccessToken() string
- func (x *LoginResponse) GetMsg() string
- func (x *LoginResponse) GetStatusCode() int32
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetOrganisation() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetTracing_ID() string
- func (x *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetMsg() string
- func (x *RegisterResponse) GetStatusCode() int32
- func (x *RegisterResponse) GetUserUuid() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type UnimplementedUserAuthenticationServer
- func (UnimplementedUserAuthenticationServer) AddAppAccess(context.Context, *AddAppAccessRequest) (*AddAppAccessResponse, error)
- func (UnimplementedUserAuthenticationServer) IsAuthed(context.Context, *IsAuthedRequest) (*IsAuthedResponse, error)
- func (UnimplementedUserAuthenticationServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedUserAuthenticationServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- type UnsafeUserAuthenticationServer
- type UserAuthenticationClient
- type UserAuthenticationServer
Constants ¶
This section is empty.
Variables ¶
var File_service_user_auth_agent_cmd_grpcserver_proto_api_user_auth_proto protoreflect.FileDescriptor
var UserAuthentication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth_proto.UserAuthentication", HandlerType: (*UserAuthenticationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _UserAuthentication_Register_Handler, }, { MethodName: "Login", Handler: _UserAuthentication_Login_Handler, }, { MethodName: "IsAuthed", Handler: _UserAuthentication_IsAuthed_Handler, }, { MethodName: "AddAppAccess", Handler: _UserAuthentication_AddAppAccess_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.user.auth.agent/cmd/grpcserver/proto/api.user-auth.proto", }
UserAuthentication_ServiceDesc is the grpc.ServiceDesc for UserAuthentication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserAuthenticationServer ¶
func RegisterUserAuthenticationServer(s grpc.ServiceRegistrar, srv UserAuthenticationServer)
Types ¶
type AddAppAccessRequest ¶
type AddAppAccessRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` UserUuid string `protobuf:"bytes,2,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"` AppUuid string `protobuf:"bytes,3,opt,name=app_uuid,json=appUuid,proto3" json:"app_uuid,omitempty"` AppRole common.AppRole `protobuf:"varint,4,opt,name=app_role,json=appRole,proto3,enum=common.AppRole" json:"app_role,omitempty"` // contains filtered or unexported fields }
func (*AddAppAccessRequest) Descriptor
deprecated
func (*AddAppAccessRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddAppAccessRequest.ProtoReflect.Descriptor instead.
func (*AddAppAccessRequest) GetAppRole ¶
func (x *AddAppAccessRequest) GetAppRole() common.AppRole
func (*AddAppAccessRequest) GetAppUuid ¶
func (x *AddAppAccessRequest) GetAppUuid() string
func (*AddAppAccessRequest) GetTracing_ID ¶
func (x *AddAppAccessRequest) GetTracing_ID() string
func (*AddAppAccessRequest) GetUserUuid ¶
func (x *AddAppAccessRequest) GetUserUuid() string
func (*AddAppAccessRequest) ProtoMessage ¶
func (*AddAppAccessRequest) ProtoMessage()
func (*AddAppAccessRequest) ProtoReflect ¶
func (x *AddAppAccessRequest) ProtoReflect() protoreflect.Message
func (*AddAppAccessRequest) Reset ¶
func (x *AddAppAccessRequest) Reset()
func (*AddAppAccessRequest) String ¶
func (x *AddAppAccessRequest) String() string
type AddAppAccessResponse ¶
type AddAppAccessResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*AddAppAccessResponse) Descriptor
deprecated
func (*AddAppAccessResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddAppAccessResponse.ProtoReflect.Descriptor instead.
func (*AddAppAccessResponse) GetMsg ¶
func (x *AddAppAccessResponse) GetMsg() string
func (*AddAppAccessResponse) GetStatusCode ¶
func (x *AddAppAccessResponse) GetStatusCode() int32
func (*AddAppAccessResponse) ProtoMessage ¶
func (*AddAppAccessResponse) ProtoMessage()
func (*AddAppAccessResponse) ProtoReflect ¶
func (x *AddAppAccessResponse) ProtoReflect() protoreflect.Message
func (*AddAppAccessResponse) Reset ¶
func (x *AddAppAccessResponse) Reset()
func (*AddAppAccessResponse) String ¶
func (x *AddAppAccessResponse) String() string
type IsAuthedRequest ¶
type IsAuthedRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*IsAuthedRequest) Descriptor
deprecated
func (*IsAuthedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsAuthedRequest.ProtoReflect.Descriptor instead.
func (*IsAuthedRequest) GetAccessToken ¶
func (x *IsAuthedRequest) GetAccessToken() string
func (*IsAuthedRequest) GetTracing_ID ¶
func (x *IsAuthedRequest) GetTracing_ID() string
func (*IsAuthedRequest) ProtoMessage ¶
func (*IsAuthedRequest) ProtoMessage()
func (*IsAuthedRequest) ProtoReflect ¶
func (x *IsAuthedRequest) ProtoReflect() protoreflect.Message
func (*IsAuthedRequest) Reset ¶
func (x *IsAuthedRequest) Reset()
func (*IsAuthedRequest) String ¶
func (x *IsAuthedRequest) String() string
type IsAuthedResponse ¶
type IsAuthedResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` IsAuthed bool `protobuf:"varint,3,opt,name=is_authed,json=isAuthed,proto3" json:"is_authed,omitempty"` AuthedUser *common.AuthedUser `protobuf:"bytes,4,opt,name=authed_user,json=authedUser,proto3" json:"authed_user,omitempty"` // contains filtered or unexported fields }
func (*IsAuthedResponse) Descriptor
deprecated
func (*IsAuthedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsAuthedResponse.ProtoReflect.Descriptor instead.
func (*IsAuthedResponse) GetAuthedUser ¶
func (x *IsAuthedResponse) GetAuthedUser() *common.AuthedUser
func (*IsAuthedResponse) GetIsAuthed ¶
func (x *IsAuthedResponse) GetIsAuthed() bool
func (*IsAuthedResponse) GetMsg ¶
func (x *IsAuthedResponse) GetMsg() string
func (*IsAuthedResponse) GetStatusCode ¶
func (x *IsAuthedResponse) GetStatusCode() int32
func (*IsAuthedResponse) ProtoMessage ¶
func (*IsAuthedResponse) ProtoMessage()
func (*IsAuthedResponse) ProtoReflect ¶
func (x *IsAuthedResponse) ProtoReflect() protoreflect.Message
func (*IsAuthedResponse) Reset ¶
func (x *IsAuthedResponse) Reset()
func (*IsAuthedResponse) String ¶
func (x *IsAuthedResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetTracing_ID ¶
func (x *LoginRequest) GetTracing_ID() 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 { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccessToken ¶
func (x *LoginResponse) GetAccessToken() string
func (*LoginResponse) GetMsg ¶
func (x *LoginResponse) GetMsg() string
func (*LoginResponse) GetStatusCode ¶
func (x *LoginResponse) GetStatusCode() int32
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 RegisterRequest ¶
type RegisterRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Organisation string `protobuf:"bytes,4,opt,name=organisation,proto3" json:"organisation,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetOrganisation ¶
func (x *RegisterRequest) GetOrganisation() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetTracing_ID ¶
func (x *RegisterRequest) GetTracing_ID() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` UserUuid string `protobuf:"bytes,3,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetMsg ¶
func (x *RegisterResponse) GetMsg() string
func (*RegisterResponse) GetStatusCode ¶
func (x *RegisterResponse) GetStatusCode() int32
func (*RegisterResponse) GetUserUuid ¶
func (x *RegisterResponse) GetUserUuid() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type UnimplementedUserAuthenticationServer ¶
type UnimplementedUserAuthenticationServer struct { }
UnimplementedUserAuthenticationServer must be embedded to have forward compatible implementations.
func (UnimplementedUserAuthenticationServer) AddAppAccess ¶
func (UnimplementedUserAuthenticationServer) AddAppAccess(context.Context, *AddAppAccessRequest) (*AddAppAccessResponse, error)
func (UnimplementedUserAuthenticationServer) IsAuthed ¶
func (UnimplementedUserAuthenticationServer) IsAuthed(context.Context, *IsAuthedRequest) (*IsAuthedResponse, error)
func (UnimplementedUserAuthenticationServer) Login ¶
func (UnimplementedUserAuthenticationServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedUserAuthenticationServer) Register ¶
func (UnimplementedUserAuthenticationServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnsafeUserAuthenticationServer ¶
type UnsafeUserAuthenticationServer interface {
// contains filtered or unexported methods
}
UnsafeUserAuthenticationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserAuthenticationServer will result in compilation errors.
type UserAuthenticationClient ¶
type UserAuthenticationClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) IsAuthed(ctx context.Context, in *IsAuthedRequest, opts ...grpc.CallOption) (*IsAuthedResponse, error) AddAppAccess(ctx context.Context, in *AddAppAccessRequest, opts ...grpc.CallOption) (*AddAppAccessResponse, error) }
UserAuthenticationClient is the client API for UserAuthentication 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 NewUserAuthenticationClient ¶
func NewUserAuthenticationClient(cc grpc.ClientConnInterface) UserAuthenticationClient
type UserAuthenticationServer ¶
type UserAuthenticationServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) IsAuthed(context.Context, *IsAuthedRequest) (*IsAuthedResponse, error) AddAppAccess(context.Context, *AddAppAccessRequest) (*AddAppAccessResponse, error) // contains filtered or unexported methods }
UserAuthenticationServer is the server API for UserAuthentication service. All implementations must embed UnimplementedUserAuthenticationServer for forward compatibility