Documentation ¶
Index ¶
- func RegisterManagerServer(s *grpc.Server, srv ManagerServer)
- type AddItemRequest
- func (*AddItemRequest) Descriptor() ([]byte, []int)
- func (m *AddItemRequest) GetIdentifier() *Identifier
- func (m *AddItemRequest) GetItem() *Item
- func (*AddItemRequest) ProtoMessage()
- func (m *AddItemRequest) Reset()
- func (m *AddItemRequest) String() string
- func (m *AddItemRequest) XXX_DiscardUnknown()
- func (m *AddItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddItemRequest) XXX_Merge(src proto.Message)
- func (m *AddItemRequest) XXX_Size() int
- func (m *AddItemRequest) XXX_Unmarshal(b []byte) error
- type Complete
- func (*Complete) Descriptor() ([]byte, []int)
- func (m *Complete) GetIdentifier() *Identifier
- func (m *Complete) GetIncomplete() *Incomplete
- func (*Complete) ProtoMessage()
- func (m *Complete) Reset()
- func (m *Complete) String() string
- func (m *Complete) XXX_DiscardUnknown()
- func (m *Complete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Complete) XXX_Merge(src proto.Message)
- func (m *Complete) XXX_Size() int
- func (m *Complete) XXX_Unmarshal(b []byte) error
- type Identifier
- func (*Identifier) Descriptor() ([]byte, []int)
- func (m *Identifier) GetGUID() string
- func (*Identifier) ProtoMessage()
- func (m *Identifier) Reset()
- func (m *Identifier) String() string
- func (m *Identifier) XXX_DiscardUnknown()
- func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Identifier) XXX_Merge(src proto.Message)
- func (m *Identifier) XXX_Size() int
- func (m *Identifier) XXX_Unmarshal(b []byte) error
- type Incomplete
- func (*Incomplete) Descriptor() ([]byte, []int)
- func (m *Incomplete) GetItems() []*Item
- func (*Incomplete) ProtoMessage()
- func (m *Incomplete) Reset()
- func (m *Incomplete) String() string
- func (m *Incomplete) XXX_DiscardUnknown()
- func (m *Incomplete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Incomplete) XXX_Merge(src proto.Message)
- func (m *Incomplete) XXX_Size() int
- func (m *Incomplete) XXX_Unmarshal(b []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetAmount() uint64
- func (m *Item) GetID() string
- func (m *Item) GetSubset() float64
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) String() string
- func (m *Item) XXX_DiscardUnknown()
- func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Item) XXX_Merge(src proto.Message)
- func (m *Item) XXX_Size() int
- func (m *Item) XXX_Unmarshal(b []byte) error
- type ManagerClient
- type ManagerServer
- type RemoveItemRequest
- func (*RemoveItemRequest) Descriptor() ([]byte, []int)
- func (m *RemoveItemRequest) GetIdentifier() *Identifier
- func (m *RemoveItemRequest) GetItem() *Item
- func (*RemoveItemRequest) ProtoMessage()
- func (m *RemoveItemRequest) Reset()
- func (m *RemoveItemRequest) String() string
- func (m *RemoveItemRequest) XXX_DiscardUnknown()
- func (m *RemoveItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoveItemRequest) XXX_Merge(src proto.Message)
- func (m *RemoveItemRequest) XXX_Size() int
- func (m *RemoveItemRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterManagerServer ¶
func RegisterManagerServer(s *grpc.Server, srv ManagerServer)
Types ¶
type AddItemRequest ¶
type AddItemRequest struct { Identifier *Identifier `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"` Item *Item `protobuf:"bytes,2,opt,name=Item,proto3" json:"Item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddItemRequest) Descriptor ¶
func (*AddItemRequest) Descriptor() ([]byte, []int)
func (*AddItemRequest) GetIdentifier ¶
func (m *AddItemRequest) GetIdentifier() *Identifier
func (*AddItemRequest) GetItem ¶
func (m *AddItemRequest) GetItem() *Item
func (*AddItemRequest) ProtoMessage ¶
func (*AddItemRequest) ProtoMessage()
func (*AddItemRequest) Reset ¶
func (m *AddItemRequest) Reset()
func (*AddItemRequest) String ¶
func (m *AddItemRequest) String() string
func (*AddItemRequest) XXX_DiscardUnknown ¶
func (m *AddItemRequest) XXX_DiscardUnknown()
func (*AddItemRequest) XXX_Marshal ¶
func (m *AddItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddItemRequest) XXX_Merge ¶
func (m *AddItemRequest) XXX_Merge(src proto.Message)
func (*AddItemRequest) XXX_Size ¶
func (m *AddItemRequest) XXX_Size() int
func (*AddItemRequest) XXX_Unmarshal ¶
func (m *AddItemRequest) XXX_Unmarshal(b []byte) error
type Complete ¶
type Complete struct { Identifier *Identifier `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"` Incomplete *Incomplete `protobuf:"bytes,2,opt,name=Incomplete,proto3" json:"Incomplete,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Complete) Descriptor ¶
func (*Complete) GetIdentifier ¶
func (m *Complete) GetIdentifier() *Identifier
func (*Complete) GetIncomplete ¶
func (m *Complete) GetIncomplete() *Incomplete
func (*Complete) ProtoMessage ¶
func (*Complete) ProtoMessage()
func (*Complete) XXX_DiscardUnknown ¶
func (m *Complete) XXX_DiscardUnknown()
func (*Complete) XXX_Marshal ¶
func (*Complete) XXX_Unmarshal ¶
type Identifier ¶
type Identifier struct { GUID string `protobuf:"bytes,1,opt,name=GUID,proto3" json:"GUID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Identifier) Descriptor ¶
func (*Identifier) Descriptor() ([]byte, []int)
func (*Identifier) GetGUID ¶
func (m *Identifier) GetGUID() string
func (*Identifier) ProtoMessage ¶
func (*Identifier) ProtoMessage()
func (*Identifier) Reset ¶
func (m *Identifier) Reset()
func (*Identifier) String ¶
func (m *Identifier) String() string
func (*Identifier) XXX_DiscardUnknown ¶
func (m *Identifier) XXX_DiscardUnknown()
func (*Identifier) XXX_Marshal ¶
func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Identifier) XXX_Merge ¶
func (m *Identifier) XXX_Merge(src proto.Message)
func (*Identifier) XXX_Size ¶
func (m *Identifier) XXX_Size() int
func (*Identifier) XXX_Unmarshal ¶
func (m *Identifier) XXX_Unmarshal(b []byte) error
type Incomplete ¶
type Incomplete struct { Items []*Item `protobuf:"bytes,1,rep,name=Items,proto3" json:"Items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Incomplete) Descriptor ¶
func (*Incomplete) Descriptor() ([]byte, []int)
func (*Incomplete) GetItems ¶
func (m *Incomplete) GetItems() []*Item
func (*Incomplete) ProtoMessage ¶
func (*Incomplete) ProtoMessage()
func (*Incomplete) Reset ¶
func (m *Incomplete) Reset()
func (*Incomplete) String ¶
func (m *Incomplete) String() string
func (*Incomplete) XXX_DiscardUnknown ¶
func (m *Incomplete) XXX_DiscardUnknown()
func (*Incomplete) XXX_Marshal ¶
func (m *Incomplete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Incomplete) XXX_Merge ¶
func (m *Incomplete) XXX_Merge(src proto.Message)
func (*Incomplete) XXX_Size ¶
func (m *Incomplete) XXX_Size() int
func (*Incomplete) XXX_Unmarshal ¶
func (m *Incomplete) XXX_Unmarshal(b []byte) error
type Item ¶
type Item struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` Subset float64 `protobuf:"fixed64,3,opt,name=Subset,proto3" json:"Subset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type ManagerClient ¶
type ManagerClient interface { Get(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Complete, error) Create(ctx context.Context, in *Incomplete, opts ...grpc.CallOption) (*Complete, error) AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*empty.Empty, error) RemoveItem(ctx context.Context, in *RemoveItemRequest, opts ...grpc.CallOption) (*empty.Empty, error) Delete(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*empty.Empty, error) }
ManagerClient is the client API for Manager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewManagerClient ¶
func NewManagerClient(cc *grpc.ClientConn) ManagerClient
type ManagerServer ¶
type ManagerServer interface { Get(context.Context, *Identifier) (*Complete, error) Create(context.Context, *Incomplete) (*Complete, error) AddItem(context.Context, *AddItemRequest) (*empty.Empty, error) RemoveItem(context.Context, *RemoveItemRequest) (*empty.Empty, error) Delete(context.Context, *Identifier) (*empty.Empty, error) }
ManagerServer is the server API for Manager service.
type RemoveItemRequest ¶
type RemoveItemRequest struct { Identifier *Identifier `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"` Item *Item `protobuf:"bytes,2,opt,name=Item,proto3" json:"Item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RemoveItemRequest) Descriptor ¶
func (*RemoveItemRequest) Descriptor() ([]byte, []int)
func (*RemoveItemRequest) GetIdentifier ¶
func (m *RemoveItemRequest) GetIdentifier() *Identifier
func (*RemoveItemRequest) GetItem ¶
func (m *RemoveItemRequest) GetItem() *Item
func (*RemoveItemRequest) ProtoMessage ¶
func (*RemoveItemRequest) ProtoMessage()
func (*RemoveItemRequest) Reset ¶
func (m *RemoveItemRequest) Reset()
func (*RemoveItemRequest) String ¶
func (m *RemoveItemRequest) String() string
func (*RemoveItemRequest) XXX_DiscardUnknown ¶
func (m *RemoveItemRequest) XXX_DiscardUnknown()
func (*RemoveItemRequest) XXX_Marshal ¶
func (m *RemoveItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveItemRequest) XXX_Merge ¶
func (m *RemoveItemRequest) XXX_Merge(src proto.Message)
func (*RemoveItemRequest) XXX_Size ¶
func (m *RemoveItemRequest) XXX_Size() int
func (*RemoveItemRequest) XXX_Unmarshal ¶
func (m *RemoveItemRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.