Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package depotpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
 - Variables
 - func RegisterDepotServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
 - func RegisterDepotServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepotServiceClient) error
 - func RegisterDepotServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
 - func RegisterDepotServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepotServiceServer) error
 - func RegisterDepotServiceServer(s grpc.ServiceRegistrar, srv DepotServiceServer)
 - func Registrations(reg registry.Registry) (err error)
 - type AssignShoppingListRequest
 - func (*AssignShoppingListRequest) Descriptor() ([]byte, []int)deprecated
 - func (x *AssignShoppingListRequest) GetBotId() string
 - func (x *AssignShoppingListRequest) GetId() string
 - func (*AssignShoppingListRequest) ProtoMessage()
 - func (x *AssignShoppingListRequest) ProtoReflect() protoreflect.Message
 - func (x *AssignShoppingListRequest) Reset()
 - func (x *AssignShoppingListRequest) String() string
 
- type AssignShoppingListResponse
 - type CancelShoppingList
 - func (*CancelShoppingList) Descriptor() ([]byte, []int)deprecated
 - func (x *CancelShoppingList) GetId() string
 - func (*CancelShoppingList) Key() string
 - func (*CancelShoppingList) ProtoMessage()
 - func (x *CancelShoppingList) ProtoReflect() protoreflect.Message
 - func (x *CancelShoppingList) Reset()
 - func (x *CancelShoppingList) String() string
 
- type CancelShoppingListRequest
 - func (*CancelShoppingListRequest) Descriptor() ([]byte, []int)deprecated
 - func (x *CancelShoppingListRequest) GetId() string
 - func (*CancelShoppingListRequest) ProtoMessage()
 - func (x *CancelShoppingListRequest) ProtoReflect() protoreflect.Message
 - func (x *CancelShoppingListRequest) Reset()
 - func (x *CancelShoppingListRequest) String() string
 
- type CancelShoppingListResponse
 - type CompleteShoppingListRequest
 - func (*CompleteShoppingListRequest) Descriptor() ([]byte, []int)deprecated
 - func (x *CompleteShoppingListRequest) GetId() string
 - func (*CompleteShoppingListRequest) ProtoMessage()
 - func (x *CompleteShoppingListRequest) ProtoReflect() protoreflect.Message
 - func (x *CompleteShoppingListRequest) Reset()
 - func (x *CompleteShoppingListRequest) String() string
 
- type CompleteShoppingListResponse
 - func (*CompleteShoppingListResponse) Descriptor() ([]byte, []int)deprecated
 - func (*CompleteShoppingListResponse) ProtoMessage()
 - func (x *CompleteShoppingListResponse) ProtoReflect() protoreflect.Message
 - func (x *CompleteShoppingListResponse) Reset()
 - func (x *CompleteShoppingListResponse) String() string
 
- type CreateShoppingList
 - func (*CreateShoppingList) Descriptor() ([]byte, []int)deprecated
 - func (x *CreateShoppingList) GetItems() []*CreateShoppingList_Item
 - func (x *CreateShoppingList) GetOrderId() string
 - func (*CreateShoppingList) Key() string
 - func (*CreateShoppingList) ProtoMessage()
 - func (x *CreateShoppingList) ProtoReflect() protoreflect.Message
 - func (x *CreateShoppingList) Reset()
 - func (x *CreateShoppingList) String() string
 
- type CreateShoppingListRequest
 - func (*CreateShoppingListRequest) Descriptor() ([]byte, []int)deprecated
 - func (x *CreateShoppingListRequest) GetItems() []*OrderItem
 - func (x *CreateShoppingListRequest) GetOrderId() string
 - func (*CreateShoppingListRequest) ProtoMessage()
 - func (x *CreateShoppingListRequest) ProtoReflect() protoreflect.Message
 - func (x *CreateShoppingListRequest) Reset()
 - func (x *CreateShoppingListRequest) String() string
 
- type CreateShoppingListResponse
 - func (*CreateShoppingListResponse) Descriptor() ([]byte, []int)deprecated
 - func (x *CreateShoppingListResponse) GetId() string
 - func (*CreateShoppingListResponse) ProtoMessage()
 - func (x *CreateShoppingListResponse) ProtoReflect() protoreflect.Message
 - func (x *CreateShoppingListResponse) Reset()
 - func (x *CreateShoppingListResponse) String() string
 
