pb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCrateServer

func RegisterCrateServer(s *grpc.Server, srv CrateServer)

Types

type Bottle

type Bottle struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Contents             []byte   `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Bottle) Descriptor

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

func (*Bottle) GetContents

func (m *Bottle) GetContents() []byte

func (*Bottle) GetId

func (m *Bottle) GetId() string

func (*Bottle) ProtoMessage

func (*Bottle) ProtoMessage()

func (*Bottle) Reset

func (m *Bottle) Reset()

func (*Bottle) String

func (m *Bottle) String() string

func (*Bottle) XXX_DiscardUnknown

func (m *Bottle) XXX_DiscardUnknown()

func (*Bottle) XXX_Marshal

func (m *Bottle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bottle) XXX_Merge

func (m *Bottle) XXX_Merge(src proto.Message)

func (*Bottle) XXX_Size

func (m *Bottle) XXX_Size() int

func (*Bottle) XXX_Unmarshal

func (m *Bottle) XXX_Unmarshal(b []byte) error

type CrateClient

type CrateClient interface {
	Pour(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StoreResponse, error)
	Drain(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListResponse, error)
}

CrateClient is the client API for Crate service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCrateClient

func NewCrateClient(cc *grpc.ClientConn) CrateClient

type CrateServer

CrateServer is the server API for Crate service.

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type GetRequest

type GetRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) GetId

func (m *GetRequest) GetId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type GetResponse

type GetResponse struct {
	Bottle               *Bottle  `protobuf:"bytes,1,opt,name=bottle,proto3" json:"bottle,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetResponse) Descriptor

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

func (*GetResponse) GetBottle

func (m *GetResponse) GetBottle() *Bottle

func (*GetResponse) GetErr

func (m *GetResponse) GetErr() string

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) XXX_DiscardUnknown

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal

func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetResponse) XXX_Merge

func (m *GetResponse) XXX_Merge(src proto.Message)

func (*GetResponse) XXX_Size

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal

func (m *GetResponse) XXX_Unmarshal(b []byte) error

type ListResponse

type ListResponse struct {
	Bottles              []string `protobuf:"bytes,1,rep,name=bottles,proto3" json:"bottles,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListResponse) Descriptor

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

func (*ListResponse) GetBottles

func (m *ListResponse) GetBottles() []string

func (*ListResponse) GetErr

func (m *ListResponse) GetErr() string

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset

func (m *ListResponse) Reset()

func (*ListResponse) String

func (m *ListResponse) String() string

func (*ListResponse) XXX_DiscardUnknown

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal

func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListResponse) XXX_Merge

func (m *ListResponse) XXX_Merge(src proto.Message)

func (*ListResponse) XXX_Size

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal

func (m *ListResponse) XXX_Unmarshal(b []byte) error

type StoreRequest

type StoreRequest struct {
	Bottle               *Bottle  `protobuf:"bytes,1,opt,name=bottle,proto3" json:"bottle,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreRequest) Descriptor

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

func (*StoreRequest) GetBottle

func (m *StoreRequest) GetBottle() *Bottle

func (*StoreRequest) ProtoMessage

func (*StoreRequest) ProtoMessage()

func (*StoreRequest) Reset

func (m *StoreRequest) Reset()

func (*StoreRequest) String

func (m *StoreRequest) String() string

func (*StoreRequest) XXX_DiscardUnknown

func (m *StoreRequest) XXX_DiscardUnknown()

func (*StoreRequest) XXX_Marshal

func (m *StoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreRequest) XXX_Merge

func (m *StoreRequest) XXX_Merge(src proto.Message)

func (*StoreRequest) XXX_Size

func (m *StoreRequest) XXX_Size() int

func (*StoreRequest) XXX_Unmarshal

func (m *StoreRequest) XXX_Unmarshal(b []byte) error

type StoreResponse

type StoreResponse struct {
	Err                  string   `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreResponse) Descriptor

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

func (*StoreResponse) GetErr

func (m *StoreResponse) GetErr() string

func (*StoreResponse) ProtoMessage

func (*StoreResponse) ProtoMessage()

func (*StoreResponse) Reset

func (m *StoreResponse) Reset()

func (*StoreResponse) String

func (m *StoreResponse) String() string

func (*StoreResponse) XXX_DiscardUnknown

func (m *StoreResponse) XXX_DiscardUnknown()

func (*StoreResponse) XXX_Marshal

func (m *StoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreResponse) XXX_Merge

func (m *StoreResponse) XXX_Merge(src proto.Message)

func (*StoreResponse) XXX_Size

func (m *StoreResponse) XXX_Size() int

func (*StoreResponse) XXX_Unmarshal

func (m *StoreResponse) XXX_Unmarshal(b []byte) error

type UnimplementedCrateServer

type UnimplementedCrateServer struct {
}

UnimplementedCrateServer can be embedded to have forward compatible implementations.

func (*UnimplementedCrateServer) Drain

func (*UnimplementedCrateServer) List

func (*UnimplementedCrateServer) Pour

func (*UnimplementedCrateServer) Store

Jump to

Keyboard shortcuts

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