Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthApiServiceServer(s grpc.ServiceRegistrar, srv AuthApiServiceServer)
- type AuthApiServiceClient
- type AuthApiServiceServer
- type UnimplementedAuthApiServiceServer
- type UnsafeAuthApiServiceServer
- type VerifyTokenRequest
- func (x *VerifyTokenRequest) ClearToken()
- func (x *VerifyTokenRequest) GetToken() string
- func (x *VerifyTokenRequest) HasToken() bool
- func (*VerifyTokenRequest) ProtoMessage()
- func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenRequest) Reset()
- func (x *VerifyTokenRequest) SetToken(v string)
- func (x *VerifyTokenRequest) String() string
- type VerifyTokenRequest_builder
- type VerifyTokenResponse
- func (x *VerifyTokenResponse) ClearValid()
- func (x *VerifyTokenResponse) GetValid() bool
- func (x *VerifyTokenResponse) HasValid() bool
- func (*VerifyTokenResponse) ProtoMessage()
- func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenResponse) Reset()
- func (x *VerifyTokenResponse) SetValid(v bool)
- func (x *VerifyTokenResponse) String() string
- type VerifyTokenResponse_builder
Constants ¶
const (
AuthApiService_VerifyToken_FullMethodName = "/authapi.v1.AuthApiService/VerifyToken"
)
Variables ¶
var AuthApiService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authapi.v1.AuthApiService", HandlerType: (*AuthApiServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "VerifyToken", Handler: _AuthApiService_VerifyToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authapi/v1/authapi.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_authapi_v1_authapi_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthApiServiceServer ¶
func RegisterAuthApiServiceServer(s grpc.ServiceRegistrar, srv AuthApiServiceServer)
Types ¶
type AuthApiServiceClient ¶
type AuthApiServiceClient interface {
// VerifyToken verifies JWT access token
VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, 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 {
// VerifyToken verifies JWT access token
VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
// contains filtered or unexported methods
}
AuthApiServiceServer is the server API for AuthApiService service. All implementations must embed UnimplementedAuthApiServiceServer for forward compatibility.
type UnimplementedAuthApiServiceServer ¶
type UnimplementedAuthApiServiceServer struct{}
UnimplementedAuthApiServiceServer 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 (UnimplementedAuthApiServiceServer) VerifyToken ¶
func (UnimplementedAuthApiServiceServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, 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.
type VerifyTokenRequest ¶
type VerifyTokenRequest struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*VerifyTokenRequest) ClearToken ¶
func (x *VerifyTokenRequest) ClearToken()
func (*VerifyTokenRequest) GetToken ¶
func (x *VerifyTokenRequest) GetToken() string
func (*VerifyTokenRequest) HasToken ¶
func (x *VerifyTokenRequest) HasToken() bool
func (*VerifyTokenRequest) ProtoMessage ¶
func (*VerifyTokenRequest) ProtoMessage()
func (*VerifyTokenRequest) ProtoReflect ¶
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
func (*VerifyTokenRequest) Reset ¶
func (x *VerifyTokenRequest) Reset()
func (*VerifyTokenRequest) SetToken ¶
func (x *VerifyTokenRequest) SetToken(v string)
func (*VerifyTokenRequest) String ¶
func (x *VerifyTokenRequest) String() string
type VerifyTokenRequest_builder ¶
type VerifyTokenRequest_builder struct {
Token *string
// contains filtered or unexported fields
}
func (VerifyTokenRequest_builder) Build ¶
func (b0 VerifyTokenRequest_builder) Build() *VerifyTokenRequest
type VerifyTokenResponse ¶
type VerifyTokenResponse struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*VerifyTokenResponse) ClearValid ¶
func (x *VerifyTokenResponse) ClearValid()
func (*VerifyTokenResponse) GetValid ¶
func (x *VerifyTokenResponse) GetValid() bool
func (*VerifyTokenResponse) HasValid ¶
func (x *VerifyTokenResponse) HasValid() bool
func (*VerifyTokenResponse) ProtoMessage ¶
func (*VerifyTokenResponse) ProtoMessage()
func (*VerifyTokenResponse) ProtoReflect ¶
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
func (*VerifyTokenResponse) Reset ¶
func (x *VerifyTokenResponse) Reset()
func (*VerifyTokenResponse) SetValid ¶
func (x *VerifyTokenResponse) SetValid(v bool)
func (*VerifyTokenResponse) String ¶
func (x *VerifyTokenResponse) String() string
type VerifyTokenResponse_builder ¶
type VerifyTokenResponse_builder struct {
Valid *bool
// contains filtered or unexported fields
}
func (VerifyTokenResponse_builder) Build ¶
func (b0 VerifyTokenResponse_builder) Build() *VerifyTokenResponse