Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AddPermissionRequest
- func (*AddPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddPermissionRequest) GetPermission() string
- func (*AddPermissionRequest) ProtoMessage()
- func (x *AddPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *AddPermissionRequest) Reset()
- func (x *AddPermissionRequest) String() string
- type AddPermissionResponse
- func (*AddPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddPermissionResponse) GetCode() uint32
- func (x *AddPermissionResponse) GetMessage() string
- func (*AddPermissionResponse) ProtoMessage()
- func (x *AddPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *AddPermissionResponse) Reset()
- func (x *AddPermissionResponse) String() string
- type AddRolePermissionRequest
- func (*AddRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddRolePermissionRequest) GetPermission() string
- func (x *AddRolePermissionRequest) GetRole() string
- func (*AddRolePermissionRequest) ProtoMessage()
- func (x *AddRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *AddRolePermissionRequest) Reset()
- func (x *AddRolePermissionRequest) String() string
- type AddRolePermissionResponse
- func (*AddRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddRolePermissionResponse) GetCode() uint32
- func (x *AddRolePermissionResponse) GetMessage() string
- func (*AddRolePermissionResponse) ProtoMessage()
- func (x *AddRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *AddRolePermissionResponse) Reset()
- func (x *AddRolePermissionResponse) String() string
- type AddRoleRequest
- type AddRoleResponse
- func (*AddRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddRoleResponse) GetCode() uint32
- func (x *AddRoleResponse) GetMessage() string
- func (*AddRoleResponse) ProtoMessage()
- func (x *AddRoleResponse) ProtoReflect() protoreflect.Message
- func (x *AddRoleResponse) Reset()
- func (x *AddRoleResponse) String() string
- type AddUserRoleRequest
- func (*AddUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserRoleRequest) GetRoleId() string
- func (x *AddUserRoleRequest) GetUserId() string
- func (*AddUserRoleRequest) ProtoMessage()
- func (x *AddUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AddUserRoleRequest) Reset()
- func (x *AddUserRoleRequest) String() string
- type AddUserRoleResponse
- func (*AddUserRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserRoleResponse) GetCode() uint32
- func (x *AddUserRoleResponse) GetMessage() string
- func (*AddUserRoleResponse) ProtoMessage()
- func (x *AddUserRoleResponse) ProtoReflect() protoreflect.Message
- func (x *AddUserRoleResponse) Reset()
- func (x *AddUserRoleResponse) String() string
- type AuthClient
- type AuthServer
- type CloseSessionsRequest
- func (*CloseSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseSessionsRequest) GetEmail() string
- func (*CloseSessionsRequest) ProtoMessage()
- func (x *CloseSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *CloseSessionsRequest) Reset()
- func (x *CloseSessionsRequest) String() string
- type CloseSessionsResponse
- func (*CloseSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CloseSessionsResponse) GetCode() uint32
- func (x *CloseSessionsResponse) GetMessage() string
- func (*CloseSessionsResponse) ProtoMessage()
- func (x *CloseSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *CloseSessionsResponse) Reset()
- func (x *CloseSessionsResponse) String() string
- type GetPermissionRequest
- func (*GetPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionRequest) GetPermissionId() string
- func (*GetPermissionRequest) ProtoMessage()
- func (x *GetPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *GetPermissionRequest) Reset()
- func (x *GetPermissionRequest) String() string
- type GetPermissionResponse
- func (*GetPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionResponse) GetCode() uint32
- func (x *GetPermissionResponse) GetMessage() string
- func (x *GetPermissionResponse) GetPermission() *Permission
- func (*GetPermissionResponse) ProtoMessage()
- func (x *GetPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *GetPermissionResponse) Reset()
- func (x *GetPermissionResponse) String() string
- type GetPermissionsRequest
- type GetPermissionsResponse
- func (*GetPermissionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionsResponse) GetCode() uint32
- func (x *GetPermissionsResponse) GetMessage() string
- func (x *GetPermissionsResponse) GetPermission() []*Permission
- func (*GetPermissionsResponse) ProtoMessage()
- func (x *GetPermissionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPermissionsResponse) Reset()
- func (x *GetPermissionsResponse) String() string
- type GetRolePermissionsRequest
- func (*GetRolePermissionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePermissionsRequest) GetRoleId() string
- func (*GetRolePermissionsRequest) ProtoMessage()
- func (x *GetRolePermissionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRolePermissionsRequest) Reset()
- func (x *GetRolePermissionsRequest) String() string
- type GetRolePermissionsResponse
- func (*GetRolePermissionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePermissionsResponse) GetCode() uint32
- func (x *GetRolePermissionsResponse) GetMessage() string
- func (x *GetRolePermissionsResponse) GetPermissionsId() []string
- func (*GetRolePermissionsResponse) ProtoMessage()
- func (x *GetRolePermissionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRolePermissionsResponse) Reset()
- func (x *GetRolePermissionsResponse) String() string
- type GetRolesRequest
- type GetRolesResponse
- func (*GetRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesResponse) GetCode() uint32
- func (x *GetRolesResponse) GetMessage() string
- func (x *GetRolesResponse) GetRoles() []*Role
- func (*GetRolesResponse) ProtoMessage()
- func (x *GetRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetRolesResponse) Reset()
- func (x *GetRolesResponse) String() string
- type GetSessionsRequest
- func (*GetSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionsRequest) GetUsername() string
- func (*GetSessionsRequest) ProtoMessage()
- func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetSessionsRequest) Reset()
- func (x *GetSessionsRequest) String() string
- type GetSessionsResponse
- func (*GetSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionsResponse) GetCode() uint32
- func (x *GetSessionsResponse) GetMessage() string
- func (x *GetSessionsResponse) GetSessions() []*Session
- func (*GetSessionsResponse) ProtoMessage()
- func (x *GetSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSessionsResponse) Reset()
- func (x *GetSessionsResponse) String() string
- type GetUserRolesRequest
- func (*GetUserRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRolesRequest) GetUserId() string
- func (*GetUserRolesRequest) ProtoMessage()
- func (x *GetUserRolesRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRolesRequest) Reset()
- func (x *GetUserRolesRequest) String() string
- type GetUserRolesResponse
- func (*GetUserRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRolesResponse) GetCode() uint32
- func (x *GetUserRolesResponse) GetMessage() string
- func (x *GetUserRolesResponse) GetRolesId() []string
- func (*GetUserRolesResponse) ProtoMessage()
- func (x *GetUserRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserRolesResponse) Reset()
- func (x *GetUserRolesResponse) String() string
- type IsAccessTokenValidRequest
- func (*IsAccessTokenValidRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsAccessTokenValidRequest) GetAccessToken() string
- func (*IsAccessTokenValidRequest) ProtoMessage()
- func (x *IsAccessTokenValidRequest) ProtoReflect() protoreflect.Message
- func (x *IsAccessTokenValidRequest) Reset()
- func (x *IsAccessTokenValidRequest) String() string
- type IsAccessTokenValidResponse
- func (*IsAccessTokenValidResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsAccessTokenValidResponse) GetCode() uint32
- func (x *IsAccessTokenValidResponse) GetMessage() string
- func (*IsAccessTokenValidResponse) ProtoMessage()
- func (x *IsAccessTokenValidResponse) ProtoReflect() protoreflect.Message
- func (x *IsAccessTokenValidResponse) Reset()
- func (x *IsAccessTokenValidResponse) String() string
- type LogInRequest
- func (*LogInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogInRequest) GetPassword() 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) GetCode() uint32
- func (x *LogInResponse) GetMessage() string
- func (x *LogInResponse) GetRefreshToken() string
- func (*LogInResponse) ProtoMessage()
- func (x *LogInResponse) ProtoReflect() protoreflect.Message
- func (x *LogInResponse) Reset()
- func (x *LogInResponse) String() string
- type LogOutRequest
- type LogOutResponse
- func (*LogOutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LogOutResponse) GetCode() uint32
- func (x *LogOutResponse) GetMessage() string
- func (*LogOutResponse) ProtoMessage()
- func (x *LogOutResponse) ProtoReflect() protoreflect.Message
- func (x *LogOutResponse) Reset()
- func (x *LogOutResponse) String() string
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetAction() string
- func (x *Permission) GetDescription() string
- func (x *Permission) GetId() string
- func (x *Permission) GetResource() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetAccessToken() string
- func (x *RefreshTokenResponse) GetCode() uint32
- func (x *RefreshTokenResponse) GetMessage() string
- func (x *RefreshTokenResponse) GetRefreshToken() string
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type RevokePermissionRequest
- func (*RevokePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokePermissionRequest) GetPermission() string
- func (*RevokePermissionRequest) ProtoMessage()
- func (x *RevokePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *RevokePermissionRequest) Reset()
- func (x *RevokePermissionRequest) String() string
- type RevokePermissionResponse
- func (*RevokePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokePermissionResponse) GetCode() uint32
- func (x *RevokePermissionResponse) GetMessage() string
- func (*RevokePermissionResponse) ProtoMessage()
- func (x *RevokePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *RevokePermissionResponse) Reset()
- func (x *RevokePermissionResponse) String() string
- type RevokeRolePermissionRequest
- func (*RevokeRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRolePermissionRequest) GetPermission() string
- func (x *RevokeRolePermissionRequest) GetRole() string
- func (*RevokeRolePermissionRequest) ProtoMessage()
- func (x *RevokeRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeRolePermissionRequest) Reset()
- func (x *RevokeRolePermissionRequest) String() string
- type RevokeRolePermissionResponse
- func (*RevokeRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRolePermissionResponse) GetCode() uint32
- func (x *RevokeRolePermissionResponse) GetMessage() string
- func (*RevokeRolePermissionResponse) ProtoMessage()
- func (x *RevokeRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeRolePermissionResponse) Reset()
- func (x *RevokeRolePermissionResponse) String() string
- type RevokeRoleRequest
- type RevokeRoleResponse
- func (*RevokeRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRoleResponse) GetCode() uint32
- func (x *RevokeRoleResponse) GetMessage() string
- func (*RevokeRoleResponse) ProtoMessage()
- func (x *RevokeRoleResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeRoleResponse) Reset()
- func (x *RevokeRoleResponse) String() string
- type RevokeUserRoleRequest
- func (*RevokeUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeUserRoleRequest) GetRoleId() string
- func (x *RevokeUserRoleRequest) GetUserId() string
- func (*RevokeUserRoleRequest) ProtoMessage()
- func (x *RevokeUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeUserRoleRequest) Reset()
- func (x *RevokeUserRoleRequest) String() string
- type RevokeUserRoleResponse
- func (*RevokeUserRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeUserRoleResponse) GetCode() uint32
- func (x *RevokeUserRoleResponse) GetMessage() string
- func (*RevokeUserRoleResponse) ProtoMessage()
- func (x *RevokeUserRoleResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeUserRoleResponse) Reset()
- func (x *RevokeUserRoleResponse) String() string
- type Role
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetCreatedAt() string
- func (x *Session) GetId() string
- func (x *Session) GetIpv4Address() string
- func (x *Session) GetUserId() string
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) AddPermission(context.Context, *AddPermissionRequest) (*AddPermissionResponse, error)
- func (UnimplementedAuthServer) AddRole(context.Context, *AddRoleRequest) (*AddRoleResponse, error)
- func (UnimplementedAuthServer) AddRolePermission(context.Context, *AddRolePermissionRequest) (*AddRolePermissionResponse, error)
- func (UnimplementedAuthServer) AddUserRole(context.Context, *AddUserRoleRequest) (*AddUserRoleResponse, error)
- func (UnimplementedAuthServer) CloseSessions(context.Context, *CloseSessionsRequest) (*CloseSessionsResponse, error)
- func (UnimplementedAuthServer) GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
- func (UnimplementedAuthServer) GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
- func (UnimplementedAuthServer) GetRolePermissions(context.Context, *GetRolePermissionsRequest) (*GetRolePermissionsResponse, error)
- func (UnimplementedAuthServer) GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
- func (UnimplementedAuthServer) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
- func (UnimplementedAuthServer) GetUserRoles(context.Context, *GetUserRolesRequest) (*GetUserRolesResponse, error)
- func (UnimplementedAuthServer) IsAccessTokenValid(context.Context, *IsAccessTokenValidRequest) (*IsAccessTokenValidResponse, error)
- func (UnimplementedAuthServer) LogIn(context.Context, *LogInRequest) (*LogInResponse, error)
- func (UnimplementedAuthServer) LogOut(context.Context, *LogOutRequest) (*LogOutResponse, error)
- func (UnimplementedAuthServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
- func (UnimplementedAuthServer) RevokePermission(context.Context, *RevokePermissionRequest) (*RevokePermissionResponse, error)
- func (UnimplementedAuthServer) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, error)
- func (UnimplementedAuthServer) RevokeRolePermission(context.Context, *RevokeRolePermissionRequest) (*RevokeRolePermissionResponse, error)
- func (UnimplementedAuthServer) RevokeUserRole(context.Context, *RevokeUserRoleRequest) (*RevokeUserRoleResponse, error)
- type UnsafeAuthServer
Constants ¶
const ( Auth_LogIn_FullMethodName = "/auth.Auth/LogIn" Auth_IsAccessTokenValid_FullMethodName = "/auth.Auth/IsAccessTokenValid" Auth_RefreshToken_FullMethodName = "/auth.Auth/RefreshToken" Auth_LogOut_FullMethodName = "/auth.Auth/LogOut" Auth_GetSessions_FullMethodName = "/auth.Auth/GetSessions" Auth_CloseSessions_FullMethodName = "/auth.Auth/CloseSessions" Auth_AddPermission_FullMethodName = "/auth.Auth/AddPermission" Auth_RevokePermission_FullMethodName = "/auth.Auth/RevokePermission" Auth_GetPermission_FullMethodName = "/auth.Auth/GetPermission" Auth_GetPermissions_FullMethodName = "/auth.Auth/GetPermissions" Auth_AddRolePermission_FullMethodName = "/auth.Auth/AddRolePermission" Auth_RevokeRolePermission_FullMethodName = "/auth.Auth/RevokeRolePermission" Auth_GetRolePermissions_FullMethodName = "/auth.Auth/GetRolePermissions" Auth_AddRole_FullMethodName = "/auth.Auth/AddRole" Auth_RevokeRole_FullMethodName = "/auth.Auth/RevokeRole" Auth_GetRoles_FullMethodName = "/auth.Auth/GetRoles" Auth_AddUserRole_FullMethodName = "/auth.Auth/AddUserRole" Auth_RevokeUserRole_FullMethodName = "/auth.Auth/RevokeUserRole" Auth_GetUserRoles_FullMethodName = "/auth.Auth/GetUserRoles" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LogIn", Handler: _Auth_LogIn_Handler, }, { MethodName: "IsAccessTokenValid", Handler: _Auth_IsAccessTokenValid_Handler, }, { MethodName: "RefreshToken", Handler: _Auth_RefreshToken_Handler, }, { MethodName: "LogOut", Handler: _Auth_LogOut_Handler, }, { MethodName: "GetSessions", Handler: _Auth_GetSessions_Handler, }, { MethodName: "CloseSessions", Handler: _Auth_CloseSessions_Handler, }, { MethodName: "AddPermission", Handler: _Auth_AddPermission_Handler, }, { MethodName: "RevokePermission", Handler: _Auth_RevokePermission_Handler, }, { MethodName: "GetPermission", Handler: _Auth_GetPermission_Handler, }, { MethodName: "GetPermissions", Handler: _Auth_GetPermissions_Handler, }, { MethodName: "AddRolePermission", Handler: _Auth_AddRolePermission_Handler, }, { MethodName: "RevokeRolePermission", Handler: _Auth_RevokeRolePermission_Handler, }, { MethodName: "GetRolePermissions", Handler: _Auth_GetRolePermissions_Handler, }, { MethodName: "AddRole", Handler: _Auth_AddRole_Handler, }, { MethodName: "RevokeRole", Handler: _Auth_RevokeRole_Handler, }, { MethodName: "GetRoles", Handler: _Auth_GetRoles_Handler, }, { MethodName: "AddUserRole", Handler: _Auth_AddUserRole_Handler, }, { MethodName: "RevokeUserRole", Handler: _Auth_RevokeUserRole_Handler, }, { MethodName: "GetUserRoles", Handler: _Auth_GetUserRoles_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protobuf/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_protobuf_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶ added in v0.0.4
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AddPermissionRequest ¶
type AddPermissionRequest struct { Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*AddPermissionRequest) Descriptor
deprecated
func (*AddPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddPermissionRequest.ProtoReflect.Descriptor instead.
func (*AddPermissionRequest) GetPermission ¶
func (x *AddPermissionRequest) GetPermission() string
func (*AddPermissionRequest) ProtoMessage ¶
func (*AddPermissionRequest) ProtoMessage()
func (*AddPermissionRequest) ProtoReflect ¶
func (x *AddPermissionRequest) ProtoReflect() protoreflect.Message
func (*AddPermissionRequest) Reset ¶
func (x *AddPermissionRequest) Reset()
func (*AddPermissionRequest) String ¶
func (x *AddPermissionRequest) String() string
type AddPermissionResponse ¶
type AddPermissionResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AddPermissionResponse) Descriptor
deprecated
func (*AddPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddPermissionResponse.ProtoReflect.Descriptor instead.
func (*AddPermissionResponse) GetCode ¶
func (x *AddPermissionResponse) GetCode() uint32
func (*AddPermissionResponse) GetMessage ¶
func (x *AddPermissionResponse) GetMessage() string
func (*AddPermissionResponse) ProtoMessage ¶
func (*AddPermissionResponse) ProtoMessage()
func (*AddPermissionResponse) ProtoReflect ¶
func (x *AddPermissionResponse) ProtoReflect() protoreflect.Message
func (*AddPermissionResponse) Reset ¶
func (x *AddPermissionResponse) Reset()
func (*AddPermissionResponse) String ¶
func (x *AddPermissionResponse) String() string
type AddRolePermissionRequest ¶
type AddRolePermissionRequest struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*AddRolePermissionRequest) Descriptor
deprecated
func (*AddRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*AddRolePermissionRequest) GetPermission ¶
func (x *AddRolePermissionRequest) GetPermission() string
func (*AddRolePermissionRequest) GetRole ¶
func (x *AddRolePermissionRequest) GetRole() string
func (*AddRolePermissionRequest) ProtoMessage ¶
func (*AddRolePermissionRequest) ProtoMessage()
func (*AddRolePermissionRequest) ProtoReflect ¶
func (x *AddRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*AddRolePermissionRequest) Reset ¶
func (x *AddRolePermissionRequest) Reset()
func (*AddRolePermissionRequest) String ¶
func (x *AddRolePermissionRequest) String() string
type AddRolePermissionResponse ¶
type AddRolePermissionResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AddRolePermissionResponse) Descriptor
deprecated
func (*AddRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*AddRolePermissionResponse) GetCode ¶
func (x *AddRolePermissionResponse) GetCode() uint32
func (*AddRolePermissionResponse) GetMessage ¶
func (x *AddRolePermissionResponse) GetMessage() string
func (*AddRolePermissionResponse) ProtoMessage ¶
func (*AddRolePermissionResponse) ProtoMessage()
func (*AddRolePermissionResponse) ProtoReflect ¶
func (x *AddRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*AddRolePermissionResponse) Reset ¶
func (x *AddRolePermissionResponse) Reset()
func (*AddRolePermissionResponse) String ¶
func (x *AddRolePermissionResponse) String() string
type AddRoleRequest ¶
type AddRoleRequest struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*AddRoleRequest) Descriptor
deprecated
func (*AddRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleRequest.ProtoReflect.Descriptor instead.
func (*AddRoleRequest) GetRole ¶
func (x *AddRoleRequest) GetRole() string
func (*AddRoleRequest) ProtoMessage ¶
func (*AddRoleRequest) ProtoMessage()
func (*AddRoleRequest) ProtoReflect ¶
func (x *AddRoleRequest) ProtoReflect() protoreflect.Message
func (*AddRoleRequest) Reset ¶
func (x *AddRoleRequest) Reset()
func (*AddRoleRequest) String ¶
func (x *AddRoleRequest) String() string
type AddRoleResponse ¶
type AddRoleResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AddRoleResponse) Descriptor
deprecated
func (*AddRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleResponse.ProtoReflect.Descriptor instead.
func (*AddRoleResponse) GetCode ¶
func (x *AddRoleResponse) GetCode() uint32
func (*AddRoleResponse) GetMessage ¶
func (x *AddRoleResponse) GetMessage() string
func (*AddRoleResponse) ProtoMessage ¶
func (*AddRoleResponse) ProtoMessage()
func (*AddRoleResponse) ProtoReflect ¶
func (x *AddRoleResponse) ProtoReflect() protoreflect.Message
func (*AddRoleResponse) Reset ¶
func (x *AddRoleResponse) Reset()
func (*AddRoleResponse) String ¶
func (x *AddRoleResponse) String() string
type AddUserRoleRequest ¶ added in v0.0.11
type AddUserRoleRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // contains filtered or unexported fields }
func (*AddUserRoleRequest) Descriptor
deprecated
added in
v0.0.11
func (*AddUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUserRoleRequest.ProtoReflect.Descriptor instead.
func (*AddUserRoleRequest) GetRoleId ¶ added in v0.0.14
func (x *AddUserRoleRequest) GetRoleId() string
func (*AddUserRoleRequest) GetUserId ¶ added in v0.0.14
func (x *AddUserRoleRequest) GetUserId() string
func (*AddUserRoleRequest) ProtoMessage ¶ added in v0.0.11
func (*AddUserRoleRequest) ProtoMessage()
func (*AddUserRoleRequest) ProtoReflect ¶ added in v0.0.11
func (x *AddUserRoleRequest) ProtoReflect() protoreflect.Message
func (*AddUserRoleRequest) Reset ¶ added in v0.0.11
func (x *AddUserRoleRequest) Reset()
func (*AddUserRoleRequest) String ¶ added in v0.0.11
func (x *AddUserRoleRequest) String() string
type AddUserRoleResponse ¶ added in v0.0.11
type AddUserRoleResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AddUserRoleResponse) Descriptor
deprecated
added in
v0.0.11
func (*AddUserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddUserRoleResponse.ProtoReflect.Descriptor instead.
func (*AddUserRoleResponse) GetCode ¶ added in v0.0.11
func (x *AddUserRoleResponse) GetCode() uint32
func (*AddUserRoleResponse) GetMessage ¶ added in v0.0.11
func (x *AddUserRoleResponse) GetMessage() string
func (*AddUserRoleResponse) ProtoMessage ¶ added in v0.0.11
func (*AddUserRoleResponse) ProtoMessage()
func (*AddUserRoleResponse) ProtoReflect ¶ added in v0.0.11
func (x *AddUserRoleResponse) ProtoReflect() protoreflect.Message
func (*AddUserRoleResponse) Reset ¶ added in v0.0.11
func (x *AddUserRoleResponse) Reset()
func (*AddUserRoleResponse) String ¶ added in v0.0.11
func (x *AddUserRoleResponse) String() string
type AuthClient ¶ added in v0.0.4
type AuthClient interface { LogIn(ctx context.Context, in *LogInRequest, opts ...grpc.CallOption) (*LogInResponse, error) IsAccessTokenValid(ctx context.Context, in *IsAccessTokenValidRequest, opts ...grpc.CallOption) (*IsAccessTokenValidResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) LogOut(ctx context.Context, in *LogOutRequest, opts ...grpc.CallOption) (*LogOutResponse, error) GetSessions(ctx context.Context, in *GetSessionsRequest, opts ...grpc.CallOption) (*GetSessionsResponse, error) CloseSessions(ctx context.Context, in *CloseSessionsRequest, opts ...grpc.CallOption) (*CloseSessionsResponse, error) AddPermission(ctx context.Context, in *AddPermissionRequest, opts ...grpc.CallOption) (*AddPermissionResponse, error) RevokePermission(ctx context.Context, in *RevokePermissionRequest, opts ...grpc.CallOption) (*RevokePermissionResponse, error) GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*GetPermissionResponse, error) GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error) AddRolePermission(ctx context.Context, in *AddRolePermissionRequest, opts ...grpc.CallOption) (*AddRolePermissionResponse, error) RevokeRolePermission(ctx context.Context, in *RevokeRolePermissionRequest, opts ...grpc.CallOption) (*RevokeRolePermissionResponse, error) GetRolePermissions(ctx context.Context, in *GetRolePermissionsRequest, opts ...grpc.CallOption) (*GetRolePermissionsResponse, error) AddRole(ctx context.Context, in *AddRoleRequest, opts ...grpc.CallOption) (*AddRoleResponse, error) RevokeRole(ctx context.Context, in *RevokeRoleRequest, opts ...grpc.CallOption) (*RevokeRoleResponse, error) GetRoles(ctx context.Context, in *GetRolesRequest, opts ...grpc.CallOption) (*GetRolesResponse, error) AddUserRole(ctx context.Context, in *AddUserRoleRequest, opts ...grpc.CallOption) (*AddUserRoleResponse, error) RevokeUserRole(ctx context.Context, in *RevokeUserRoleRequest, opts ...grpc.CallOption) (*RevokeUserRoleResponse, error) GetUserRoles(ctx context.Context, in *GetUserRolesRequest, opts ...grpc.CallOption) (*GetUserRolesResponse, 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 ¶ added in v0.0.4
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶ added in v0.0.4
type AuthServer interface { LogIn(context.Context, *LogInRequest) (*LogInResponse, error) IsAccessTokenValid(context.Context, *IsAccessTokenValidRequest) (*IsAccessTokenValidResponse, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) LogOut(context.Context, *LogOutRequest) (*LogOutResponse, error) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error) CloseSessions(context.Context, *CloseSessionsRequest) (*CloseSessionsResponse, error) AddPermission(context.Context, *AddPermissionRequest) (*AddPermissionResponse, error) RevokePermission(context.Context, *RevokePermissionRequest) (*RevokePermissionResponse, error) GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error) GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error) AddRolePermission(context.Context, *AddRolePermissionRequest) (*AddRolePermissionResponse, error) RevokeRolePermission(context.Context, *RevokeRolePermissionRequest) (*RevokeRolePermissionResponse, error) GetRolePermissions(context.Context, *GetRolePermissionsRequest) (*GetRolePermissionsResponse, error) AddRole(context.Context, *AddRoleRequest) (*AddRoleResponse, error) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, error) GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error) AddUserRole(context.Context, *AddUserRoleRequest) (*AddUserRoleResponse, error) RevokeUserRole(context.Context, *RevokeUserRoleRequest) (*RevokeUserRoleResponse, error) GetUserRoles(context.Context, *GetUserRolesRequest) (*GetUserRolesResponse, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.
type CloseSessionsRequest ¶
type CloseSessionsRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*CloseSessionsRequest) Descriptor
deprecated
func (*CloseSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseSessionsRequest.ProtoReflect.Descriptor instead.
func (*CloseSessionsRequest) GetEmail ¶
func (x *CloseSessionsRequest) GetEmail() string
func (*CloseSessionsRequest) ProtoMessage ¶
func (*CloseSessionsRequest) ProtoMessage()
func (*CloseSessionsRequest) ProtoReflect ¶
func (x *CloseSessionsRequest) ProtoReflect() protoreflect.Message
func (*CloseSessionsRequest) Reset ¶
func (x *CloseSessionsRequest) Reset()
func (*CloseSessionsRequest) String ¶
func (x *CloseSessionsRequest) String() string
type CloseSessionsResponse ¶
type CloseSessionsResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CloseSessionsResponse) Descriptor
deprecated
func (*CloseSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloseSessionsResponse.ProtoReflect.Descriptor instead.
func (*CloseSessionsResponse) GetCode ¶
func (x *CloseSessionsResponse) GetCode() uint32
func (*CloseSessionsResponse) GetMessage ¶
func (x *CloseSessionsResponse) GetMessage() string
func (*CloseSessionsResponse) ProtoMessage ¶
func (*CloseSessionsResponse) ProtoMessage()
func (*CloseSessionsResponse) ProtoReflect ¶
func (x *CloseSessionsResponse) ProtoReflect() protoreflect.Message
func (*CloseSessionsResponse) Reset ¶
func (x *CloseSessionsResponse) Reset()
func (*CloseSessionsResponse) String ¶
func (x *CloseSessionsResponse) String() string
type GetPermissionRequest ¶ added in v0.0.14
type GetPermissionRequest struct { PermissionId string `protobuf:"bytes,1,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` // contains filtered or unexported fields }
func (*GetPermissionRequest) Descriptor
deprecated
added in
v0.0.14
func (*GetPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.
func (*GetPermissionRequest) GetPermissionId ¶ added in v0.0.14
func (x *GetPermissionRequest) GetPermissionId() string
func (*GetPermissionRequest) ProtoMessage ¶ added in v0.0.14
func (*GetPermissionRequest) ProtoMessage()
func (*GetPermissionRequest) ProtoReflect ¶ added in v0.0.14
func (x *GetPermissionRequest) ProtoReflect() protoreflect.Message
func (*GetPermissionRequest) Reset ¶ added in v0.0.14
func (x *GetPermissionRequest) Reset()
func (*GetPermissionRequest) String ¶ added in v0.0.14
func (x *GetPermissionRequest) String() string
type GetPermissionResponse ¶ added in v0.0.14
type GetPermissionResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Permission *Permission `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*GetPermissionResponse) Descriptor
deprecated
added in
v0.0.14
func (*GetPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionResponse.ProtoReflect.Descriptor instead.
func (*GetPermissionResponse) GetCode ¶ added in v0.0.14
func (x *GetPermissionResponse) GetCode() uint32
func (*GetPermissionResponse) GetMessage ¶ added in v0.0.14
func (x *GetPermissionResponse) GetMessage() string
func (*GetPermissionResponse) GetPermission ¶ added in v0.0.14
func (x *GetPermissionResponse) GetPermission() *Permission
func (*GetPermissionResponse) ProtoMessage ¶ added in v0.0.14
func (*GetPermissionResponse) ProtoMessage()
func (*GetPermissionResponse) ProtoReflect ¶ added in v0.0.14
func (x *GetPermissionResponse) ProtoReflect() protoreflect.Message
func (*GetPermissionResponse) Reset ¶ added in v0.0.14
func (x *GetPermissionResponse) Reset()
func (*GetPermissionResponse) String ¶ added in v0.0.14
func (x *GetPermissionResponse) String() string
type GetPermissionsRequest ¶ added in v0.0.11
type GetPermissionsRequest struct {
// contains filtered or unexported fields
}
func (*GetPermissionsRequest) Descriptor
deprecated
added in
v0.0.11
func (*GetPermissionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead.
func (*GetPermissionsRequest) ProtoMessage ¶ added in v0.0.11
func (*GetPermissionsRequest) ProtoMessage()
func (*GetPermissionsRequest) ProtoReflect ¶ added in v0.0.11
func (x *GetPermissionsRequest) ProtoReflect() protoreflect.Message
func (*GetPermissionsRequest) Reset ¶ added in v0.0.11
func (x *GetPermissionsRequest) Reset()
func (*GetPermissionsRequest) String ¶ added in v0.0.11
func (x *GetPermissionsRequest) String() string
type GetPermissionsResponse ¶ added in v0.0.11
type GetPermissionsResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Permission []*Permission `protobuf:"bytes,3,rep,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*GetPermissionsResponse) Descriptor
deprecated
added in
v0.0.11
func (*GetPermissionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionsResponse.ProtoReflect.Descriptor instead.
func (*GetPermissionsResponse) GetCode ¶ added in v0.0.11
func (x *GetPermissionsResponse) GetCode() uint32
func (*GetPermissionsResponse) GetMessage ¶ added in v0.0.11
func (x *GetPermissionsResponse) GetMessage() string
func (*GetPermissionsResponse) GetPermission ¶ added in v0.0.14
func (x *GetPermissionsResponse) GetPermission() []*Permission
func (*GetPermissionsResponse) ProtoMessage ¶ added in v0.0.11
func (*GetPermissionsResponse) ProtoMessage()
func (*GetPermissionsResponse) ProtoReflect ¶ added in v0.0.11
func (x *GetPermissionsResponse) ProtoReflect() protoreflect.Message
func (*GetPermissionsResponse) Reset ¶ added in v0.0.11
func (x *GetPermissionsResponse) Reset()
func (*GetPermissionsResponse) String ¶ added in v0.0.11
func (x *GetPermissionsResponse) String() string
type GetRolePermissionsRequest ¶ added in v0.0.11
type GetRolePermissionsRequest struct { RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // contains filtered or unexported fields }
func (*GetRolePermissionsRequest) Descriptor
deprecated
added in
v0.0.11
func (*GetRolePermissionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePermissionsRequest.ProtoReflect.Descriptor instead.
func (*GetRolePermissionsRequest) GetRoleId ¶ added in v0.0.14
func (x *GetRolePermissionsRequest) GetRoleId() string
func (*GetRolePermissionsRequest) ProtoMessage ¶ added in v0.0.11
func (*GetRolePermissionsRequest) ProtoMessage()
func (*GetRolePermissionsRequest) ProtoReflect ¶ added in v0.0.11
func (x *GetRolePermissionsRequest) ProtoReflect() protoreflect.Message
func (*GetRolePermissionsRequest) Reset ¶ added in v0.0.11
func (x *GetRolePermissionsRequest) Reset()
func (*GetRolePermissionsRequest) String ¶ added in v0.0.11
func (x *GetRolePermissionsRequest) String() string
type GetRolePermissionsResponse ¶ added in v0.0.11
type GetRolePermissionsResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` PermissionsId []string `protobuf:"bytes,3,rep,name=permissions_id,json=permissionsId,proto3" json:"permissions_id,omitempty"` // contains filtered or unexported fields }
func (*GetRolePermissionsResponse) Descriptor
deprecated
added in
v0.0.11
func (*GetRolePermissionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePermissionsResponse.ProtoReflect.Descriptor instead.
func (*GetRolePermissionsResponse) GetCode ¶ added in v0.0.11
func (x *GetRolePermissionsResponse) GetCode() uint32
func (*GetRolePermissionsResponse) GetMessage ¶ added in v0.0.11
func (x *GetRolePermissionsResponse) GetMessage() string
func (*GetRolePermissionsResponse) GetPermissionsId ¶ added in v0.0.14
func (x *GetRolePermissionsResponse) GetPermissionsId() []string
func (*GetRolePermissionsResponse) ProtoMessage ¶ added in v0.0.11
func (*GetRolePermissionsResponse) ProtoMessage()
func (*GetRolePermissionsResponse) ProtoReflect ¶ added in v0.0.11
func (x *GetRolePermissionsResponse) ProtoReflect() protoreflect.Message
func (*GetRolePermissionsResponse) Reset ¶ added in v0.0.11
func (x *GetRolePermissionsResponse) Reset()
func (*GetRolePermissionsResponse) String ¶ added in v0.0.11
func (x *GetRolePermissionsResponse) String() string
type GetRolesRequest ¶ added in v0.0.11
type GetRolesRequest struct {
// contains filtered or unexported fields
}
func (*GetRolesRequest) Descriptor
deprecated
added in
v0.0.11
func (*GetRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesRequest.ProtoReflect.Descriptor instead.
func (*GetRolesRequest) ProtoMessage ¶ added in v0.0.11
func (*GetRolesRequest) ProtoMessage()
func (*GetRolesRequest) ProtoReflect ¶ added in v0.0.11
func (x *GetRolesRequest) ProtoReflect() protoreflect.Message
func (*GetRolesRequest) Reset ¶ added in v0.0.11
func (x *GetRolesRequest) Reset()
func (*GetRolesRequest) String ¶ added in v0.0.11
func (x *GetRolesRequest) String() string
type GetRolesResponse ¶ added in v0.0.11
type GetRolesResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Roles []*Role `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*GetRolesResponse) Descriptor
deprecated
added in
v0.0.11
func (*GetRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesResponse.ProtoReflect.Descriptor instead.
func (*GetRolesResponse) GetCode ¶ added in v0.0.11
func (x *GetRolesResponse) GetCode() uint32
func (*GetRolesResponse) GetMessage ¶ added in v0.0.11
func (x *GetRolesResponse) GetMessage() string
func (*GetRolesResponse) GetRoles ¶ added in v0.0.11
func (x *GetRolesResponse) GetRoles() []*Role
func (*GetRolesResponse) ProtoMessage ¶ added in v0.0.11
func (*GetRolesResponse) ProtoMessage()
func (*GetRolesResponse) ProtoReflect ¶ added in v0.0.11
func (x *GetRolesResponse) ProtoReflect() protoreflect.Message
func (*GetRolesResponse) Reset ¶ added in v0.0.11
func (x *GetRolesResponse) Reset()
func (*GetRolesResponse) String ¶ added in v0.0.11
func (x *GetRolesResponse) String() string
type GetSessionsRequest ¶ added in v0.0.17
type GetSessionsRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetSessionsRequest) Descriptor
deprecated
added in
v0.0.17
func (*GetSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionsRequest.ProtoReflect.Descriptor instead.
func (*GetSessionsRequest) GetUsername ¶ added in v0.0.17
func (x *GetSessionsRequest) GetUsername() string
func (*GetSessionsRequest) ProtoMessage ¶ added in v0.0.17
func (*GetSessionsRequest) ProtoMessage()
func (*GetSessionsRequest) ProtoReflect ¶ added in v0.0.17
func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message
func (*GetSessionsRequest) Reset ¶ added in v0.0.17
func (x *GetSessionsRequest) Reset()
func (*GetSessionsRequest) String ¶ added in v0.0.17
func (x *GetSessionsRequest) String() string
type GetSessionsResponse ¶ added in v0.0.17
type GetSessionsResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Sessions []*Session `protobuf:"bytes,3,rep,name=sessions,proto3" json:"sessions,omitempty"` // contains filtered or unexported fields }
func (*GetSessionsResponse) Descriptor
deprecated
added in
v0.0.17
func (*GetSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionsResponse.ProtoReflect.Descriptor instead.
func (*GetSessionsResponse) GetCode ¶ added in v0.0.17
func (x *GetSessionsResponse) GetCode() uint32
func (*GetSessionsResponse) GetMessage ¶ added in v0.0.17
func (x *GetSessionsResponse) GetMessage() string
func (*GetSessionsResponse) GetSessions ¶ added in v0.0.17
func (x *GetSessionsResponse) GetSessions() []*Session
func (*GetSessionsResponse) ProtoMessage ¶ added in v0.0.17
func (*GetSessionsResponse) ProtoMessage()
func (*GetSessionsResponse) ProtoReflect ¶ added in v0.0.17
func (x *GetSessionsResponse) ProtoReflect() protoreflect.Message
func (*GetSessionsResponse) Reset ¶ added in v0.0.17
func (x *GetSessionsResponse) Reset()
func (*GetSessionsResponse) String ¶ added in v0.0.17
func (x *GetSessionsResponse) String() string
type GetUserRolesRequest ¶ added in v0.0.11
type GetUserRolesRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRolesRequest) Descriptor
deprecated
added in
v0.0.11
func (*GetUserRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRolesRequest.ProtoReflect.Descriptor instead.
func (*GetUserRolesRequest) GetUserId ¶ added in v0.0.14
func (x *GetUserRolesRequest) GetUserId() string
func (*GetUserRolesRequest) ProtoMessage ¶ added in v0.0.11
func (*GetUserRolesRequest) ProtoMessage()
func (*GetUserRolesRequest) ProtoReflect ¶ added in v0.0.11
func (x *GetUserRolesRequest) ProtoReflect() protoreflect.Message
func (*GetUserRolesRequest) Reset ¶ added in v0.0.11
func (x *GetUserRolesRequest) Reset()
func (*GetUserRolesRequest) String ¶ added in v0.0.11
func (x *GetUserRolesRequest) String() string
type GetUserRolesResponse ¶ added in v0.0.11
type GetUserRolesResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` RolesId []string `protobuf:"bytes,3,rep,name=roles_id,json=rolesId,proto3" json:"roles_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRolesResponse) Descriptor
deprecated
added in
v0.0.11
func (*GetUserRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRolesResponse.ProtoReflect.Descriptor instead.
func (*GetUserRolesResponse) GetCode ¶ added in v0.0.11
func (x *GetUserRolesResponse) GetCode() uint32
func (*GetUserRolesResponse) GetMessage ¶ added in v0.0.11
func (x *GetUserRolesResponse) GetMessage() string
func (*GetUserRolesResponse) GetRolesId ¶ added in v0.0.14
func (x *GetUserRolesResponse) GetRolesId() []string
func (*GetUserRolesResponse) ProtoMessage ¶ added in v0.0.11
func (*GetUserRolesResponse) ProtoMessage()
func (*GetUserRolesResponse) ProtoReflect ¶ added in v0.0.11
func (x *GetUserRolesResponse) ProtoReflect() protoreflect.Message
func (*GetUserRolesResponse) Reset ¶ added in v0.0.11
func (x *GetUserRolesResponse) Reset()
func (*GetUserRolesResponse) String ¶ added in v0.0.11
func (x *GetUserRolesResponse) String() string
type IsAccessTokenValidRequest ¶ added in v0.1.1
type IsAccessTokenValidRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*IsAccessTokenValidRequest) Descriptor
deprecated
added in
v0.1.1
func (*IsAccessTokenValidRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsAccessTokenValidRequest.ProtoReflect.Descriptor instead.
func (*IsAccessTokenValidRequest) GetAccessToken ¶ added in v0.1.1
func (x *IsAccessTokenValidRequest) GetAccessToken() string
func (*IsAccessTokenValidRequest) ProtoMessage ¶ added in v0.1.1
func (*IsAccessTokenValidRequest) ProtoMessage()
func (*IsAccessTokenValidRequest) ProtoReflect ¶ added in v0.1.1
func (x *IsAccessTokenValidRequest) ProtoReflect() protoreflect.Message
func (*IsAccessTokenValidRequest) Reset ¶ added in v0.1.1
func (x *IsAccessTokenValidRequest) Reset()
func (*IsAccessTokenValidRequest) String ¶ added in v0.1.1
func (x *IsAccessTokenValidRequest) String() string
type IsAccessTokenValidResponse ¶ added in v0.1.1
type IsAccessTokenValidResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*IsAccessTokenValidResponse) Descriptor
deprecated
added in
v0.1.1
func (*IsAccessTokenValidResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsAccessTokenValidResponse.ProtoReflect.Descriptor instead.
func (*IsAccessTokenValidResponse) GetCode ¶ added in v0.1.1
func (x *IsAccessTokenValidResponse) GetCode() uint32
func (*IsAccessTokenValidResponse) GetMessage ¶ added in v0.1.1
func (x *IsAccessTokenValidResponse) GetMessage() string
func (*IsAccessTokenValidResponse) ProtoMessage ¶ added in v0.1.1
func (*IsAccessTokenValidResponse) ProtoMessage()
func (*IsAccessTokenValidResponse) ProtoReflect ¶ added in v0.1.1
func (x *IsAccessTokenValidResponse) ProtoReflect() protoreflect.Message
func (*IsAccessTokenValidResponse) Reset ¶ added in v0.1.1
func (x *IsAccessTokenValidResponse) Reset()
func (*IsAccessTokenValidResponse) String ¶ added in v0.1.1
func (x *IsAccessTokenValidResponse) String() string
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"` // contains filtered or unexported fields }
func (*LogInRequest) Descriptor
deprecated
func (*LogInRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogInRequest.ProtoReflect.Descriptor instead.
func (*LogInRequest) GetPassword ¶ added in v0.0.10
func (x *LogInRequest) GetPassword() string
func (*LogInRequest) GetUsername ¶ added in v0.0.9
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 { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_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) GetCode ¶
func (x *LogInResponse) GetCode() uint32
func (*LogInResponse) GetMessage ¶
func (x *LogInResponse) GetMessage() string
func (*LogInResponse) GetRefreshToken ¶
func (x *LogInResponse) GetRefreshToken() 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 LogOutRequest ¶
type LogOutRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*LogOutRequest) Descriptor
deprecated
func (*LogOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogOutRequest.ProtoReflect.Descriptor instead.
func (*LogOutRequest) GetRefreshToken ¶
func (x *LogOutRequest) GetRefreshToken() string
func (*LogOutRequest) ProtoMessage ¶
func (*LogOutRequest) ProtoMessage()
func (*LogOutRequest) ProtoReflect ¶
func (x *LogOutRequest) ProtoReflect() protoreflect.Message
func (*LogOutRequest) Reset ¶
func (x *LogOutRequest) Reset()
func (*LogOutRequest) String ¶
func (x *LogOutRequest) String() string
type LogOutResponse ¶
type LogOutResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*LogOutResponse) Descriptor
deprecated
func (*LogOutResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogOutResponse.ProtoReflect.Descriptor instead.
func (*LogOutResponse) GetCode ¶
func (x *LogOutResponse) GetCode() uint32
func (*LogOutResponse) GetMessage ¶
func (x *LogOutResponse) GetMessage() string
func (*LogOutResponse) ProtoMessage ¶
func (*LogOutResponse) ProtoMessage()
func (*LogOutResponse) ProtoReflect ¶
func (x *LogOutResponse) ProtoReflect() protoreflect.Message
func (*LogOutResponse) Reset ¶
func (x *LogOutResponse) Reset()
func (*LogOutResponse) String ¶
func (x *LogOutResponse) String() string
type Permission ¶ added in v0.0.14
type Permission struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
added in
v0.0.14
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetAction ¶ added in v0.0.14
func (x *Permission) GetAction() string
func (*Permission) GetDescription ¶ added in v0.0.14
func (x *Permission) GetDescription() string
func (*Permission) GetId ¶ added in v0.0.14
func (x *Permission) GetId() string
func (*Permission) GetResource ¶ added in v0.0.14
func (x *Permission) GetResource() string
func (*Permission) ProtoMessage ¶ added in v0.0.14
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶ added in v0.0.14
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶ added in v0.0.14
func (x *Permission) Reset()
func (*Permission) String ¶ added in v0.0.14
func (x *Permission) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetAccessToken ¶
func (x *RefreshTokenResponse) GetAccessToken() string
func (*RefreshTokenResponse) GetCode ¶
func (x *RefreshTokenResponse) GetCode() uint32
func (*RefreshTokenResponse) GetMessage ¶
func (x *RefreshTokenResponse) GetMessage() string
func (*RefreshTokenResponse) GetRefreshToken ¶
func (x *RefreshTokenResponse) GetRefreshToken() string
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type RevokePermissionRequest ¶
type RevokePermissionRequest struct { Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*RevokePermissionRequest) Descriptor
deprecated
func (*RevokePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokePermissionRequest.ProtoReflect.Descriptor instead.
func (*RevokePermissionRequest) GetPermission ¶
func (x *RevokePermissionRequest) GetPermission() string
func (*RevokePermissionRequest) ProtoMessage ¶
func (*RevokePermissionRequest) ProtoMessage()
func (*RevokePermissionRequest) ProtoReflect ¶
func (x *RevokePermissionRequest) ProtoReflect() protoreflect.Message
func (*RevokePermissionRequest) Reset ¶
func (x *RevokePermissionRequest) Reset()
func (*RevokePermissionRequest) String ¶
func (x *RevokePermissionRequest) String() string
type RevokePermissionResponse ¶
type RevokePermissionResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RevokePermissionResponse) Descriptor
deprecated
func (*RevokePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokePermissionResponse.ProtoReflect.Descriptor instead.
func (*RevokePermissionResponse) GetCode ¶
func (x *RevokePermissionResponse) GetCode() uint32
func (*RevokePermissionResponse) GetMessage ¶
func (x *RevokePermissionResponse) GetMessage() string
func (*RevokePermissionResponse) ProtoMessage ¶
func (*RevokePermissionResponse) ProtoMessage()
func (*RevokePermissionResponse) ProtoReflect ¶
func (x *RevokePermissionResponse) ProtoReflect() protoreflect.Message
func (*RevokePermissionResponse) Reset ¶
func (x *RevokePermissionResponse) Reset()
func (*RevokePermissionResponse) String ¶
func (x *RevokePermissionResponse) String() string
type RevokeRolePermissionRequest ¶
type RevokeRolePermissionRequest struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*RevokeRolePermissionRequest) Descriptor
deprecated
func (*RevokeRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*RevokeRolePermissionRequest) GetPermission ¶
func (x *RevokeRolePermissionRequest) GetPermission() string
func (*RevokeRolePermissionRequest) GetRole ¶
func (x *RevokeRolePermissionRequest) GetRole() string
func (*RevokeRolePermissionRequest) ProtoMessage ¶
func (*RevokeRolePermissionRequest) ProtoMessage()
func (*RevokeRolePermissionRequest) ProtoReflect ¶
func (x *RevokeRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*RevokeRolePermissionRequest) Reset ¶
func (x *RevokeRolePermissionRequest) Reset()
func (*RevokeRolePermissionRequest) String ¶
func (x *RevokeRolePermissionRequest) String() string
type RevokeRolePermissionResponse ¶
type RevokeRolePermissionResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RevokeRolePermissionResponse) Descriptor
deprecated
func (*RevokeRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*RevokeRolePermissionResponse) GetCode ¶
func (x *RevokeRolePermissionResponse) GetCode() uint32
func (*RevokeRolePermissionResponse) GetMessage ¶
func (x *RevokeRolePermissionResponse) GetMessage() string
func (*RevokeRolePermissionResponse) ProtoMessage ¶
func (*RevokeRolePermissionResponse) ProtoMessage()
func (*RevokeRolePermissionResponse) ProtoReflect ¶
func (x *RevokeRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*RevokeRolePermissionResponse) Reset ¶
func (x *RevokeRolePermissionResponse) Reset()
func (*RevokeRolePermissionResponse) String ¶
func (x *RevokeRolePermissionResponse) String() string
type RevokeRoleRequest ¶
type RevokeRoleRequest struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*RevokeRoleRequest) Descriptor
deprecated
func (*RevokeRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRoleRequest.ProtoReflect.Descriptor instead.
func (*RevokeRoleRequest) GetRole ¶
func (x *RevokeRoleRequest) GetRole() string
func (*RevokeRoleRequest) ProtoMessage ¶
func (*RevokeRoleRequest) ProtoMessage()
func (*RevokeRoleRequest) ProtoReflect ¶
func (x *RevokeRoleRequest) ProtoReflect() protoreflect.Message
func (*RevokeRoleRequest) Reset ¶
func (x *RevokeRoleRequest) Reset()
func (*RevokeRoleRequest) String ¶
func (x *RevokeRoleRequest) String() string
type RevokeRoleResponse ¶
type RevokeRoleResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RevokeRoleResponse) Descriptor
deprecated
func (*RevokeRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRoleResponse.ProtoReflect.Descriptor instead.
func (*RevokeRoleResponse) GetCode ¶
func (x *RevokeRoleResponse) GetCode() uint32
func (*RevokeRoleResponse) GetMessage ¶
func (x *RevokeRoleResponse) GetMessage() string
func (*RevokeRoleResponse) ProtoMessage ¶
func (*RevokeRoleResponse) ProtoMessage()
func (*RevokeRoleResponse) ProtoReflect ¶
func (x *RevokeRoleResponse) ProtoReflect() protoreflect.Message
func (*RevokeRoleResponse) Reset ¶
func (x *RevokeRoleResponse) Reset()
func (*RevokeRoleResponse) String ¶
func (x *RevokeRoleResponse) String() string
type RevokeUserRoleRequest ¶ added in v0.0.11
type RevokeUserRoleRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // contains filtered or unexported fields }
func (*RevokeUserRoleRequest) Descriptor
deprecated
added in
v0.0.11
func (*RevokeUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeUserRoleRequest.ProtoReflect.Descriptor instead.
func (*RevokeUserRoleRequest) GetRoleId ¶ added in v0.0.14
func (x *RevokeUserRoleRequest) GetRoleId() string
func (*RevokeUserRoleRequest) GetUserId ¶ added in v0.0.14
func (x *RevokeUserRoleRequest) GetUserId() string
func (*RevokeUserRoleRequest) ProtoMessage ¶ added in v0.0.11
func (*RevokeUserRoleRequest) ProtoMessage()
func (*RevokeUserRoleRequest) ProtoReflect ¶ added in v0.0.11
func (x *RevokeUserRoleRequest) ProtoReflect() protoreflect.Message
func (*RevokeUserRoleRequest) Reset ¶ added in v0.0.11
func (x *RevokeUserRoleRequest) Reset()
func (*RevokeUserRoleRequest) String ¶ added in v0.0.11
func (x *RevokeUserRoleRequest) String() string
type RevokeUserRoleResponse ¶ added in v0.0.11
type RevokeUserRoleResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RevokeUserRoleResponse) Descriptor
deprecated
added in
v0.0.11
func (*RevokeUserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeUserRoleResponse.ProtoReflect.Descriptor instead.
func (*RevokeUserRoleResponse) GetCode ¶ added in v0.0.11
func (x *RevokeUserRoleResponse) GetCode() uint32
func (*RevokeUserRoleResponse) GetMessage ¶ added in v0.0.11
func (x *RevokeUserRoleResponse) GetMessage() string
func (*RevokeUserRoleResponse) ProtoMessage ¶ added in v0.0.11
func (*RevokeUserRoleResponse) ProtoMessage()
func (*RevokeUserRoleResponse) ProtoReflect ¶ added in v0.0.11
func (x *RevokeUserRoleResponse) ProtoReflect() protoreflect.Message
func (*RevokeUserRoleResponse) Reset ¶ added in v0.0.11
func (x *RevokeUserRoleResponse) Reset()
func (*RevokeUserRoleResponse) String ¶ added in v0.0.11
func (x *RevokeUserRoleResponse) String() string
type Role ¶ added in v0.0.14
type Role struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
added in
v0.0.14
func (*Role) GetDescription ¶ added in v0.0.14
func (*Role) ProtoMessage ¶ added in v0.0.14
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶ added in v0.0.14
func (x *Role) ProtoReflect() protoreflect.Message
type Session ¶ added in v0.0.17
type Session struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Ipv4Address string `protobuf:"bytes,3,opt,name=ipv4_address,json=ipv4Address,proto3" json:"ipv4_address,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
added in
v0.0.17
func (*Session) GetCreatedAt ¶ added in v0.0.17
func (*Session) GetIpv4Address ¶ added in v0.0.17
func (*Session) ProtoMessage ¶ added in v0.0.17
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶ added in v0.0.17
func (x *Session) ProtoReflect() protoreflect.Message
type UnimplementedAuthServer ¶ added in v0.0.4
type UnimplementedAuthServer struct{}
UnimplementedAuthServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAuthServer) AddPermission ¶ added in v0.0.4
func (UnimplementedAuthServer) AddPermission(context.Context, *AddPermissionRequest) (*AddPermissionResponse, error)
func (UnimplementedAuthServer) AddRole ¶ added in v0.0.4
func (UnimplementedAuthServer) AddRole(context.Context, *AddRoleRequest) (*AddRoleResponse, error)
func (UnimplementedAuthServer) AddRolePermission ¶ added in v0.0.4
func (UnimplementedAuthServer) AddRolePermission(context.Context, *AddRolePermissionRequest) (*AddRolePermissionResponse, error)
func (UnimplementedAuthServer) AddUserRole ¶ added in v0.0.11
func (UnimplementedAuthServer) AddUserRole(context.Context, *AddUserRoleRequest) (*AddUserRoleResponse, error)
func (UnimplementedAuthServer) CloseSessions ¶ added in v0.0.4
func (UnimplementedAuthServer) CloseSessions(context.Context, *CloseSessionsRequest) (*CloseSessionsResponse, error)
func (UnimplementedAuthServer) GetPermission ¶ added in v0.0.14
func (UnimplementedAuthServer) GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
func (UnimplementedAuthServer) GetPermissions ¶ added in v0.0.11
func (UnimplementedAuthServer) GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
func (UnimplementedAuthServer) GetRolePermissions ¶ added in v0.0.11
func (UnimplementedAuthServer) GetRolePermissions(context.Context, *GetRolePermissionsRequest) (*GetRolePermissionsResponse, error)
func (UnimplementedAuthServer) GetRoles ¶ added in v0.0.11
func (UnimplementedAuthServer) GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
func (UnimplementedAuthServer) GetSessions ¶ added in v0.0.17
func (UnimplementedAuthServer) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
func (UnimplementedAuthServer) GetUserRoles ¶ added in v0.0.11
func (UnimplementedAuthServer) GetUserRoles(context.Context, *GetUserRolesRequest) (*GetUserRolesResponse, error)
func (UnimplementedAuthServer) IsAccessTokenValid ¶ added in v0.1.1
func (UnimplementedAuthServer) IsAccessTokenValid(context.Context, *IsAccessTokenValidRequest) (*IsAccessTokenValidResponse, error)
func (UnimplementedAuthServer) LogIn ¶ added in v0.0.4
func (UnimplementedAuthServer) LogIn(context.Context, *LogInRequest) (*LogInResponse, error)
func (UnimplementedAuthServer) LogOut ¶ added in v0.0.4
func (UnimplementedAuthServer) LogOut(context.Context, *LogOutRequest) (*LogOutResponse, error)
func (UnimplementedAuthServer) RefreshToken ¶ added in v0.0.4
func (UnimplementedAuthServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
func (UnimplementedAuthServer) RevokePermission ¶ added in v0.0.4
func (UnimplementedAuthServer) RevokePermission(context.Context, *RevokePermissionRequest) (*RevokePermissionResponse, error)
func (UnimplementedAuthServer) RevokeRole ¶ added in v0.0.4
func (UnimplementedAuthServer) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, error)
func (UnimplementedAuthServer) RevokeRolePermission ¶ added in v0.0.4
func (UnimplementedAuthServer) RevokeRolePermission(context.Context, *RevokeRolePermissionRequest) (*RevokeRolePermissionResponse, error)
func (UnimplementedAuthServer) RevokeUserRole ¶ added in v0.0.11
func (UnimplementedAuthServer) RevokeUserRole(context.Context, *RevokeUserRoleRequest) (*RevokeUserRoleResponse, error)
type UnsafeAuthServer ¶ added in v0.0.4
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.