- type CreateShoppingList_Item
 - func (*CreateShoppingList_Item) Descriptor() ([]byte, []int)deprecated
 - func (x *CreateShoppingList_Item) GetProductId() string
 - func (x *CreateShoppingList_Item) GetQuantity() int32
 - func (x *CreateShoppingList_Item) GetStoreId() string
 - func (*CreateShoppingList_Item) ProtoMessage()
 - func (x *CreateShoppingList_Item) ProtoReflect() protoreflect.Message
 - func (x *CreateShoppingList_Item) Reset()
 - func (x *CreateShoppingList_Item) String() string
 
- type CreatedShoppingList
 - func (*CreatedShoppingList) Descriptor() ([]byte, []int)deprecated
 - func (x *CreatedShoppingList) GetId() string
 - func (*CreatedShoppingList) Key() string
 - func (*CreatedShoppingList) ProtoMessage()
 - func (x *CreatedShoppingList) ProtoReflect() protoreflect.Message
 - func (x *CreatedShoppingList) Reset()
 - func (x *CreatedShoppingList) String() string
 
- type DepotServiceClient
 - type DepotServiceServer
 - type InitiateShopping
 - func (*InitiateShopping) Descriptor() ([]byte, []int)deprecated
 - func (x *InitiateShopping) GetId() string
 - func (*InitiateShopping) Key() string
 - func (*InitiateShopping) ProtoMessage()
 - func (x *InitiateShopping) ProtoReflect() protoreflect.Message
 - func (x *InitiateShopping) Reset()
 - func (x *InitiateShopping) String() string
 
- type Item
 - type MockDepotServiceClient
 - func (_m *MockDepotServiceClient) AssignShoppingList(ctx context.Context, in *AssignShoppingListRequest, opts ...grpc.CallOption) (*AssignShoppingListResponse, error)
 - func (_m *MockDepotServiceClient) CancelShoppingList(ctx context.Context, in *CancelShoppingListRequest, opts ...grpc.CallOption) (*CancelShoppingListResponse, error)
 - func (_m *MockDepotServiceClient) CompleteShoppingList(ctx context.Context, in *CompleteShoppingListRequest, opts ...grpc.CallOption) (*CompleteShoppingListResponse, error)
 - func (_m *MockDepotServiceClient) CreateShoppingList(ctx context.Context, in *CreateShoppingListRequest, opts ...grpc.CallOption) (*CreateShoppingListResponse, error)
 
- type MockDepotServiceServer
 - func (_m *MockDepotServiceServer) AssignShoppingList(_a0 context.Context, _a1 *AssignShoppingListRequest) (*AssignShoppingListResponse, error)
 - func (_m *MockDepotServiceServer) CancelShoppingList(_a0 context.Context, _a1 *CancelShoppingListRequest) (*CancelShoppingListResponse, error)
 - func (_m *MockDepotServiceServer) CompleteShoppingList(_a0 context.Context, _a1 *CompleteShoppingListRequest) (*CompleteShoppingListResponse, error)
 - func (_m *MockDepotServiceServer) CreateShoppingList(_a0 context.Context, _a1 *CreateShoppingListRequest) (*CreateShoppingListResponse, error)
 
- type MockUnsafeDepotServiceServer
 - type OrderItem
 - func (*OrderItem) Descriptor() ([]byte, []int)deprecated
 - func (x *OrderItem) GetProductId() string
 - func (x *OrderItem) GetQuantity() int32
 - func (x *OrderItem) GetStoreId() string
 - func (*OrderItem) ProtoMessage()
 - func (x *OrderItem) ProtoReflect() protoreflect.Message
 - func (x *OrderItem) Reset()
 - func (x *OrderItem) String() string
 
- type ShoppingList
 - func (*ShoppingList) Descriptor() ([]byte, []int)deprecated
 - func (x *ShoppingList) GetAssignedBotId() string
 - func (x *ShoppingList) GetId() string
 - func (x *ShoppingList) GetOrderId() string
 - func (x *ShoppingList) GetStatus() string
 - func (x *ShoppingList) GetStops() map[string]*Stop
 - func (*ShoppingList) ProtoMessage()
 - func (x *ShoppingList) ProtoReflect() protoreflect.Message
 - func (x *ShoppingList) Reset()
 - func (x *ShoppingList) String() string
 
