Documentation ¶
Index ¶
- Variables
- func RegisterTokenProviderServer(s grpc.ServiceRegistrar, srv TokenProviderServer)
- type TokenProviderClient
- type TokenProviderServer
- type TokenRequest
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResponse) GetStatus() int32
- func (x *TokenResponse) GetSuccess() bool
- func (x *TokenResponse) GetToken() string
- func (*TokenResponse) ProtoMessage()
- func (x *TokenResponse) ProtoReflect() protoreflect.Message
- func (x *TokenResponse) Reset()
- func (x *TokenResponse) String() string
- type UnimplementedTokenProviderServer
- type UnsafeTokenProviderServer
Constants ¶
This section is empty.
Variables ¶
var File_token_provider_proto protoreflect.FileDescriptor
var TokenProvider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TokenProvider", HandlerType: (*TokenProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetToken", Handler: _TokenProvider_GetToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "token-provider.proto", }
TokenProvider_ServiceDesc is the grpc.ServiceDesc for TokenProvider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTokenProviderServer ¶
func RegisterTokenProviderServer(s grpc.ServiceRegistrar, srv TokenProviderServer)
Types ¶
type TokenProviderClient ¶
type TokenProviderClient interface {
GetToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
}
TokenProviderClient is the client API for TokenProvider 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 NewTokenProviderClient ¶
func NewTokenProviderClient(cc grpc.ClientConnInterface) TokenProviderClient
type TokenProviderServer ¶
type TokenProviderServer interface { GetToken(context.Context, *TokenRequest) (*TokenResponse, error) // contains filtered or unexported methods }
TokenProviderServer is the server API for TokenProvider service. All implementations must embed UnimplementedTokenProviderServer for forward compatibility
type TokenRequest ¶
type TokenRequest struct { Params []string `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*TokenRequest) Descriptor
deprecated
func (*TokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.
func (*TokenRequest) GetParams ¶
func (x *TokenRequest) GetParams() []string
func (*TokenRequest) ProtoMessage ¶
func (*TokenRequest) ProtoMessage()
func (*TokenRequest) ProtoReflect ¶ added in v0.3.4
func (x *TokenRequest) ProtoReflect() protoreflect.Message
func (*TokenRequest) Reset ¶
func (x *TokenRequest) Reset()
func (*TokenRequest) String ¶
func (x *TokenRequest) String() string
type TokenResponse ¶
type TokenResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*TokenResponse) Descriptor
deprecated
func (*TokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
func (*TokenResponse) GetStatus ¶
func (x *TokenResponse) GetStatus() int32
func (*TokenResponse) GetSuccess ¶
func (x *TokenResponse) GetSuccess() bool
func (*TokenResponse) GetToken ¶
func (x *TokenResponse) GetToken() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) ProtoReflect ¶ added in v0.3.4
func (x *TokenResponse) ProtoReflect() protoreflect.Message
func (*TokenResponse) Reset ¶
func (x *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (x *TokenResponse) String() string
type UnimplementedTokenProviderServer ¶ added in v0.3.4
type UnimplementedTokenProviderServer struct { }
UnimplementedTokenProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedTokenProviderServer) GetToken ¶ added in v0.3.4
func (UnimplementedTokenProviderServer) GetToken(context.Context, *TokenRequest) (*TokenResponse, error)
type UnsafeTokenProviderServer ¶ added in v0.3.4
type UnsafeTokenProviderServer interface {
// contains filtered or unexported methods
}
UnsafeTokenProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TokenProviderServer will result in compilation errors.