Documentation ¶
Index ¶
Constants ¶
const (
AuthN_AuthN_FullMethodName = "/authn.AuthN/AuthN"
)
Variables ¶
var AuthN_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authn.AuthN", HandlerType: (*AuthNServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AuthN", Handler: _AuthN_AuthN_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authn/authn.proto", }
AuthN_ServiceDesc is the grpc.ServiceDesc for AuthN service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_authn_authn_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthNServer ¶
func RegisterAuthNServer(s grpc.ServiceRegistrar, srv AuthNServer)
Types ¶
type AuthNClient ¶
type AuthNClient interface {
AuthN(ctx context.Context, in *AuthNRequest, opts ...grpc.CallOption) (*user.User, error)
}
AuthNClient is the client API for AuthN 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 NewAuthNClient ¶
func NewAuthNClient(cc grpc.ClientConnInterface) AuthNClient
type AuthNRequest ¶
type AuthNRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthNRequest) Descriptor
deprecated
func (*AuthNRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthNRequest.ProtoReflect.Descriptor instead.
func (*AuthNRequest) GetToken ¶
func (x *AuthNRequest) GetToken() string
func (*AuthNRequest) ProtoMessage ¶
func (*AuthNRequest) ProtoMessage()
func (*AuthNRequest) ProtoReflect ¶
func (x *AuthNRequest) ProtoReflect() protoreflect.Message
func (*AuthNRequest) Reset ¶
func (x *AuthNRequest) Reset()
func (*AuthNRequest) String ¶
func (x *AuthNRequest) String() string
type AuthNServer ¶
type AuthNServer interface { AuthN(context.Context, *AuthNRequest) (*user.User, error) // contains filtered or unexported methods }
AuthNServer is the server API for AuthN service. All implementations must embed UnimplementedAuthNServer for forward compatibility
type UnimplementedAuthNServer ¶
type UnimplementedAuthNServer struct { }
UnimplementedAuthNServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthNServer) AuthN ¶
func (UnimplementedAuthNServer) AuthN(context.Context, *AuthNRequest) (*user.User, error)
type UnsafeAuthNServer ¶
type UnsafeAuthNServer interface {
// contains filtered or unexported methods
}
UnsafeAuthNServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthNServer will result in compilation errors.