- type ShoppingListCompleted
 - func (*ShoppingListCompleted) Descriptor() ([]byte, []int)deprecated
 - func (x *ShoppingListCompleted) GetId() string
 - func (x *ShoppingListCompleted) GetOrderId() string
 - func (*ShoppingListCompleted) Key() string
 - func (*ShoppingListCompleted) ProtoMessage()
 - func (x *ShoppingListCompleted) ProtoReflect() protoreflect.Message
 - func (x *ShoppingListCompleted) Reset()
 - func (x *ShoppingListCompleted) String() string
 
- type Stop
 - func (*Stop) Descriptor() ([]byte, []int)deprecated
 - func (x *Stop) GetItems() map[string]*Item
 - func (x *Stop) GetStoreLocation() string
 - func (x *Stop) GetStoreName() string
 - func (*Stop) ProtoMessage()
 - func (x *Stop) ProtoReflect() protoreflect.Message
 - func (x *Stop) Reset()
 - func (x *Stop) String() string
 
- type UnimplementedDepotServiceServer
 - func (UnimplementedDepotServiceServer) AssignShoppingList(context.Context, *AssignShoppingListRequest) (*AssignShoppingListResponse, error)
 - func (UnimplementedDepotServiceServer) CancelShoppingList(context.Context, *CancelShoppingListRequest) (*CancelShoppingListResponse, error)
 - func (UnimplementedDepotServiceServer) CompleteShoppingList(context.Context, *CompleteShoppingListRequest) (*CompleteShoppingListResponse, error)
 - func (UnimplementedDepotServiceServer) CreateShoppingList(context.Context, *CreateShoppingListRequest) (*CreateShoppingListResponse, error)
 
- type UnsafeDepotServiceServer
 
