preferencesv1beta1

package
v0.0.0-...-6b5d9df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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.

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) SetKey

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL