Documentation
¶
Index ¶
- func RegisterCrateServer(s *grpc.Server, srv CrateServer)
- type Bottle
- func (*Bottle) Descriptor() ([]byte, []int)
- func (m *Bottle) GetContents() []byte
- func (m *Bottle) GetId() string
- func (*Bottle) ProtoMessage()
- func (m *Bottle) Reset()
- func (m *Bottle) String() string
- func (m *Bottle) XXX_DiscardUnknown()
- func (m *Bottle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bottle) XXX_Merge(src proto.Message)
- func (m *Bottle) XXX_Size() int
- func (m *Bottle) XXX_Unmarshal(b []byte) error
- type CrateClient
- type CrateServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetId() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetBottle() *Bottle
- func (m *GetResponse) GetErr() string
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetBottles() []string
- func (m *ListResponse) GetErr() string
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) String() string
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type StoreRequest
- func (*StoreRequest) Descriptor() ([]byte, []int)
- func (m *StoreRequest) GetBottle() *Bottle
- func (*StoreRequest) ProtoMessage()
- func (m *StoreRequest) Reset()
- func (m *StoreRequest) String() string
- func (m *StoreRequest) XXX_DiscardUnknown()
- func (m *StoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreRequest) XXX_Merge(src proto.Message)
- func (m *StoreRequest) XXX_Size() int
- func (m *StoreRequest) XXX_Unmarshal(b []byte) error
- type StoreResponse
- func (*StoreResponse) Descriptor() ([]byte, []int)
- func (m *StoreResponse) GetErr() string
- func (*StoreResponse) ProtoMessage()
- func (m *StoreResponse) Reset()
- func (m *StoreResponse) String() string
- func (m *StoreResponse) XXX_DiscardUnknown()
- func (m *StoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreResponse) XXX_Merge(src proto.Message)
- func (m *StoreResponse) XXX_Size() int
- func (m *StoreResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedCrateServer
- func (*UnimplementedCrateServer) Drain(ctx context.Context, req *GetRequest) (*GetResponse, error)
- func (*UnimplementedCrateServer) List(ctx context.Context, req *Empty) (*ListResponse, error)
- func (*UnimplementedCrateServer) Pour(ctx context.Context, req *GetRequest) (*GetResponse, error)
- func (*UnimplementedCrateServer) Store(ctx context.Context, req *StoreRequest) (*StoreResponse, error)
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) GetContents ¶
func (*Bottle) ProtoMessage ¶
func (*Bottle) ProtoMessage()
func (*Bottle) XXX_DiscardUnknown ¶
func (m *Bottle) XXX_DiscardUnknown()
func (*Bottle) XXX_Marshal ¶
func (*Bottle) XXX_Unmarshal ¶
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 ¶
type CrateServer interface {
Pour(context.Context, *GetRequest) (*GetResponse, error)
Store(context.Context, *StoreRequest) (*StoreResponse, error)
Drain(context.Context, *GetRequest) (*GetResponse, error)
List(context.Context, *Empty) (*ListResponse, error)
}
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
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) Drain(ctx context.Context, req *GetRequest) (*GetResponse, error)
func (*UnimplementedCrateServer) List ¶
func (*UnimplementedCrateServer) List(ctx context.Context, req *Empty) (*ListResponse, error)
func (*UnimplementedCrateServer) Pour ¶
func (*UnimplementedCrateServer) Pour(ctx context.Context, req *GetRequest) (*GetResponse, error)
func (*UnimplementedCrateServer) Store ¶
func (*UnimplementedCrateServer) Store(ctx context.Context, req *StoreRequest) (*StoreResponse, error)
Click to show internal directories.
Click to hide internal directories.