Constants ¶
const ( ShoppingListAggregateChannel = "mallbots.depot.events.ShoppingList" ShoppingListCompletedEvent = "depotapi.ShoppingListCompleted" CommandChannel = "mallbots.depot.commands" CreateShoppingListCommand = "depotapi.CreateShoppingListCommand" CancelShoppingListCommand = "depotapi.CancelShoppingListCommand" InitiateShoppingCommand = "depotapi.InitiateShoppingCommand" CreatedShoppingListReply = "depotapi.CreatedShoppingListReply" )
Variables ¶
var DepotService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "depotpb.DepotService", HandlerType: (*DepotServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateShoppingList", Handler: _DepotService_CreateShoppingList_Handler, }, { MethodName: "CancelShoppingList", Handler: _DepotService_CancelShoppingList_Handler, }, { MethodName: "AssignShoppingList", Handler: _DepotService_AssignShoppingList_Handler, }, { MethodName: "CompleteShoppingList", Handler: _DepotService_CompleteShoppingList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "depotpb/api.proto", }
DepotService_ServiceDesc is the grpc.ServiceDesc for DepotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_depotpb_api_proto protoreflect.FileDescriptor
    var File_depotpb_messages_proto protoreflect.FileDescriptor
    Functions ¶
func RegisterDepotServiceHandler ¶
func RegisterDepotServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDepotServiceHandler registers the http handlers for service DepotService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDepotServiceHandlerClient ¶
func RegisterDepotServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepotServiceClient) error
RegisterDepotServiceHandlerClient registers the http handlers for service DepotService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DepotServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DepotServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DepotServiceClient" to call the correct interceptors.
func RegisterDepotServiceHandlerFromEndpoint ¶
func RegisterDepotServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDepotServiceHandlerFromEndpoint is same as RegisterDepotServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDepotServiceHandlerServer ¶
func RegisterDepotServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepotServiceServer) error
RegisterDepotServiceHandlerServer registers the http handlers for service DepotService to "mux". UnaryRPC :call DepotServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDepotServiceHandlerFromEndpoint instead.
func RegisterDepotServiceServer ¶
func RegisterDepotServiceServer(s grpc.ServiceRegistrar, srv DepotServiceServer)
func Registrations ¶
Types ¶
type AssignShoppingListRequest ¶
type AssignShoppingListRequest struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BotId string `protobuf:"bytes,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*AssignShoppingListRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*AssignShoppingListRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignShoppingListRequest.ProtoReflect.Descriptor instead.
func (*AssignShoppingListRequest) GetBotId ¶
func (x *AssignShoppingListRequest) GetBotId() string
func (*AssignShoppingListRequest) GetId ¶
func (x *AssignShoppingListRequest) GetId() string
func (*AssignShoppingListRequest) ProtoMessage ¶
func (*AssignShoppingListRequest) ProtoMessage()
func (*AssignShoppingListRequest) ProtoReflect ¶
func (x *AssignShoppingListRequest) ProtoReflect() protoreflect.Message
func (*AssignShoppingListRequest) Reset ¶
func (x *AssignShoppingListRequest) Reset()
func (*AssignShoppingListRequest) String ¶
func (x *AssignShoppingListRequest) String() string
type AssignShoppingListResponse ¶
type AssignShoppingListResponse struct {
	// contains filtered or unexported fields
}
    
        
          
            func (*AssignShoppingListResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*AssignShoppingListResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignShoppingListResponse.ProtoReflect.Descriptor instead.
func (*AssignShoppingListResponse) ProtoMessage ¶
func (*AssignShoppingListResponse) ProtoMessage()
func (*AssignShoppingListResponse) ProtoReflect ¶
func (x *AssignShoppingListResponse) ProtoReflect() protoreflect.Message
func (*AssignShoppingListResponse) Reset ¶
func (x *AssignShoppingListResponse) Reset()
func (*AssignShoppingListResponse) String ¶
func (x *AssignShoppingListResponse) String() string
type CancelShoppingList ¶
type CancelShoppingList struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CancelShoppingList) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CancelShoppingList) Descriptor() ([]byte, []int)
Deprecated: Use CancelShoppingList.ProtoReflect.Descriptor instead.
func (*CancelShoppingList) GetId ¶
func (x *CancelShoppingList) GetId() string
func (*CancelShoppingList) Key ¶
func (*CancelShoppingList) Key() string
func (*CancelShoppingList) ProtoMessage ¶
func (*CancelShoppingList) ProtoMessage()
func (*CancelShoppingList) ProtoReflect ¶
func (x *CancelShoppingList) ProtoReflect() protoreflect.Message
func (*CancelShoppingList) Reset ¶
func (x *CancelShoppingList) Reset()
func (*CancelShoppingList) String ¶
func (x *CancelShoppingList) String() string
type CancelShoppingListRequest ¶
type CancelShoppingListRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CancelShoppingListRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CancelShoppingListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelShoppingListRequest.ProtoReflect.Descriptor instead.
func (*CancelShoppingListRequest) GetId ¶
func (x *CancelShoppingListRequest) GetId() string
func (*CancelShoppingListRequest) ProtoMessage ¶
func (*CancelShoppingListRequest) ProtoMessage()
func (*CancelShoppingListRequest) ProtoReflect ¶
func (x *CancelShoppingListRequest) ProtoReflect() protoreflect.Message
func (*CancelShoppingListRequest) Reset ¶
func (x *CancelShoppingListRequest) Reset()
func (*CancelShoppingListRequest) String ¶
func (x *CancelShoppingListRequest) String() string
type CancelShoppingListResponse ¶
type CancelShoppingListResponse struct {
	// contains filtered or unexported fields
}
    
        
          
            func (*CancelShoppingListResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CancelShoppingListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelShoppingListResponse.ProtoReflect.Descriptor instead.
func (*CancelShoppingListResponse) ProtoMessage ¶
func (*CancelShoppingListResponse) ProtoMessage()
func (*CancelShoppingListResponse) ProtoReflect ¶
func (x *CancelShoppingListResponse) ProtoReflect() protoreflect.Message
func (*CancelShoppingListResponse) Reset ¶
func (x *CancelShoppingListResponse) Reset()
func (*CancelShoppingListResponse) String ¶
func (x *CancelShoppingListResponse) String() string
type CompleteShoppingListRequest ¶
type CompleteShoppingListRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CompleteShoppingListRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CompleteShoppingListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteShoppingListRequest.ProtoReflect.Descriptor instead.
func (*CompleteShoppingListRequest) GetId ¶
func (x *CompleteShoppingListRequest) GetId() string
func (*CompleteShoppingListRequest) ProtoMessage ¶
func (*CompleteShoppingListRequest) ProtoMessage()
func (*CompleteShoppingListRequest) ProtoReflect ¶
func (x *CompleteShoppingListRequest) ProtoReflect() protoreflect.Message
func (*CompleteShoppingListRequest) Reset ¶
func (x *CompleteShoppingListRequest) Reset()
func (*CompleteShoppingListRequest) String ¶
func (x *CompleteShoppingListRequest) String() string
type CompleteShoppingListResponse ¶
type CompleteShoppingListResponse struct {
	// contains filtered or unexported fields
}
    
        
          
            func (*CompleteShoppingListResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CompleteShoppingListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteShoppingListResponse.ProtoReflect.Descriptor instead.
func (*CompleteShoppingListResponse) ProtoMessage ¶
func (*CompleteShoppingListResponse) ProtoMessage()
func (*CompleteShoppingListResponse) ProtoReflect ¶
func (x *CompleteShoppingListResponse) ProtoReflect() protoreflect.Message
func (*CompleteShoppingListResponse) Reset ¶
func (x *CompleteShoppingListResponse) Reset()
func (*CompleteShoppingListResponse) String ¶
func (x *CompleteShoppingListResponse) String() string
type CreateShoppingList ¶
type CreateShoppingList struct {
	OrderId string                     `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Items   []*CreateShoppingList_Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CreateShoppingList) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CreateShoppingList) Descriptor() ([]byte, []int)
