storage

package
v3.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package storage is a generated protocol buffer package.

It is generated from these files:

storage.proto

It has these top-level messages:

ProposeRequest
ProposeResponse
LookupRequest
LookupResponse

Package storage is a generated protocol buffer package.

It is generated from these files:

storage.proto

It has these top-level messages:

ProposeRequest
ProposeResponse
LookupRequest
LookupResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStorageEndpointHandler

func RegisterStorageEndpointHandler(s server.Server, hdlr StorageEndpointHandler, opts ...server.HandlerOption)

Types

type LookupRequest

type LookupRequest struct {
	Key string `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}

func (*LookupRequest) Descriptor

func (*LookupRequest) Descriptor() ([]byte, []int)

func (*LookupRequest) GetKey

func (m *LookupRequest) GetKey() string

func (*LookupRequest) ProtoMessage

func (*LookupRequest) ProtoMessage()

func (*LookupRequest) Reset

func (m *LookupRequest) Reset()

func (*LookupRequest) String

func (m *LookupRequest) String() string

func (*LookupRequest) Validate

func (this *LookupRequest) Validate() error

type LookupResponse

type LookupResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
}

func (*LookupResponse) Descriptor

func (*LookupResponse) Descriptor() ([]byte, []int)

func (*LookupResponse) GetValue

func (m *LookupResponse) GetValue() []byte

func (*LookupResponse) ProtoMessage

func (*LookupResponse) ProtoMessage()

func (*LookupResponse) Reset

func (m *LookupResponse) Reset()

func (*LookupResponse) String

func (m *LookupResponse) String() string

func (*LookupResponse) Validate

func (this *LookupResponse) Validate() error

type ProposeRequest

type ProposeRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
}

func (*ProposeRequest) Descriptor

func (*ProposeRequest) Descriptor() ([]byte, []int)

func (*ProposeRequest) GetKey

func (m *ProposeRequest) GetKey() string

func (*ProposeRequest) GetValue

func (m *ProposeRequest) GetValue() []byte

func (*ProposeRequest) ProtoMessage

func (*ProposeRequest) ProtoMessage()

func (*ProposeRequest) Reset

func (m *ProposeRequest) Reset()

func (*ProposeRequest) String

func (m *ProposeRequest) String() string

func (*ProposeRequest) Validate

func (this *ProposeRequest) Validate() error

type ProposeResponse

type ProposeResponse struct {
}

func (*ProposeResponse) Descriptor

func (*ProposeResponse) Descriptor() ([]byte, []int)

func (*ProposeResponse) ProtoMessage

func (*ProposeResponse) ProtoMessage()

func (*ProposeResponse) Reset

func (m *ProposeResponse) Reset()

func (*ProposeResponse) String

func (m *ProposeResponse) String() string

func (*ProposeResponse) Validate

func (this *ProposeResponse) Validate() error

type StorageEndpoint

type StorageEndpoint struct {
	StorageEndpointHandler
}

func (*StorageEndpoint) Lookup

func (*StorageEndpoint) Propose

type StorageEndpointClient

type StorageEndpointClient interface {
	Propose(ctx context.Context, in *ProposeRequest, opts ...client.CallOption) (*ProposeResponse, error)
	Lookup(ctx context.Context, in *LookupRequest, opts ...client.CallOption) (*LookupResponse, error)
}

func NewStorageEndpointClient

func NewStorageEndpointClient(serviceName string, c client.Client) StorageEndpointClient

type StorageEndpointHandler

type StorageEndpointHandler interface {
	Propose(context.Context, *ProposeRequest, *ProposeResponse) error
	Lookup(context.Context, *LookupRequest, *LookupResponse) error
}

Jump to

Keyboard shortcuts

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