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 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 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 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 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) CloseSessions(context.Context, *CloseSessionsRequest) (*CloseSessionsResponse, 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)
- type UnsafeAuthServer
Constants ¶
const ( Auth_LogIn_FullMethodName = "/auth.Auth/LogIn" Auth_RefreshToken_FullMethodName = "/auth.Auth/RefreshToken" Auth_LogOut_FullMethodName = "/auth.Auth/LogOut" Auth_CloseSessions_FullMethodName = "/auth.Auth/CloseSessions" Auth_AddPermission_FullMethodName = "/auth.Auth/AddPermission" Auth_RevokePermission_FullMethodName = "/auth.Auth/RevokePermission" Auth_AddRolePermission_FullMethodName = "/auth.Auth/AddRolePermission" Auth_RevokeRolePermission_FullMethodName = "/auth.Auth/RevokeRolePermission" Auth_AddRole_FullMethodName = "/auth.Auth/AddRole" Auth_RevokeRole_FullMethodName = "/auth.Auth/RevokeRole" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LogIn", Handler: _Auth_LogIn_Handler, }, { MethodName: "RefreshToken", Handler: _Auth_RefreshToken_Handler, }, { MethodName: "LogOut", Handler: _Auth_LogOut_Handler, }, { MethodName: "CloseSessions", Handler: _Auth_CloseSessions_Handler, }, { MethodName: "AddPermission", Handler: _Auth_AddPermission_Handler, }, { MethodName: "RevokePermission", Handler: _Auth_RevokePermission_Handler, }, { MethodName: "AddRolePermission", Handler: _Auth_AddRolePermission_Handler, }, { MethodName: "RevokeRolePermission", Handler: _Auth_RevokeRolePermission_Handler, }, { MethodName: "AddRole", Handler: _Auth_AddRole_Handler, }, { MethodName: "RevokeRole", Handler: _Auth_RevokeRole_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 AuthClient ¶ added in v0.0.4
type AuthClient interface { LogIn(ctx context.Context, in *LogInRequest, opts ...grpc.CallOption) (*LogInResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) LogOut(ctx context.Context, in *LogOutRequest, opts ...grpc.CallOption) (*LogOutResponse, 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) AddRolePermission(ctx context.Context, in *AddRolePermissionRequest, opts ...grpc.CallOption) (*AddRolePermissionResponse, error) RevokeRolePermission(ctx context.Context, in *RevokeRolePermissionRequest, opts ...grpc.CallOption) (*RevokeRolePermissionResponse, error) AddRole(ctx context.Context, in *AddRoleRequest, opts ...grpc.CallOption) (*AddRoleResponse, error) RevokeRole(ctx context.Context, in *RevokeRoleRequest, opts ...grpc.CallOption) (*RevokeRoleResponse, 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) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) LogOut(context.Context, *LogOutRequest) (*LogOutResponse, error) CloseSessions(context.Context, *CloseSessionsRequest) (*CloseSessionsResponse, error) AddPermission(context.Context, *AddPermissionRequest) (*AddPermissionResponse, error) RevokePermission(context.Context, *RevokePermissionRequest) (*RevokePermissionResponse, error) AddRolePermission(context.Context, *AddRolePermissionRequest) (*AddRolePermissionResponse, error) RevokeRolePermission(context.Context, *RevokeRolePermissionRequest) (*RevokeRolePermissionResponse, error) AddRole(context.Context, *AddRoleRequest) (*AddRoleResponse, error) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, 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 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 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 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) CloseSessions ¶ added in v0.0.4
func (UnimplementedAuthServer) CloseSessions(context.Context, *CloseSessionsRequest) (*CloseSessionsResponse, 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)
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.