Deprecated: Use CreateShoppingList.ProtoReflect.Descriptor instead.
func (*CreateShoppingList) GetItems ¶
func (x *CreateShoppingList) GetItems() []*CreateShoppingList_Item
func (*CreateShoppingList) GetOrderId ¶
func (x *CreateShoppingList) GetOrderId() string
func (*CreateShoppingList) ProtoMessage ¶
func (*CreateShoppingList) ProtoMessage()
func (*CreateShoppingList) ProtoReflect ¶
func (x *CreateShoppingList) ProtoReflect() protoreflect.Message
func (*CreateShoppingList) Reset ¶
func (x *CreateShoppingList) Reset()
func (*CreateShoppingList) String ¶
func (x *CreateShoppingList) String() string
type CreateShoppingListRequest ¶
type CreateShoppingListRequest struct {
	OrderId string       `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Items   []*OrderItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CreateShoppingListRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CreateShoppingListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateShoppingListRequest.ProtoReflect.Descriptor instead.
func (*CreateShoppingListRequest) GetItems ¶
func (x *CreateShoppingListRequest) GetItems() []*OrderItem
func (*CreateShoppingListRequest) GetOrderId ¶
func (x *CreateShoppingListRequest) GetOrderId() string
func (*CreateShoppingListRequest) ProtoMessage ¶
func (*CreateShoppingListRequest) ProtoMessage()
func (*CreateShoppingListRequest) ProtoReflect ¶
func (x *CreateShoppingListRequest) ProtoReflect() protoreflect.Message
func (*CreateShoppingListRequest) Reset ¶
func (x *CreateShoppingListRequest) Reset()
func (*CreateShoppingListRequest) String ¶
func (x *CreateShoppingListRequest) String() string
type CreateShoppingListResponse ¶
type CreateShoppingListResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CreateShoppingListResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CreateShoppingListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateShoppingListResponse.ProtoReflect.Descriptor instead.
func (*CreateShoppingListResponse) GetId ¶
func (x *CreateShoppingListResponse) GetId() string
func (*CreateShoppingListResponse) ProtoMessage ¶
func (*CreateShoppingListResponse) ProtoMessage()
func (*CreateShoppingListResponse) ProtoReflect ¶
func (x *CreateShoppingListResponse) ProtoReflect() protoreflect.Message
func (*CreateShoppingListResponse) Reset ¶
func (x *CreateShoppingListResponse) Reset()
func (*CreateShoppingListResponse) String ¶
func (x *CreateShoppingListResponse) String() string
type CreateShoppingList_Item ¶
type CreateShoppingList_Item struct {
	ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	StoreId   string `protobuf:"bytes,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"`
	Quantity  int32  `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CreateShoppingList_Item) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CreateShoppingList_Item) Descriptor() ([]byte, []int)
