auth

package
v0.0.0-...-269d6e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL