Documentation
¶
Index ¶
- type GetProductRequest
- type GetProductResponse
- type GetProductsRequest
- type GetProductsResponse
- type GetStoreProductRequest
- type GetStoreProductResponse
- type GetStoreProductsRequest
- type GetStoreProductsResponse
- type GetStoreRequest
- type GetStoreResponse
- type GetStoresRequest
- type GetStoresResponse
- type Location
- type LoginResponse
- type Pagination
- type Product
- type Store
- type StoreProduct
- type User
- type UserRepository
- type UserUsecase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetProductRequest ¶
func GetProductRequestFromProto ¶
func GetProductRequestFromProto(r *pb.GetProductRequest) *GetProductRequest
type GetProductResponse ¶
type GetProductResponse struct {
Product *Product `json:"store_product"`
}
func GetProductResponseFromProto ¶
func GetProductResponseFromProto(r *pb.GetProductResponse) *GetProductResponse
func (*GetProductResponse) ToProto ¶
func (r *GetProductResponse) ToProto() *pb.GetProductResponse
type GetProductsRequest ¶
type GetProductsRequest struct { DisplayName string `json:"display_name"` Pagination *Pagination `json:"pagination"` }
func GetProductsRequestFromProto ¶
func GetProductsRequestFromProto(r *pb.GetProductsRequest) *GetProductsRequest
func (*GetProductsRequest) ToProto ¶
func (r *GetProductsRequest) ToProto() *pb.GetProductsRequest
type GetProductsResponse ¶
type GetProductsResponse struct {
Products []*Product `json:"products"`
}
func GetProductsResponseFromProto ¶
func GetProductsResponseFromProto(r *pb.GetProductsResponse) *GetProductsResponse
func (*GetProductsResponse) ToProto ¶
func (r *GetProductsResponse) ToProto() *pb.GetProductsResponse
type GetStoreProductRequest ¶
type GetStoreProductRequest struct {
Id string `json:"id"`
}
func GetStoreProductRequestFromProto ¶
func GetStoreProductRequestFromProto(r *pb.GetStoreProductRequest) *GetStoreProductRequest
type GetStoreProductResponse ¶
type GetStoreProductResponse struct {
StoreProduct *StoreProduct `json:"store_product"`
}
func GetStoreProductResponseFromProto ¶
func GetStoreProductResponseFromProto(r *pb.GetStoreProductResponse) *GetStoreProductResponse
func (*GetStoreProductResponse) ToProto ¶
func (r *GetStoreProductResponse) ToProto() *pb.GetStoreProductResponse
type GetStoreProductsRequest ¶
type GetStoreProductsRequest struct { StoreId string `json:"store_id"` ProductId string `json:"product_id"` Quantity int32 `json:"quantity"` Pagination *Pagination `json:"pagination"` }
func GetStoreProductsRequestFromProto ¶
func GetStoreProductsRequestFromProto(r *pb.GetStoreProductsRequest) *GetStoreProductsRequest
func (*GetStoreProductsRequest) ToProto ¶
func (r *GetStoreProductsRequest) ToProto() *pb.GetStoreProductsRequest
type GetStoreProductsResponse ¶
type GetStoreProductsResponse struct {
StoreProducts []*StoreProduct `json:"store_products"`
}
func GetStoreProductsResponseFromProto ¶
func GetStoreProductsResponseFromProto(r *pb.GetStoreProductsResponse) *GetStoreProductsResponse
func (*GetStoreProductsResponse) ToProto ¶
func (r *GetStoreProductsResponse) ToProto() *pb.GetStoreProductsResponse
type GetStoreRequest ¶
type GetStoreRequest struct {
Id string `json:"id"`
}
func GetStoreRequestFromProto ¶
func GetStoreRequestFromProto(r *pb.GetStoreRequest) *GetStoreRequest
type GetStoreResponse ¶
type GetStoreResponse struct {
Store *Store `json:"store"`
}
func GetStoreResponseFromProto ¶
func GetStoreResponseFromProto(r *pb.GetStoreResponse) *GetStoreResponse
func (*GetStoreResponse) ToProto ¶
func (r *GetStoreResponse) ToProto() *pb.GetStoreResponse
type GetStoresRequest ¶
type GetStoresRequest struct { Location *Location `json:"location"` DisplayName string `json:"display_name"` Pagination *Pagination `json:"pagination"` }
func GetStoresRequestFromProto ¶
func GetStoresRequestFromProto(r *pb.GetStoresRequest) *GetStoresRequest
func (*GetStoresRequest) ToProto ¶
func (r *GetStoresRequest) ToProto() *pb.GetStoresRequest
type GetStoresResponse ¶
type GetStoresResponse struct {
Stores []*Store `json:"stores"`
}
func GetStoresResponseFromProto ¶
func GetStoresResponseFromProto(r *pb.GetStoresResponse) *GetStoresResponse
func (*GetStoresResponse) ToProto ¶
func (r *GetStoresResponse) ToProto() *pb.GetStoresResponse
type Location ¶
type Location struct { Address string `json:"address"` City string `json:"city"` ZipCode string `json:"zip_code"` Latitude float32 `json:"latitude"` Longitude float32 `json:"longitude"` }
func LocationFromProto ¶
type LoginResponse ¶
func LoginResponseFromProto ¶
func LoginResponseFromProto(r *pb.LoginResponse) *LoginResponse
func (*LoginResponse) LoginResponseToProto ¶
func (r *LoginResponse) LoginResponseToProto() *pb.LoginResponse
type Pagination ¶
func PaginationFromProto ¶
func PaginationFromProto(p *pb.Pagination) *Pagination
func (*Pagination) ToProto ¶
func (p *Pagination) ToProto() *pb.Pagination
type Product ¶
type Product struct { Id string `json:"id"` DisplayName string `json:"display_name"` Barcode string `json:"barcode"` CreatedAt *timestamp.Timestamp `json:"created_at"` }
func ProductFromProto ¶
type Store ¶
type Store struct { Id string `json:"id"` DisplayName string `json:"display_name"` LogoUrl string `json:"logo_url"` CreatedAt *timestamp.Timestamp `json:"created_at"` *Location }
func StoreFromProto ¶
type StoreProduct ¶
type StoreProduct struct { Id string `json:"id"` StoreId string `json:"store_id"` ProductId string `json:"product_id"` Quantity int32 `json:"quantity"` CreatedAt *timestamp.Timestamp `json:"created_at"` }
func StoreProductFromProto ¶
func StoreProductFromProto(p *pb.StoreProduct) *StoreProduct
func (*StoreProduct) ToProto ¶
func (p *StoreProduct) ToProto() *pb.StoreProduct
type User ¶
type User struct { Id string Email string `pg:",unique"` Verified bool Username string `pg:",unique"` DisplayName string Password string CreatedAt *timestamp.Timestamp }
User represents a ryss user.
func UserFromProto ¶
Converts a protobuf message, reprenting a ryss user, to a User struct.
type UserRepository ¶
Click to show internal directories.
Click to hide internal directories.