Deprecated: Use CreateShoppingList_Item.ProtoReflect.Descriptor instead.
func (*CreateShoppingList_Item) GetProductId ¶
func (x *CreateShoppingList_Item) GetProductId() string
func (*CreateShoppingList_Item) GetQuantity ¶
func (x *CreateShoppingList_Item) GetQuantity() int32
func (*CreateShoppingList_Item) GetStoreId ¶
func (x *CreateShoppingList_Item) GetStoreId() string
func (*CreateShoppingList_Item) ProtoMessage ¶
func (*CreateShoppingList_Item) ProtoMessage()
func (*CreateShoppingList_Item) ProtoReflect ¶
func (x *CreateShoppingList_Item) ProtoReflect() protoreflect.Message
func (*CreateShoppingList_Item) Reset ¶
func (x *CreateShoppingList_Item) Reset()
func (*CreateShoppingList_Item) String ¶
func (x *CreateShoppingList_Item) String() string
type CreatedShoppingList ¶
type CreatedShoppingList struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CreatedShoppingList) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CreatedShoppingList) Descriptor() ([]byte, []int)
Deprecated: Use CreatedShoppingList.ProtoReflect.Descriptor instead.
func (*CreatedShoppingList) GetId ¶
func (x *CreatedShoppingList) GetId() string
func (*CreatedShoppingList) ProtoMessage ¶
func (*CreatedShoppingList) ProtoMessage()
func (*CreatedShoppingList) ProtoReflect ¶
func (x *CreatedShoppingList) ProtoReflect() protoreflect.Message
func (*CreatedShoppingList) Reset ¶
func (x *CreatedShoppingList) Reset()
func (*CreatedShoppingList) String ¶
func (x *CreatedShoppingList) String() string
type DepotServiceClient ¶
type DepotServiceClient interface {
	CreateShoppingList(ctx context.Context, in *CreateShoppingListRequest, opts ...grpc.CallOption) (*CreateShoppingListResponse, error)
	CancelShoppingList(ctx context.Context, in *CancelShoppingListRequest, opts ...grpc.CallOption) (*CancelShoppingListResponse, error)
	AssignShoppingList(ctx context.Context, in *AssignShoppingListRequest, opts ...grpc.CallOption) (*AssignShoppingListResponse, error)
	CompleteShoppingList(ctx context.Context, in *CompleteShoppingListRequest, opts ...grpc.CallOption) (*CompleteShoppingListResponse, error)
}
    DepotServiceClient is the client API for DepotService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDepotServiceClient ¶
func NewDepotServiceClient(cc grpc.ClientConnInterface) DepotServiceClient
type DepotServiceServer ¶
type DepotServiceServer interface {
	CreateShoppingList(context.Context, *CreateShoppingListRequest) (*CreateShoppingListResponse, error)
	CancelShoppingList(context.Context, *CancelShoppingListRequest) (*CancelShoppingListResponse, error)
	AssignShoppingList(context.Context, *AssignShoppingListRequest) (*AssignShoppingListResponse, error)
	CompleteShoppingList(context.Context, *CompleteShoppingListRequest) (*CompleteShoppingListResponse, error)
	// contains filtered or unexported methods
}
    DepotServiceServer is the server API for DepotService service. All implementations must embed UnimplementedDepotServiceServer for forward compatibility
type InitiateShopping ¶
type InitiateShopping struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*InitiateShopping) Descriptor
            deprecated
            
          
  
    
  
      
      func (*InitiateShopping) Descriptor() ([]byte, []int)
