Documentation
¶
Index ¶
- Variables
- func RegisterPreferencesAPIHandler(s server.Server, hdlr PreferencesAPIHandler, opts ...server.HandlerOption) error
- func RegisterPreferencesAPIServer(s *grpc.Server, srv PreferencesAPIServer)
- type GetKeyRequest
- type GetKeyResponse
- func (*GetKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyResponse) GetStatus() *v1beta1.Status
- func (x *GetKeyResponse) GetVal() string
- func (*GetKeyResponse) ProtoMessage()
- func (x *GetKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GetKeyResponse) Reset()
- func (x *GetKeyResponse) String() string
- type PreferencesAPIClient
- type PreferencesAPIHandler
- type PreferencesAPIServer
- type PreferencesAPIService
- type SetKeyRequest
- func (*SetKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetKeyRequest) GetKey() string
- func (x *SetKeyRequest) GetVal() string
- func (*SetKeyRequest) ProtoMessage()
- func (x *SetKeyRequest) ProtoReflect() protoreflect.Message
- func (x *SetKeyRequest) Reset()
- func (x *SetKeyRequest) String() string
- type SetKeyResponse
- type UnimplementedPreferencesAPIServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_cs3_preferences_v1beta1_preferences_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPreferencesAPIHandler ¶
func RegisterPreferencesAPIHandler(s server.Server, hdlr PreferencesAPIHandler, opts ...server.HandlerOption) error
func RegisterPreferencesAPIServer ¶
func RegisterPreferencesAPIServer(s *grpc.Server, srv PreferencesAPIServer)
Types ¶
type GetKeyRequest ¶
type GetKeyRequest struct { // REQUIRED. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetKeyRequest) Descriptor
deprecated
func (*GetKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.
func (*GetKeyRequest) GetKey ¶
func (x *GetKeyRequest) GetKey() string
func (*GetKeyRequest) ProtoMessage ¶
func (*GetKeyRequest) ProtoMessage()
func (*GetKeyRequest) ProtoReflect ¶
func (x *GetKeyRequest) ProtoReflect() protoreflect.Message
func (*GetKeyRequest) Reset ¶
func (x *GetKeyRequest) Reset()
func (*GetKeyRequest) String ¶
func (x *GetKeyRequest) String() string
type GetKeyResponse ¶
type GetKeyResponse struct { // REQUIRED. // The response status. Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // REQUIRED. // The value associated with the key. Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*GetKeyResponse) Descriptor
deprecated
func (*GetKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyResponse.ProtoReflect.Descriptor instead.
func (*GetKeyResponse) GetStatus ¶
func (x *GetKeyResponse) GetStatus() *v1beta1.Status
func (*GetKeyResponse) GetVal ¶
func (x *GetKeyResponse) GetVal() string
func (*GetKeyResponse) ProtoMessage ¶
func (*GetKeyResponse) ProtoMessage()
func (*GetKeyResponse) ProtoReflect ¶
func (x *GetKeyResponse) ProtoReflect() protoreflect.Message
func (*GetKeyResponse) Reset ¶
func (x *GetKeyResponse) Reset()
func (*GetKeyResponse) String ¶
func (x *GetKeyResponse) String() string
type PreferencesAPIClient ¶
type PreferencesAPIClient interface { // Maps the key-value pair. SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) // Returns the value associated with the // requested key. GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) }
PreferencesAPIClient is the client API for PreferencesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPreferencesAPIClient ¶
func NewPreferencesAPIClient(cc grpc.ClientConnInterface) PreferencesAPIClient
type PreferencesAPIHandler ¶
type PreferencesAPIHandler interface { // Maps the key-value pair. SetKey(context.Context, *SetKeyRequest, *SetKeyResponse) error // Returns the value associated with the // requested key. GetKey(context.Context, *GetKeyRequest, *GetKeyResponse) error }
type PreferencesAPIServer ¶
type PreferencesAPIServer interface { // Maps the key-value pair. SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error) // Returns the value associated with the // requested key. GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) }
PreferencesAPIServer is the server API for PreferencesAPI service.
type PreferencesAPIService ¶
type PreferencesAPIService interface { // Maps the key-value pair. SetKey(ctx context.Context, in *SetKeyRequest, opts ...client.CallOption) (*SetKeyResponse, error) // Returns the value associated with the // requested key. GetKey(ctx context.Context, in *GetKeyRequest, opts ...client.CallOption) (*GetKeyResponse, error) }
func NewPreferencesAPIService ¶
func NewPreferencesAPIService(name string, c client.Client) PreferencesAPIService
type SetKeyRequest ¶
type SetKeyRequest struct { // REQUIRED. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // REQUIRED. // The value associated with the key. Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*SetKeyRequest) Descriptor
deprecated
func (*SetKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetKeyRequest.ProtoReflect.Descriptor instead.
func (*SetKeyRequest) GetKey ¶
func (x *SetKeyRequest) GetKey() string
func (*SetKeyRequest) GetVal ¶
func (x *SetKeyRequest) GetVal() string
func (*SetKeyRequest) ProtoMessage ¶
func (*SetKeyRequest) ProtoMessage()
func (*SetKeyRequest) ProtoReflect ¶
func (x *SetKeyRequest) ProtoReflect() protoreflect.Message
func (*SetKeyRequest) Reset ¶
func (x *SetKeyRequest) Reset()
func (*SetKeyRequest) String ¶
func (x *SetKeyRequest) String() string
type SetKeyResponse ¶
type SetKeyResponse struct { // REQUIRED. // The response status. Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*SetKeyResponse) Descriptor
deprecated
func (*SetKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetKeyResponse.ProtoReflect.Descriptor instead.
func (*SetKeyResponse) GetStatus ¶
func (x *SetKeyResponse) GetStatus() *v1beta1.Status
func (*SetKeyResponse) ProtoMessage ¶
func (*SetKeyResponse) ProtoMessage()
func (*SetKeyResponse) ProtoReflect ¶
func (x *SetKeyResponse) ProtoReflect() protoreflect.Message
func (*SetKeyResponse) Reset ¶
func (x *SetKeyResponse) Reset()
func (*SetKeyResponse) String ¶
func (x *SetKeyResponse) String() string
type UnimplementedPreferencesAPIServer ¶
type UnimplementedPreferencesAPIServer struct { }
UnimplementedPreferencesAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedPreferencesAPIServer) GetKey ¶
func (*UnimplementedPreferencesAPIServer) GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error)
func (*UnimplementedPreferencesAPIServer) SetKey ¶
func (*UnimplementedPreferencesAPIServer) SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.