Documentation
¶
Index ¶
- Variables
- type GETReadItemFuture
- type GETReadItemRequest
- func (*GETReadItemRequest) Descriptor() ([]byte, []int)
- func (body GETReadItemRequest) FullPath() string
- func (m *GETReadItemRequest) GetId() string
- func (m *GETReadItemRequest) GetSlug() string
- func (body GETReadItemRequest) Host() string
- func (body GETReadItemRequest) Method() string
- func (body GETReadItemRequest) Path() string
- func (*GETReadItemRequest) ProtoMessage()
- func (body GETReadItemRequest) Request(ctx context.Context) typhon.Request
- func (m *GETReadItemRequest) Reset()
- func (body GETReadItemRequest) Response(ctx context.Context) (*GETReadItemResponse, error)
- func (body GETReadItemRequest) Send(ctx context.Context) *GETReadItemFuture
- func (body GETReadItemRequest) SendVia(ctx context.Context, svc typhon.Service) *GETReadItemFuture
- func (body GETReadItemRequest) ServiceName() string
- func (m *GETReadItemRequest) String() string
- func (m *GETReadItemRequest) XXX_DiscardUnknown()
- func (m *GETReadItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETReadItemRequest) XXX_Merge(src proto.Message)
- func (m *GETReadItemRequest) XXX_Size() int
- func (m *GETReadItemRequest) XXX_Unmarshal(b []byte) error
- type GETReadItemResponse
- func (*GETReadItemResponse) Descriptor() ([]byte, []int)
- func (m *GETReadItemResponse) GetItem() *Item
- func (*GETReadItemResponse) ProtoMessage()
- func (m *GETReadItemResponse) Reset()
- func (m *GETReadItemResponse) String() string
- func (m *GETReadItemResponse) XXX_DiscardUnknown()
- func (m *GETReadItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETReadItemResponse) XXX_Merge(src proto.Message)
- func (m *GETReadItemResponse) XXX_Size() int
- func (m *GETReadItemResponse) XXX_Unmarshal(b []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetAttributes() map[string]string
- func (m *Item) GetBrandId() string
- func (m *Item) GetCategoryId() string
- func (m *Item) GetColors() []string
- func (m *Item) GetCreatedAt() string
- func (m *Item) GetCurrency() string
- func (m *Item) GetEnglishName() string
- func (m *Item) GetFeatures() []string
- func (m *Item) GetForeignName() string
- func (m *Item) GetId() string
- func (m *Item) GetImageId() string
- func (m *Item) GetMetadata() map[string]string
- func (m *Item) GetNotes() string
- func (m *Item) GetPrice() string
- func (m *Item) GetProductNumber() string
- func (m *Item) GetPublishedAt() string
- func (m *Item) GetPublisherId() string
- func (m *Item) GetSlug() string
- func (m *Item) GetStatus() Status
- func (m *Item) GetTags() []string
- func (m *Item) GetUpdatedAt() string
- func (m *Item) GetUserId() string
- func (m *Item) GetYear() int32
- 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 POSTCreateItemFuture
- type POSTCreateItemRequest
- func (*POSTCreateItemRequest) Descriptor() ([]byte, []int)
- func (body POSTCreateItemRequest) FullPath() string
- func (m *POSTCreateItemRequest) GetAttributes() map[string]string
- func (m *POSTCreateItemRequest) GetBrandId() string
- func (m *POSTCreateItemRequest) GetCategoryId() string
- func (m *POSTCreateItemRequest) GetColors() []string
- func (m *POSTCreateItemRequest) GetCreatedAt() string
- func (m *POSTCreateItemRequest) GetCurrency() string
- func (m *POSTCreateItemRequest) GetEnglishName() string
- func (m *POSTCreateItemRequest) GetFeatures() []string
- func (m *POSTCreateItemRequest) GetForeignName() string
- func (m *POSTCreateItemRequest) GetId() string
- func (m *POSTCreateItemRequest) GetImageId() string
- func (m *POSTCreateItemRequest) GetMetadata() map[string]string
- func (m *POSTCreateItemRequest) GetNotes() string
- func (m *POSTCreateItemRequest) GetPrice() string
- func (m *POSTCreateItemRequest) GetProductNumber() string
- func (m *POSTCreateItemRequest) GetPublishedAt() string
- func (m *POSTCreateItemRequest) GetSlug() string
- func (m *POSTCreateItemRequest) GetTags() []string
- func (m *POSTCreateItemRequest) GetUpdatedAt() string
- func (m *POSTCreateItemRequest) GetUserId() string
- func (m *POSTCreateItemRequest) GetYear() int32
- func (body POSTCreateItemRequest) Host() string
- func (body POSTCreateItemRequest) Method() string
- func (body POSTCreateItemRequest) Path() string
- func (*POSTCreateItemRequest) ProtoMessage()
- func (body POSTCreateItemRequest) Request(ctx context.Context) typhon.Request
- func (m *POSTCreateItemRequest) Reset()
- func (body POSTCreateItemRequest) Response(ctx context.Context) (*POSTCreateItemResponse, error)
- func (body POSTCreateItemRequest) Send(ctx context.Context) *POSTCreateItemFuture
- func (body POSTCreateItemRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateItemFuture
- func (body POSTCreateItemRequest) ServiceName() string
- func (m *POSTCreateItemRequest) String() string
- func (m *POSTCreateItemRequest) XXX_DiscardUnknown()
- func (m *POSTCreateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateItemRequest) XXX_Merge(src proto.Message)
- func (m *POSTCreateItemRequest) XXX_Size() int
- func (m *POSTCreateItemRequest) XXX_Unmarshal(b []byte) error
- type POSTCreateItemResponse
- func (*POSTCreateItemResponse) Descriptor() ([]byte, []int)
- func (m *POSTCreateItemResponse) GetItem() *Item
- func (*POSTCreateItemResponse) ProtoMessage()
- func (m *POSTCreateItemResponse) Reset()
- func (m *POSTCreateItemResponse) String() string
- func (m *POSTCreateItemResponse) XXX_DiscardUnknown()
- func (m *POSTCreateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateItemResponse) XXX_Merge(src proto.Message)
- func (m *POSTCreateItemResponse) XXX_Size() int
- func (m *POSTCreateItemResponse) XXX_Unmarshal(b []byte) error
- type PUTUpdateItemFuture
- type PUTUpdateItemRequest
- func (*PUTUpdateItemRequest) Descriptor() ([]byte, []int)
- func (body PUTUpdateItemRequest) FullPath() string
- func (m *PUTUpdateItemRequest) GetBrandId() string
- func (m *PUTUpdateItemRequest) GetCategoryId() string
- func (m *PUTUpdateItemRequest) GetCurrency() string
- func (m *PUTUpdateItemRequest) GetEnglishName() string
- func (m *PUTUpdateItemRequest) GetForeignName() string
- func (m *PUTUpdateItemRequest) GetId() string
- func (m *PUTUpdateItemRequest) GetImageId() string
- func (m *PUTUpdateItemRequest) GetMetadata() map[string]string
- func (m *PUTUpdateItemRequest) GetNotes() string
- func (m *PUTUpdateItemRequest) GetPrice() string
- func (m *PUTUpdateItemRequest) GetProductNumber() string
- func (m *PUTUpdateItemRequest) GetSlug() string
- func (m *PUTUpdateItemRequest) GetYear() int32
- func (body PUTUpdateItemRequest) Host() string
- func (body PUTUpdateItemRequest) Method() string
- func (body PUTUpdateItemRequest) Path() string
- func (*PUTUpdateItemRequest) ProtoMessage()
- func (body PUTUpdateItemRequest) Request(ctx context.Context) typhon.Request
- func (m *PUTUpdateItemRequest) Reset()
- func (body PUTUpdateItemRequest) Response(ctx context.Context) (*PUTUpdateItemResponse, error)
- func (body PUTUpdateItemRequest) Send(ctx context.Context) *PUTUpdateItemFuture
- func (body PUTUpdateItemRequest) SendVia(ctx context.Context, svc typhon.Service) *PUTUpdateItemFuture
- func (body PUTUpdateItemRequest) ServiceName() string
- func (m *PUTUpdateItemRequest) String() string
- func (m *PUTUpdateItemRequest) XXX_DiscardUnknown()
- func (m *PUTUpdateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PUTUpdateItemRequest) XXX_Merge(src proto.Message)
- func (m *PUTUpdateItemRequest) XXX_Size() int
- func (m *PUTUpdateItemRequest) XXX_Unmarshal(b []byte) error
- type PUTUpdateItemResponse
- func (*PUTUpdateItemResponse) Descriptor() ([]byte, []int)
- func (m *PUTUpdateItemResponse) GetItem() *Item
- func (*PUTUpdateItemResponse) ProtoMessage()
- func (m *PUTUpdateItemResponse) Reset()
- func (m *PUTUpdateItemResponse) String() string
- func (m *PUTUpdateItemResponse) XXX_DiscardUnknown()
- func (m *PUTUpdateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PUTUpdateItemResponse) XXX_Merge(src proto.Message)
- func (m *PUTUpdateItemResponse) XXX_Size() int
- func (m *PUTUpdateItemResponse) XXX_Unmarshal(b []byte) error
- type Status
Constants ¶
This section is empty.
Variables ¶
var Status_name = map[int32]string{
0: "DRAFT",
1: "PUBLISHED",
2: "UNKNOWN",
}
var Status_value = map[string]int32{
"DRAFT": 0,
"PUBLISHED": 1,
"UNKNOWN": 2,
}
Functions ¶
This section is empty.
Types ¶
type GETReadItemFuture ¶
type GETReadItemFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
GETReadItemFuture is an intermediate future used for parallel requests with GETReadItemRequest
func (*GETReadItemFuture) DecodeResponse ¶
func (f *GETReadItemFuture) DecodeResponse() (*GETReadItemResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*GETReadItemFuture) Done ¶
func (f *GETReadItemFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type GETReadItemRequest ¶
type GETReadItemRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GETReadItemRequest) Descriptor ¶
func (*GETReadItemRequest) Descriptor() ([]byte, []int)
func (GETReadItemRequest) FullPath ¶
func (body GETReadItemRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*GETReadItemRequest) GetId ¶
func (m *GETReadItemRequest) GetId() string
func (*GETReadItemRequest) GetSlug ¶
func (m *GETReadItemRequest) GetSlug() string
func (GETReadItemRequest) Host ¶
func (body GETReadItemRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (GETReadItemRequest) Method ¶
func (body GETReadItemRequest) Method() string
Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.
func (GETReadItemRequest) Path ¶
func (body GETReadItemRequest) Path() string
Path is the HTTP path to this endpoint
func (*GETReadItemRequest) ProtoMessage ¶
func (*GETReadItemRequest) ProtoMessage()
func (GETReadItemRequest) Request ¶
func (body GETReadItemRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*GETReadItemRequest) Reset ¶
func (m *GETReadItemRequest) Reset()
func (GETReadItemRequest) Response ¶
func (body GETReadItemRequest) Response(ctx context.Context) (*GETReadItemResponse, error)
Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.
func (GETReadItemRequest) Send ¶
func (body GETReadItemRequest) Send(ctx context.Context) *GETReadItemFuture
Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.
func (GETReadItemRequest) SendVia ¶
func (body GETReadItemRequest) SendVia(ctx context.Context, svc typhon.Service) *GETReadItemFuture
SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.
func (GETReadItemRequest) ServiceName ¶
func (body GETReadItemRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*GETReadItemRequest) String ¶
func (m *GETReadItemRequest) String() string
func (*GETReadItemRequest) XXX_DiscardUnknown ¶
func (m *GETReadItemRequest) XXX_DiscardUnknown()
func (*GETReadItemRequest) XXX_Marshal ¶
func (m *GETReadItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GETReadItemRequest) XXX_Merge ¶
func (m *GETReadItemRequest) XXX_Merge(src proto.Message)
func (*GETReadItemRequest) XXX_Size ¶
func (m *GETReadItemRequest) XXX_Size() int
func (*GETReadItemRequest) XXX_Unmarshal ¶
func (m *GETReadItemRequest) XXX_Unmarshal(b []byte) error
type GETReadItemResponse ¶
type GETReadItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GETReadItemResponse) Descriptor ¶
func (*GETReadItemResponse) Descriptor() ([]byte, []int)
func (*GETReadItemResponse) GetItem ¶
func (m *GETReadItemResponse) GetItem() *Item
func (*GETReadItemResponse) ProtoMessage ¶
func (*GETReadItemResponse) ProtoMessage()
func (*GETReadItemResponse) Reset ¶
func (m *GETReadItemResponse) Reset()
func (*GETReadItemResponse) String ¶
func (m *GETReadItemResponse) String() string
func (*GETReadItemResponse) XXX_DiscardUnknown ¶
func (m *GETReadItemResponse) XXX_DiscardUnknown()
func (*GETReadItemResponse) XXX_Marshal ¶
func (m *GETReadItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GETReadItemResponse) XXX_Merge ¶
func (m *GETReadItemResponse) XXX_Merge(src proto.Message)
func (*GETReadItemResponse) XXX_Size ¶
func (m *GETReadItemResponse) XXX_Size() int
func (*GETReadItemResponse) XXX_Unmarshal ¶
func (m *GETReadItemResponse) XXX_Unmarshal(b []byte) error
type Item ¶
type Item struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` BrandId string `protobuf:"bytes,3,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"` CategoryId string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ImageId string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` PublisherId string `protobuf:"bytes,7,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"` EnglishName string `protobuf:"bytes,8,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"` ForeignName string `protobuf:"bytes,9,opt,name=foreign_name,json=foreignName,proto3" json:"foreign_name,omitempty"` ProductNumber string `protobuf:"bytes,10,opt,name=product_number,json=productNumber,proto3" json:"product_number,omitempty"` Currency string `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"` Price string `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"` Year int32 `protobuf:"varint,13,opt,name=year,proto3" json:"year,omitempty"` Notes string `protobuf:"bytes,14,opt,name=notes,proto3" json:"notes,omitempty"` Status Status `protobuf:"varint,40,opt,name=status,proto3,enum=itemproto.Status" json:"status,omitempty"` // key-value searchable metadata. Metadata map[string]string `` /* 158-byte string literal not displayed */ Features []string `protobuf:"bytes,51,rep,name=features,proto3" json:"features,omitempty"` Colors []string `protobuf:"bytes,52,rep,name=colors,proto3" json:"colors,omitempty"` Tags []string `protobuf:"bytes,53,rep,name=tags,proto3" json:"tags,omitempty"` Attributes map[string]string `` /* 162-byte string literal not displayed */ // timestamps CreatedAt string `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` PublishedAt string `protobuf:"bytes,102,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) GetAttributes ¶
func (*Item) GetBrandId ¶
func (*Item) GetCategoryId ¶
func (*Item) GetCreatedAt ¶
func (*Item) GetCurrency ¶
func (*Item) GetEnglishName ¶
func (*Item) GetFeatures ¶
func (*Item) GetForeignName ¶
func (*Item) GetImageId ¶
func (*Item) GetMetadata ¶
func (*Item) GetProductNumber ¶
func (*Item) GetPublishedAt ¶
func (*Item) GetPublisherId ¶
func (*Item) GetUpdatedAt ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type POSTCreateItemFuture ¶
type POSTCreateItemFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
POSTCreateItemFuture is an intermediate future used for parallel requests with POSTCreateItemRequest
func (*POSTCreateItemFuture) DecodeResponse ¶
func (f *POSTCreateItemFuture) DecodeResponse() (*POSTCreateItemResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*POSTCreateItemFuture) Done ¶
func (f *POSTCreateItemFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type POSTCreateItemRequest ¶
type POSTCreateItemRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` BrandId string `protobuf:"bytes,3,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"` CategoryId string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ImageId string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` EnglishName string `protobuf:"bytes,8,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"` ForeignName string `protobuf:"bytes,9,opt,name=foreign_name,json=foreignName,proto3" json:"foreign_name,omitempty"` ProductNumber string `protobuf:"bytes,10,opt,name=product_number,json=productNumber,proto3" json:"product_number,omitempty"` Currency string `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"` Price string `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"` Year int32 `protobuf:"varint,13,opt,name=year,proto3" json:"year,omitempty"` Notes string `protobuf:"bytes,14,opt,name=notes,proto3" json:"notes,omitempty"` // key-value searchable metadata. Metadata map[string]string `` /* 158-byte string literal not displayed */ Features []string `protobuf:"bytes,51,rep,name=features,proto3" json:"features,omitempty"` Colors []string `protobuf:"bytes,52,rep,name=colors,proto3" json:"colors,omitempty"` Tags []string `protobuf:"bytes,53,rep,name=tags,proto3" json:"tags,omitempty"` Attributes map[string]string `` /* 162-byte string literal not displayed */ // timestamps CreatedAt string `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` PublishedAt string `protobuf:"bytes,102,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*POSTCreateItemRequest) Descriptor ¶
func (*POSTCreateItemRequest) Descriptor() ([]byte, []int)
func (POSTCreateItemRequest) FullPath ¶
func (body POSTCreateItemRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*POSTCreateItemRequest) GetAttributes ¶
func (m *POSTCreateItemRequest) GetAttributes() map[string]string
func (*POSTCreateItemRequest) GetBrandId ¶
func (m *POSTCreateItemRequest) GetBrandId() string
func (*POSTCreateItemRequest) GetCategoryId ¶
func (m *POSTCreateItemRequest) GetCategoryId() string
func (*POSTCreateItemRequest) GetColors ¶
func (m *POSTCreateItemRequest) GetColors() []string
func (*POSTCreateItemRequest) GetCreatedAt ¶
func (m *POSTCreateItemRequest) GetCreatedAt() string
func (*POSTCreateItemRequest) GetCurrency ¶
func (m *POSTCreateItemRequest) GetCurrency() string
func (*POSTCreateItemRequest) GetEnglishName ¶
func (m *POSTCreateItemRequest) GetEnglishName() string
func (*POSTCreateItemRequest) GetFeatures ¶
func (m *POSTCreateItemRequest) GetFeatures() []string
func (*POSTCreateItemRequest) GetForeignName ¶
func (m *POSTCreateItemRequest) GetForeignName() string
func (*POSTCreateItemRequest) GetId ¶
func (m *POSTCreateItemRequest) GetId() string
func (*POSTCreateItemRequest) GetImageId ¶
func (m *POSTCreateItemRequest) GetImageId() string
func (*POSTCreateItemRequest) GetMetadata ¶
func (m *POSTCreateItemRequest) GetMetadata() map[string]string
func (*POSTCreateItemRequest) GetNotes ¶
func (m *POSTCreateItemRequest) GetNotes() string
func (*POSTCreateItemRequest) GetPrice ¶
func (m *POSTCreateItemRequest) GetPrice() string
func (*POSTCreateItemRequest) GetProductNumber ¶
func (m *POSTCreateItemRequest) GetProductNumber() string
func (*POSTCreateItemRequest) GetPublishedAt ¶
func (m *POSTCreateItemRequest) GetPublishedAt() string
func (*POSTCreateItemRequest) GetSlug ¶
func (m *POSTCreateItemRequest) GetSlug() string
func (*POSTCreateItemRequest) GetTags ¶
func (m *POSTCreateItemRequest) GetTags() []string
func (*POSTCreateItemRequest) GetUpdatedAt ¶
func (m *POSTCreateItemRequest) GetUpdatedAt() string
func (*POSTCreateItemRequest) GetUserId ¶
func (m *POSTCreateItemRequest) GetUserId() string
func (*POSTCreateItemRequest) GetYear ¶
func (m *POSTCreateItemRequest) GetYear() int32
func (POSTCreateItemRequest) Host ¶
func (body POSTCreateItemRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (POSTCreateItemRequest) Method ¶
func (body POSTCreateItemRequest) Method() string
Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.
func (POSTCreateItemRequest) Path ¶
func (body POSTCreateItemRequest) Path() string
Path is the HTTP path to this endpoint
func (*POSTCreateItemRequest) ProtoMessage ¶
func (*POSTCreateItemRequest) ProtoMessage()
func (POSTCreateItemRequest) Request ¶
func (body POSTCreateItemRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*POSTCreateItemRequest) Reset ¶
func (m *POSTCreateItemRequest) Reset()
func (POSTCreateItemRequest) Response ¶
func (body POSTCreateItemRequest) Response(ctx context.Context) (*POSTCreateItemResponse, error)
Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.
func (POSTCreateItemRequest) Send ¶
func (body POSTCreateItemRequest) Send(ctx context.Context) *POSTCreateItemFuture
Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.
func (POSTCreateItemRequest) SendVia ¶
func (body POSTCreateItemRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateItemFuture
SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.
func (POSTCreateItemRequest) ServiceName ¶
func (body POSTCreateItemRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*POSTCreateItemRequest) String ¶
func (m *POSTCreateItemRequest) String() string
func (*POSTCreateItemRequest) XXX_DiscardUnknown ¶
func (m *POSTCreateItemRequest) XXX_DiscardUnknown()
func (*POSTCreateItemRequest) XXX_Marshal ¶
func (m *POSTCreateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*POSTCreateItemRequest) XXX_Merge ¶
func (m *POSTCreateItemRequest) XXX_Merge(src proto.Message)
func (*POSTCreateItemRequest) XXX_Size ¶
func (m *POSTCreateItemRequest) XXX_Size() int
func (*POSTCreateItemRequest) XXX_Unmarshal ¶
func (m *POSTCreateItemRequest) XXX_Unmarshal(b []byte) error
type POSTCreateItemResponse ¶
type POSTCreateItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*POSTCreateItemResponse) Descriptor ¶
func (*POSTCreateItemResponse) Descriptor() ([]byte, []int)
func (*POSTCreateItemResponse) GetItem ¶
func (m *POSTCreateItemResponse) GetItem() *Item
func (*POSTCreateItemResponse) ProtoMessage ¶
func (*POSTCreateItemResponse) ProtoMessage()
func (*POSTCreateItemResponse) Reset ¶
func (m *POSTCreateItemResponse) Reset()
func (*POSTCreateItemResponse) String ¶
func (m *POSTCreateItemResponse) String() string
func (*POSTCreateItemResponse) XXX_DiscardUnknown ¶
func (m *POSTCreateItemResponse) XXX_DiscardUnknown()
func (*POSTCreateItemResponse) XXX_Marshal ¶
func (m *POSTCreateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*POSTCreateItemResponse) XXX_Merge ¶
func (m *POSTCreateItemResponse) XXX_Merge(src proto.Message)
func (*POSTCreateItemResponse) XXX_Size ¶
func (m *POSTCreateItemResponse) XXX_Size() int
func (*POSTCreateItemResponse) XXX_Unmarshal ¶
func (m *POSTCreateItemResponse) XXX_Unmarshal(b []byte) error
type PUTUpdateItemFuture ¶
type PUTUpdateItemFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
PUTUpdateItemFuture is an intermediate future used for parallel requests with PUTUpdateItemRequest
func (*PUTUpdateItemFuture) DecodeResponse ¶
func (f *PUTUpdateItemFuture) DecodeResponse() (*PUTUpdateItemResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*PUTUpdateItemFuture) Done ¶
func (f *PUTUpdateItemFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type PUTUpdateItemRequest ¶
type PUTUpdateItemRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` BrandId string `protobuf:"bytes,3,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"` CategoryId string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` ImageId string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` EnglishName string `protobuf:"bytes,8,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"` ForeignName string `protobuf:"bytes,9,opt,name=foreign_name,json=foreignName,proto3" json:"foreign_name,omitempty"` ProductNumber string `protobuf:"bytes,10,opt,name=product_number,json=productNumber,proto3" json:"product_number,omitempty"` Currency string `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"` Price string `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"` Year int32 `protobuf:"varint,13,opt,name=year,proto3" json:"year,omitempty"` Notes string `protobuf:"bytes,14,opt,name=notes,proto3" json:"notes,omitempty"` Metadata map[string]string `` /* 158-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PUTUpdateItemRequest) Descriptor ¶
func (*PUTUpdateItemRequest) Descriptor() ([]byte, []int)
func (PUTUpdateItemRequest) FullPath ¶
func (body PUTUpdateItemRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*PUTUpdateItemRequest) GetBrandId ¶
func (m *PUTUpdateItemRequest) GetBrandId() string
func (*PUTUpdateItemRequest) GetCategoryId ¶
func (m *PUTUpdateItemRequest) GetCategoryId() string
func (*PUTUpdateItemRequest) GetCurrency ¶
func (m *PUTUpdateItemRequest) GetCurrency() string
func (*PUTUpdateItemRequest) GetEnglishName ¶
func (m *PUTUpdateItemRequest) GetEnglishName() string
func (*PUTUpdateItemRequest) GetForeignName ¶
func (m *PUTUpdateItemRequest) GetForeignName() string
func (*PUTUpdateItemRequest) GetId ¶
func (m *PUTUpdateItemRequest) GetId() string
func (*PUTUpdateItemRequest) GetImageId ¶
func (m *PUTUpdateItemRequest) GetImageId() string
func (*PUTUpdateItemRequest) GetMetadata ¶
func (m *PUTUpdateItemRequest) GetMetadata() map[string]string
func (*PUTUpdateItemRequest) GetNotes ¶
func (m *PUTUpdateItemRequest) GetNotes() string
func (*PUTUpdateItemRequest) GetPrice ¶
func (m *PUTUpdateItemRequest) GetPrice() string
func (*PUTUpdateItemRequest) GetProductNumber ¶
func (m *PUTUpdateItemRequest) GetProductNumber() string
func (*PUTUpdateItemRequest) GetSlug ¶
func (m *PUTUpdateItemRequest) GetSlug() string
func (*PUTUpdateItemRequest) GetYear ¶
func (m *PUTUpdateItemRequest) GetYear() int32
func (PUTUpdateItemRequest) Host ¶
func (body PUTUpdateItemRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (PUTUpdateItemRequest) Method ¶
func (body PUTUpdateItemRequest) Method() string
Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.
func (PUTUpdateItemRequest) Path ¶
func (body PUTUpdateItemRequest) Path() string
Path is the HTTP path to this endpoint
func (*PUTUpdateItemRequest) ProtoMessage ¶
func (*PUTUpdateItemRequest) ProtoMessage()
func (PUTUpdateItemRequest) Request ¶
func (body PUTUpdateItemRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*PUTUpdateItemRequest) Reset ¶
func (m *PUTUpdateItemRequest) Reset()
func (PUTUpdateItemRequest) Response ¶
func (body PUTUpdateItemRequest) Response(ctx context.Context) (*PUTUpdateItemResponse, error)
Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.
func (PUTUpdateItemRequest) Send ¶
func (body PUTUpdateItemRequest) Send(ctx context.Context) *PUTUpdateItemFuture
Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.
func (PUTUpdateItemRequest) SendVia ¶
func (body PUTUpdateItemRequest) SendVia(ctx context.Context, svc typhon.Service) *PUTUpdateItemFuture
SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.
func (PUTUpdateItemRequest) ServiceName ¶
func (body PUTUpdateItemRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*PUTUpdateItemRequest) String ¶
func (m *PUTUpdateItemRequest) String() string
func (*PUTUpdateItemRequest) XXX_DiscardUnknown ¶
func (m *PUTUpdateItemRequest) XXX_DiscardUnknown()
func (*PUTUpdateItemRequest) XXX_Marshal ¶
func (m *PUTUpdateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PUTUpdateItemRequest) XXX_Merge ¶
func (m *PUTUpdateItemRequest) XXX_Merge(src proto.Message)
func (*PUTUpdateItemRequest) XXX_Size ¶
func (m *PUTUpdateItemRequest) XXX_Size() int
func (*PUTUpdateItemRequest) XXX_Unmarshal ¶
func (m *PUTUpdateItemRequest) XXX_Unmarshal(b []byte) error
type PUTUpdateItemResponse ¶
type PUTUpdateItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PUTUpdateItemResponse) Descriptor ¶
func (*PUTUpdateItemResponse) Descriptor() ([]byte, []int)
func (*PUTUpdateItemResponse) GetItem ¶
func (m *PUTUpdateItemResponse) GetItem() *Item
func (*PUTUpdateItemResponse) ProtoMessage ¶
func (*PUTUpdateItemResponse) ProtoMessage()
func (*PUTUpdateItemResponse) Reset ¶
func (m *PUTUpdateItemResponse) Reset()
func (*PUTUpdateItemResponse) String ¶
func (m *PUTUpdateItemResponse) String() string
func (*PUTUpdateItemResponse) XXX_DiscardUnknown ¶
func (m *PUTUpdateItemResponse) XXX_DiscardUnknown()
func (*PUTUpdateItemResponse) XXX_Marshal ¶
func (m *PUTUpdateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PUTUpdateItemResponse) XXX_Merge ¶
func (m *PUTUpdateItemResponse) XXX_Merge(src proto.Message)
func (*PUTUpdateItemResponse) XXX_Size ¶
func (m *PUTUpdateItemResponse) XXX_Size() int
func (*PUTUpdateItemResponse) XXX_Unmarshal ¶
func (m *PUTUpdateItemResponse) XXX_Unmarshal(b []byte) error