Deprecated: Use InitiateShopping.ProtoReflect.Descriptor instead.
func (*InitiateShopping) GetId ¶
func (x *InitiateShopping) GetId() string
func (*InitiateShopping) Key ¶
func (*InitiateShopping) Key() string
func (*InitiateShopping) ProtoMessage ¶
func (*InitiateShopping) ProtoMessage()
func (*InitiateShopping) ProtoReflect ¶
func (x *InitiateShopping) ProtoReflect() protoreflect.Message
func (*InitiateShopping) Reset ¶
func (x *InitiateShopping) Reset()
func (*InitiateShopping) String ¶
func (x *InitiateShopping) String() string
type Item ¶
type Item struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Quantity int32  `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*Item) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Item) GetQuantity ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type MockDepotServiceClient ¶
MockDepotServiceClient is an autogenerated mock type for the DepotServiceClient type
func NewMockDepotServiceClient ¶
func NewMockDepotServiceClient(t mockConstructorTestingTNewMockDepotServiceClient) *MockDepotServiceClient
NewMockDepotServiceClient creates a new instance of MockDepotServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockDepotServiceClient) AssignShoppingList ¶
func (_m *MockDepotServiceClient) AssignShoppingList(ctx context.Context, in *AssignShoppingListRequest, opts ...grpc.CallOption) (*AssignShoppingListResponse, error)
AssignShoppingList provides a mock function with given fields: ctx, in, opts
func (*MockDepotServiceClient) CancelShoppingList ¶
func (_m *MockDepotServiceClient) CancelShoppingList(ctx context.Context, in *CancelShoppingListRequest, opts ...grpc.CallOption) (*CancelShoppingListResponse, error)
CancelShoppingList provides a mock function with given fields: ctx, in, opts
func (*MockDepotServiceClient) CompleteShoppingList ¶
func (_m *MockDepotServiceClient) CompleteShoppingList(ctx context.Context, in *CompleteShoppingListRequest, opts ...grpc.CallOption) (*CompleteShoppingListResponse, error)
CompleteShoppingList provides a mock function with given fields: ctx, in, opts
func (*MockDepotServiceClient) CreateShoppingList ¶
func (_m *MockDepotServiceClient) CreateShoppingList(ctx context.Context, in *CreateShoppingListRequest, opts ...grpc.CallOption) (*CreateShoppingListResponse, error)
CreateShoppingList provides a mock function with given fields: ctx, in, opts
type MockDepotServiceServer ¶
MockDepotServiceServer is an autogenerated mock type for the DepotServiceServer type
func NewMockDepotServiceServer ¶
func NewMockDepotServiceServer(t mockConstructorTestingTNewMockDepotServiceServer) *MockDepotServiceServer
NewMockDepotServiceServer creates a new instance of MockDepotServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockDepotServiceServer) AssignShoppingList ¶
func (_m *MockDepotServiceServer) AssignShoppingList(_a0 context.Context, _a1 *AssignShoppingListRequest) (*AssignShoppingListResponse, error)
AssignShoppingList provides a mock function with given fields: _a0, _a1
func (*MockDepotServiceServer) CancelShoppingList ¶
func (_m *MockDepotServiceServer) CancelShoppingList(_a0 context.Context, _a1 *CancelShoppingListRequest) (*CancelShoppingListResponse, error)
CancelShoppingList provides a mock function with given fields: _a0, _a1
func (*MockDepotServiceServer) CompleteShoppingList ¶
func (_m *MockDepotServiceServer) CompleteShoppingList(_a0 context.Context, _a1 *CompleteShoppingListRequest) (*CompleteShoppingListResponse, error)
CompleteShoppingList provides a mock function with given fields: _a0, _a1
func (*MockDepotServiceServer) CreateShoppingList ¶
func (_m *MockDepotServiceServer) CreateShoppingList(_a0 context.Context, _a1 *CreateShoppingListRequest) (*CreateShoppingListResponse, error)
CreateShoppingList provides a mock function with given fields: _a0, _a1
type MockUnsafeDepotServiceServer ¶
MockUnsafeDepotServiceServer is an autogenerated mock type for the UnsafeDepotServiceServer type
func NewMockUnsafeDepotServiceServer ¶
func NewMockUnsafeDepotServiceServer(t mockConstructorTestingTNewMockUnsafeDepotServiceServer) *MockUnsafeDepotServiceServer
NewMockUnsafeDepotServiceServer creates a new instance of MockUnsafeDepotServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type OrderItem ¶
type OrderItem struct {
	ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	StoreId   string `protobuf:"bytes,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"`
	Quantity  int32  `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*OrderItem) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*OrderItem) GetProductId ¶
