Documentation
¶
Index ¶
- Variables
- func RegisterAuthAPIServiceServer(s grpc.ServiceRegistrar, srv AuthAPIServiceServer)
- type AuthAPIServiceClient
- type AuthAPIServiceServer
- type AuthRequest
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetIdentity() string
- func (x *AuthResponse) GetOrigin() string
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- type UnimplementedAuthAPIServiceServer
- type UnsafeAuthAPIServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuthAPIService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "broker.auth.v1.AuthAPIService", HandlerType: (*AuthAPIServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Auth", Handler: _AuthAPIService_Auth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "broker/auth/v1/auth.proto", }
AuthAPIService_ServiceDesc is the grpc.ServiceDesc for AuthAPIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_broker_auth_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthAPIServiceServer ¶
func RegisterAuthAPIServiceServer(s grpc.ServiceRegistrar, srv AuthAPIServiceServer)
Types ¶
type AuthAPIServiceClient ¶
type AuthAPIServiceClient interface {
Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
}
AuthAPIServiceClient is the client API for AuthAPIService 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 NewAuthAPIServiceClient ¶
func NewAuthAPIServiceClient(cc grpc.ClientConnInterface) AuthAPIServiceClient
type AuthAPIServiceServer ¶
type AuthAPIServiceServer interface { Auth(context.Context, *AuthRequest) (*AuthResponse, error) // contains filtered or unexported methods }
AuthAPIServiceServer is the server API for AuthAPIService service. All implementations must embed UnimplementedAuthAPIServiceServer for forward compatibility
type AuthRequest ¶
type AuthRequest struct { // JWT token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetToken ¶
func (x *AuthRequest) GetToken() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
type AuthResponse ¶
type AuthResponse struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetIdentity ¶
func (x *AuthResponse) GetIdentity() string
func (*AuthResponse) GetOrigin ¶
func (x *AuthResponse) GetOrigin() string
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
type UnimplementedAuthAPIServiceServer ¶
type UnimplementedAuthAPIServiceServer struct { }
UnimplementedAuthAPIServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthAPIServiceServer) Auth ¶
func (UnimplementedAuthAPIServiceServer) Auth(context.Context, *AuthRequest) (*AuthResponse, error)
type UnsafeAuthAPIServiceServer ¶
type UnsafeAuthAPIServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthAPIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthAPIServiceServer will result in compilation errors.