inventory

package
v0.0.0-...-4515e61 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Complete) GetIdentifier

func (m *Complete) GetIdentifier() *Identifier

func (*Complete) GetIncomplete

func (m *Complete) GetIncomplete() *Incomplete

func (*Complete) ProtoMessage

func (*Complete) ProtoMessage()

func (*Complete) Reset

func (m *Complete) Reset()

func (*Complete) String

func (m *Complete) String() string

func (*Complete) XXX_DiscardUnknown

func (m *Complete) XXX_DiscardUnknown()

func (*Complete) XXX_Marshal

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

func (*Complete) XXX_Merge

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

func (*Complete) XXX_Size

func (m *Complete) XXX_Size() int

func (*Complete) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Item) GetAmount

func (m *Item) GetAmount() uint64

func (*Item) GetID

func (m *Item) GetID() string

func (*Item) GetSubset

func (m *Item) GetSubset() float64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

func (*Item) XXX_DiscardUnknown

func (m *Item) XXX_DiscardUnknown()

func (*Item) XXX_Marshal

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

func (*Item) XXX_Merge

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

func (*Item) XXX_Size

func (m *Item) XXX_Size() int

func (*Item) XXX_Unmarshal

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

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

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

Jump to

Keyboard shortcuts

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