func (*OrderItem) GetQuantity ¶
func (*OrderItem) GetStoreId ¶
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
type ShoppingList ¶
type ShoppingList struct {
	Id            string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OrderId       string           `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Stops         map[string]*Stop `` /* 151-byte string literal not displayed */
	AssignedBotId string           `protobuf:"bytes,4,opt,name=assigned_bot_id,json=assignedBotId,proto3" json:"assigned_bot_id,omitempty"`
	Status        string           `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*ShoppingList) Descriptor
            deprecated
            
          
  
    
  
      
      func (*ShoppingList) Descriptor() ([]byte, []int)
Deprecated: Use ShoppingList.ProtoReflect.Descriptor instead.
func (*ShoppingList) GetAssignedBotId ¶
func (x *ShoppingList) GetAssignedBotId() string
func (*ShoppingList) GetId ¶
func (x *ShoppingList) GetId() string
func (*ShoppingList) GetOrderId ¶
func (x *ShoppingList) GetOrderId() string
func (*ShoppingList) GetStatus ¶
func (x *ShoppingList) GetStatus() string
func (*ShoppingList) GetStops ¶
func (x *ShoppingList) GetStops() map[string]*Stop
func (*ShoppingList) ProtoMessage ¶
func (*ShoppingList) ProtoMessage()
func (*ShoppingList) ProtoReflect ¶
func (x *ShoppingList) ProtoReflect() protoreflect.Message
func (*ShoppingList) Reset ¶
func (x *ShoppingList) Reset()
func (*ShoppingList) String ¶
func (x *ShoppingList) String() string
type ShoppingListCompleted ¶
type ShoppingListCompleted struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*ShoppingListCompleted) Descriptor
            deprecated
            
          
  
    
  
      
      func (*ShoppingListCompleted) Descriptor() ([]byte, []int)
Deprecated: Use ShoppingListCompleted.ProtoReflect.Descriptor instead.
func (*ShoppingListCompleted) GetId ¶
func (x *ShoppingListCompleted) GetId() string
func (*ShoppingListCompleted) GetOrderId ¶
func (x *ShoppingListCompleted) GetOrderId() string
func (*ShoppingListCompleted) ProtoMessage ¶
func (*ShoppingListCompleted) ProtoMessage()
func (*ShoppingListCompleted) ProtoReflect ¶
func (x *ShoppingListCompleted) ProtoReflect() protoreflect.Message
func (*ShoppingListCompleted) Reset ¶
func (x *ShoppingListCompleted) Reset()
func (*ShoppingListCompleted) String ¶
func (x *ShoppingListCompleted) String() string
type Stop ¶
type Stop struct {
	StoreName     string           `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"`
	StoreLocation string           `protobuf:"bytes,2,opt,name=store_location,json=storeLocation,proto3" json:"store_location,omitempty"`
	Items         map[string]*Item `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}
    
        
          
            func (*Stop) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Stop) GetStoreLocation ¶
func (*Stop) GetStoreName ¶
func (*Stop) ProtoMessage ¶
func (*Stop) ProtoMessage()
func (*Stop) ProtoReflect ¶
func (x *Stop) ProtoReflect() protoreflect.Message
type UnimplementedDepotServiceServer ¶
type UnimplementedDepotServiceServer struct {
}
    UnimplementedDepotServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDepotServiceServer) AssignShoppingList ¶
func (UnimplementedDepotServiceServer) AssignShoppingList(context.Context, *AssignShoppingListRequest) (*AssignShoppingListResponse, error)
func (UnimplementedDepotServiceServer) CancelShoppingList ¶
func (UnimplementedDepotServiceServer) CancelShoppingList(context.Context, *CancelShoppingListRequest) (*CancelShoppingListResponse, error)
func (UnimplementedDepotServiceServer) CompleteShoppingList ¶
func (UnimplementedDepotServiceServer) CompleteShoppingList(context.Context, *CompleteShoppingListRequest) (*CompleteShoppingListResponse, error)
func (UnimplementedDepotServiceServer) CreateShoppingList ¶
func (UnimplementedDepotServiceServer) CreateShoppingList(context.Context, *CreateShoppingListRequest) (*CreateShoppingListResponse, error)
type UnsafeDepotServiceServer ¶
type UnsafeDepotServiceServer interface {
	// contains filtered or unexported methods
}
    UnsafeDepotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DepotServiceServer will result in compilation errors.