Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTokenStoreServer(s grpc.ServiceRegistrar, srv TokenStoreServer)
- type TokenStoreClient
- type TokenStoreServer
- type TokenValueRequest
- func (*TokenValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TokenValueRequest) GetMetadata() []byte
- func (x *TokenValueRequest) GetToken() string
- func (*TokenValueRequest) ProtoMessage()
- func (x *TokenValueRequest) ProtoReflect() protoreflect.Message
- func (x *TokenValueRequest) Reset()
- func (x *TokenValueRequest) String() string
- type TokenValueResponse
- func (*TokenValueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenValueResponse) GetValue() string
- func (*TokenValueResponse) ProtoMessage()
- func (x *TokenValueResponse) ProtoReflect() protoreflect.Message
- func (x *TokenValueResponse) Reset()
- func (x *TokenValueResponse) String() string
- type UnimplementedTokenStoreServer
- type UnsafeTokenStoreServer
Constants ¶
const (
TokenStore_Value_FullMethodName = "/proto.TokenStore/Value"
)
Variables ¶
var File_token_store_proto protoreflect.FileDescriptor
var TokenStore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TokenStore", HandlerType: (*TokenStoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Value", Handler: _TokenStore_Value_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "token_store.proto", }
TokenStore_ServiceDesc is the grpc.ServiceDesc for TokenStore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTokenStoreServer ¶
func RegisterTokenStoreServer(s grpc.ServiceRegistrar, srv TokenStoreServer)
Types ¶
type TokenStoreClient ¶
type TokenStoreClient interface {
Value(ctx context.Context, in *TokenValueRequest, opts ...grpc.CallOption) (*TokenValueResponse, error)
}
TokenStoreClient is the client API for TokenStore 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 NewTokenStoreClient ¶
func NewTokenStoreClient(cc grpc.ClientConnInterface) TokenStoreClient
type TokenStoreServer ¶
type TokenStoreServer interface {
Value(context.Context, *TokenValueRequest) (*TokenValueResponse, error)
}
TokenStoreServer is the server API for TokenStore service. All implementations should embed UnimplementedTokenStoreServer for forward compatibility
type TokenValueRequest ¶
type TokenValueRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*TokenValueRequest) Descriptor
deprecated
func (*TokenValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use TokenValueRequest.ProtoReflect.Descriptor instead.
func (*TokenValueRequest) GetMetadata ¶
func (x *TokenValueRequest) GetMetadata() []byte
func (*TokenValueRequest) GetToken ¶
func (x *TokenValueRequest) GetToken() string
func (*TokenValueRequest) ProtoMessage ¶
func (*TokenValueRequest) ProtoMessage()
func (*TokenValueRequest) ProtoReflect ¶
func (x *TokenValueRequest) ProtoReflect() protoreflect.Message
func (*TokenValueRequest) Reset ¶
func (x *TokenValueRequest) Reset()
func (*TokenValueRequest) String ¶
func (x *TokenValueRequest) String() string
type TokenValueResponse ¶
type TokenValueResponse struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*TokenValueResponse) Descriptor
deprecated
func (*TokenValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenValueResponse.ProtoReflect.Descriptor instead.
func (*TokenValueResponse) GetValue ¶
func (x *TokenValueResponse) GetValue() string
func (*TokenValueResponse) ProtoMessage ¶
func (*TokenValueResponse) ProtoMessage()
func (*TokenValueResponse) ProtoReflect ¶
func (x *TokenValueResponse) ProtoReflect() protoreflect.Message
func (*TokenValueResponse) Reset ¶
func (x *TokenValueResponse) Reset()
func (*TokenValueResponse) String ¶
func (x *TokenValueResponse) String() string
type UnimplementedTokenStoreServer ¶
type UnimplementedTokenStoreServer struct {
}
UnimplementedTokenStoreServer should be embedded to have forward compatible implementations.
func (UnimplementedTokenStoreServer) Value ¶
func (UnimplementedTokenStoreServer) Value(context.Context, *TokenValueRequest) (*TokenValueResponse, error)
type UnsafeTokenStoreServer ¶
type UnsafeTokenStoreServer interface {
// contains filtered or unexported methods
}
UnsafeTokenStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TokenStoreServer will result in compilation errors.