Documentation
¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetMethod() string
- func (x *Action) GetPath() string
- func (x *Action) GetService() string
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type AuthServiceClient
- type AuthServiceServer
- type AuthenticationRequest
- type AuthorizationRequest
- func (*AuthorizationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizationRequest) GetAction() *Action
- func (x *AuthorizationRequest) GetOperationCode() string
- func (x *AuthorizationRequest) GetOrgId() string
- func (m *AuthorizationRequest) GetPayload() isAuthorizationRequest_Payload
- func (*AuthorizationRequest) ProtoMessage()
- func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizationRequest) Reset()
- func (x *AuthorizationRequest) String() string
- type AuthorizationRequest_Action
- type AuthorizationRequest_OperationCode
- type AuthorizationRequest_OrgId
- type Result
- type UnimplementedAuthServiceServer
- type UnsafeAuthServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authentication", Handler: _AuthService_Authentication_Handler, }, { MethodName: "Authorization", Handler: _AuthService_Authorization_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
Types ¶
type Action ¶
type Action struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetService ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type AuthServiceClient ¶
type AuthServiceClient interface { Authentication(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*Result, error) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*Result, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Authentication(context.Context, *AuthenticationRequest) (*Result, error) Authorization(context.Context, *AuthorizationRequest) (*Result, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type AuthenticationRequest ¶
type AuthenticationRequest struct {
// contains filtered or unexported fields
}
func (*AuthenticationRequest) Descriptor
deprecated
func (*AuthenticationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationRequest.ProtoReflect.Descriptor instead.
func (*AuthenticationRequest) ProtoMessage ¶
func (*AuthenticationRequest) ProtoMessage()
func (*AuthenticationRequest) ProtoReflect ¶
func (x *AuthenticationRequest) ProtoReflect() protoreflect.Message
func (*AuthenticationRequest) Reset ¶
func (x *AuthenticationRequest) Reset()
func (*AuthenticationRequest) String ¶
func (x *AuthenticationRequest) String() string
type AuthorizationRequest ¶
type AuthorizationRequest struct { // Types that are assignable to Payload: // *AuthorizationRequest_OperationCode // *AuthorizationRequest_Action // *AuthorizationRequest_OrgId Payload isAuthorizationRequest_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*AuthorizationRequest) Descriptor
deprecated
func (*AuthorizationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizationRequest.ProtoReflect.Descriptor instead.
func (*AuthorizationRequest) GetAction ¶
func (x *AuthorizationRequest) GetAction() *Action
func (*AuthorizationRequest) GetOperationCode ¶
func (x *AuthorizationRequest) GetOperationCode() string
func (*AuthorizationRequest) GetOrgId ¶
func (x *AuthorizationRequest) GetOrgId() string
func (*AuthorizationRequest) GetPayload ¶
func (m *AuthorizationRequest) GetPayload() isAuthorizationRequest_Payload
func (*AuthorizationRequest) ProtoMessage ¶
func (*AuthorizationRequest) ProtoMessage()
func (*AuthorizationRequest) ProtoReflect ¶
func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message
func (*AuthorizationRequest) Reset ¶
func (x *AuthorizationRequest) Reset()
func (*AuthorizationRequest) String ¶
func (x *AuthorizationRequest) String() string
type AuthorizationRequest_Action ¶
type AuthorizationRequest_Action struct {
Action *Action `protobuf:"bytes,2,opt,name=action,proto3,oneof"`
}
type AuthorizationRequest_OperationCode ¶
type AuthorizationRequest_OperationCode struct {
OperationCode string `protobuf:"bytes,1,opt,name=operationCode,proto3,oneof"`
}
type AuthorizationRequest_OrgId ¶
type AuthorizationRequest_OrgId struct {
OrgId string `protobuf:"bytes,3,opt,name=orgId,proto3,oneof"`
}
type Result ¶
type Result struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetMessage ¶ added in v1.3.0
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Authentication ¶
func (UnimplementedAuthServiceServer) Authentication(context.Context, *AuthenticationRequest) (*Result, error)
func (UnimplementedAuthServiceServer) Authorization ¶
func (UnimplementedAuthServiceServer) Authorization(context.Context, *AuthorizationRequest) (*Result, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.