Documentation
¶
Index ¶
- type Category
- func (*Category) Descriptor() ([]byte, []int)
- func (m *Category) GetCreatedAt() string
- func (m *Category) GetId() string
- func (m *Category) GetName() string
- func (m *Category) GetSlug() string
- func (m *Category) GetUpdatedAt() string
- func (*Category) ProtoMessage()
- func (m *Category) Reset()
- func (m *Category) String() string
- func (m *Category) XXX_DiscardUnknown()
- func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Category) XXX_Merge(src proto.Message)
- func (m *Category) XXX_Size() int
- func (m *Category) XXX_Unmarshal(b []byte) error
- type DELETERemoveCategoryFuture
- type DELETERemoveCategoryRequest
- func (*DELETERemoveCategoryRequest) Descriptor() ([]byte, []int)
- func (body DELETERemoveCategoryRequest) FullPath() string
- func (m *DELETERemoveCategoryRequest) GetId() string
- func (body DELETERemoveCategoryRequest) Host() string
- func (body DELETERemoveCategoryRequest) Method() string
- func (body DELETERemoveCategoryRequest) Path() string
- func (*DELETERemoveCategoryRequest) ProtoMessage()
- func (body DELETERemoveCategoryRequest) Request(ctx context.Context) typhon.Request
- func (m *DELETERemoveCategoryRequest) Reset()
- func (body DELETERemoveCategoryRequest) Response(ctx context.Context) (*DELETERemoveCategoryResponse, error)
- func (body DELETERemoveCategoryRequest) Send(ctx context.Context) *DELETERemoveCategoryFuture
- func (body DELETERemoveCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *DELETERemoveCategoryFuture
- func (body DELETERemoveCategoryRequest) ServiceName() string
- func (m *DELETERemoveCategoryRequest) String() string
- func (m *DELETERemoveCategoryRequest) XXX_DiscardUnknown()
- func (m *DELETERemoveCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DELETERemoveCategoryRequest) XXX_Merge(src proto.Message)
- func (m *DELETERemoveCategoryRequest) XXX_Size() int
- func (m *DELETERemoveCategoryRequest) XXX_Unmarshal(b []byte) error
- type DELETERemoveCategoryResponse
- func (*DELETERemoveCategoryResponse) Descriptor() ([]byte, []int)
- func (*DELETERemoveCategoryResponse) ProtoMessage()
- func (m *DELETERemoveCategoryResponse) Reset()
- func (m *DELETERemoveCategoryResponse) String() string
- func (m *DELETERemoveCategoryResponse) XXX_DiscardUnknown()
- func (m *DELETERemoveCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DELETERemoveCategoryResponse) XXX_Merge(src proto.Message)
- func (m *DELETERemoveCategoryResponse) XXX_Size() int
- func (m *DELETERemoveCategoryResponse) XXX_Unmarshal(b []byte) error
- type GETListCategoriesFuture
- type GETListCategoriesRequest
- func (*GETListCategoriesRequest) Descriptor() ([]byte, []int)
- func (body GETListCategoriesRequest) FullPath() string
- func (body GETListCategoriesRequest) Host() string
- func (body GETListCategoriesRequest) Method() string
- func (body GETListCategoriesRequest) Path() string
- func (*GETListCategoriesRequest) ProtoMessage()
- func (body GETListCategoriesRequest) Request(ctx context.Context) typhon.Request
- func (m *GETListCategoriesRequest) Reset()
- func (body GETListCategoriesRequest) Response(ctx context.Context) (*GETListCategoriesResponse, error)
- func (body GETListCategoriesRequest) Send(ctx context.Context) *GETListCategoriesFuture
- func (body GETListCategoriesRequest) SendVia(ctx context.Context, svc typhon.Service) *GETListCategoriesFuture
- func (body GETListCategoriesRequest) ServiceName() string
- func (m *GETListCategoriesRequest) String() string
- func (m *GETListCategoriesRequest) XXX_DiscardUnknown()
- func (m *GETListCategoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETListCategoriesRequest) XXX_Merge(src proto.Message)
- func (m *GETListCategoriesRequest) XXX_Size() int
- func (m *GETListCategoriesRequest) XXX_Unmarshal(b []byte) error
- type GETListCategoriesResponse
- func (*GETListCategoriesResponse) Descriptor() ([]byte, []int)
- func (m *GETListCategoriesResponse) GetCategories() []*Category
- func (*GETListCategoriesResponse) ProtoMessage()
- func (m *GETListCategoriesResponse) Reset()
- func (m *GETListCategoriesResponse) String() string
- func (m *GETListCategoriesResponse) XXX_DiscardUnknown()
- func (m *GETListCategoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETListCategoriesResponse) XXX_Merge(src proto.Message)
- func (m *GETListCategoriesResponse) XXX_Size() int
- func (m *GETListCategoriesResponse) XXX_Unmarshal(b []byte) error
- type GETReadCategoryFuture
- type GETReadCategoryRequest
- func (*GETReadCategoryRequest) Descriptor() ([]byte, []int)
- func (body GETReadCategoryRequest) FullPath() string
- func (m *GETReadCategoryRequest) GetId() string
- func (m *GETReadCategoryRequest) GetSlug() string
- func (body GETReadCategoryRequest) Host() string
- func (body GETReadCategoryRequest) Method() string
- func (body GETReadCategoryRequest) Path() string
- func (*GETReadCategoryRequest) ProtoMessage()
- func (body GETReadCategoryRequest) Request(ctx context.Context) typhon.Request
- func (m *GETReadCategoryRequest) Reset()
- func (body GETReadCategoryRequest) Response(ctx context.Context) (*GETReadCategoryResponse, error)
- func (body GETReadCategoryRequest) Send(ctx context.Context) *GETReadCategoryFuture
- func (body GETReadCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *GETReadCategoryFuture
- func (body GETReadCategoryRequest) ServiceName() string
- func (m *GETReadCategoryRequest) String() string
- func (m *GETReadCategoryRequest) XXX_DiscardUnknown()
- func (m *GETReadCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETReadCategoryRequest) XXX_Merge(src proto.Message)
- func (m *GETReadCategoryRequest) XXX_Size() int
- func (m *GETReadCategoryRequest) XXX_Unmarshal(b []byte) error
- type GETReadCategoryResponse
- func (*GETReadCategoryResponse) Descriptor() ([]byte, []int)
- func (m *GETReadCategoryResponse) GetCategory() *Category
- func (*GETReadCategoryResponse) ProtoMessage()
- func (m *GETReadCategoryResponse) Reset()
- func (m *GETReadCategoryResponse) String() string
- func (m *GETReadCategoryResponse) XXX_DiscardUnknown()
- func (m *GETReadCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETReadCategoryResponse) XXX_Merge(src proto.Message)
- func (m *GETReadCategoryResponse) XXX_Size() int
- func (m *GETReadCategoryResponse) XXX_Unmarshal(b []byte) error
- type POSTCreateCategoryFuture
- type POSTCreateCategoryRequest
- func (*POSTCreateCategoryRequest) Descriptor() ([]byte, []int)
- func (body POSTCreateCategoryRequest) FullPath() string
- func (m *POSTCreateCategoryRequest) GetId() string
- func (m *POSTCreateCategoryRequest) GetName() string
- func (m *POSTCreateCategoryRequest) GetSlug() string
- func (body POSTCreateCategoryRequest) Host() string
- func (body POSTCreateCategoryRequest) Method() string
- func (body POSTCreateCategoryRequest) Path() string
- func (*POSTCreateCategoryRequest) ProtoMessage()
- func (body POSTCreateCategoryRequest) Request(ctx context.Context) typhon.Request
- func (m *POSTCreateCategoryRequest) Reset()
- func (body POSTCreateCategoryRequest) Response(ctx context.Context) (*POSTCreateCategoryResponse, error)
- func (body POSTCreateCategoryRequest) Send(ctx context.Context) *POSTCreateCategoryFuture
- func (body POSTCreateCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateCategoryFuture
- func (body POSTCreateCategoryRequest) ServiceName() string
- func (m *POSTCreateCategoryRequest) String() string
- func (m *POSTCreateCategoryRequest) XXX_DiscardUnknown()
- func (m *POSTCreateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateCategoryRequest) XXX_Merge(src proto.Message)
- func (m *POSTCreateCategoryRequest) XXX_Size() int
- func (m *POSTCreateCategoryRequest) XXX_Unmarshal(b []byte) error
- type POSTCreateCategoryResponse
- func (*POSTCreateCategoryResponse) Descriptor() ([]byte, []int)
- func (m *POSTCreateCategoryResponse) GetCategory() *Category
- func (*POSTCreateCategoryResponse) ProtoMessage()
- func (m *POSTCreateCategoryResponse) Reset()
- func (m *POSTCreateCategoryResponse) String() string
- func (m *POSTCreateCategoryResponse) XXX_DiscardUnknown()
- func (m *POSTCreateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateCategoryResponse) XXX_Merge(src proto.Message)
- func (m *POSTCreateCategoryResponse) XXX_Size() int
- func (m *POSTCreateCategoryResponse) XXX_Unmarshal(b []byte) error
- type PUTUpdateCategoryFuture
- type PUTUpdateCategoryRequest
- func (*PUTUpdateCategoryRequest) Descriptor() ([]byte, []int)
- func (body PUTUpdateCategoryRequest) FullPath() string
- func (m *PUTUpdateCategoryRequest) GetId() string
- func (m *PUTUpdateCategoryRequest) GetName() string
- func (m *PUTUpdateCategoryRequest) GetSlug() string
- func (body PUTUpdateCategoryRequest) Host() string
- func (body PUTUpdateCategoryRequest) Method() string
- func (body PUTUpdateCategoryRequest) Path() string
- func (*PUTUpdateCategoryRequest) ProtoMessage()
- func (body PUTUpdateCategoryRequest) Request(ctx context.Context) typhon.Request
- func (m *PUTUpdateCategoryRequest) Reset()
- func (body PUTUpdateCategoryRequest) Response(ctx context.Context) (*PUTUpdateCategoryResponse, error)
- func (body PUTUpdateCategoryRequest) Send(ctx context.Context) *PUTUpdateCategoryFuture
- func (body PUTUpdateCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *PUTUpdateCategoryFuture
- func (body PUTUpdateCategoryRequest) ServiceName() string
- func (m *PUTUpdateCategoryRequest) String() string
- func (m *PUTUpdateCategoryRequest) XXX_DiscardUnknown()
- func (m *PUTUpdateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PUTUpdateCategoryRequest) XXX_Merge(src proto.Message)
- func (m *PUTUpdateCategoryRequest) XXX_Size() int
- func (m *PUTUpdateCategoryRequest) XXX_Unmarshal(b []byte) error
- type PUTUpdateCategoryResponse
- func (*PUTUpdateCategoryResponse) Descriptor() ([]byte, []int)
- func (m *PUTUpdateCategoryResponse) GetCategory() *Category
- func (*PUTUpdateCategoryResponse) ProtoMessage()
- func (m *PUTUpdateCategoryResponse) Reset()
- func (m *PUTUpdateCategoryResponse) String() string
- func (m *PUTUpdateCategoryResponse) XXX_DiscardUnknown()
- func (m *PUTUpdateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PUTUpdateCategoryResponse) XXX_Merge(src proto.Message)
- func (m *PUTUpdateCategoryResponse) XXX_Size() int
- func (m *PUTUpdateCategoryResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category 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"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Category) Descriptor ¶
func (*Category) GetCreatedAt ¶
func (*Category) GetUpdatedAt ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) XXX_DiscardUnknown ¶
func (m *Category) XXX_DiscardUnknown()
func (*Category) XXX_Marshal ¶
func (*Category) XXX_Unmarshal ¶
type DELETERemoveCategoryFuture ¶
type DELETERemoveCategoryFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
DELETERemoveCategoryFuture is an intermediate future used for parallel requests with DELETERemoveCategoryRequest
func (*DELETERemoveCategoryFuture) DecodeResponse ¶
func (f *DELETERemoveCategoryFuture) DecodeResponse() (*DELETERemoveCategoryResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*DELETERemoveCategoryFuture) Done ¶
func (f *DELETERemoveCategoryFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type DELETERemoveCategoryRequest ¶
type DELETERemoveCategoryRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DELETERemoveCategoryRequest) Descriptor ¶
func (*DELETERemoveCategoryRequest) Descriptor() ([]byte, []int)
func (DELETERemoveCategoryRequest) FullPath ¶
func (body DELETERemoveCategoryRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*DELETERemoveCategoryRequest) GetId ¶
func (m *DELETERemoveCategoryRequest) GetId() string
func (DELETERemoveCategoryRequest) Host ¶
func (body DELETERemoveCategoryRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (DELETERemoveCategoryRequest) Method ¶
func (body DELETERemoveCategoryRequest) 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 (DELETERemoveCategoryRequest) Path ¶
func (body DELETERemoveCategoryRequest) Path() string
Path is the HTTP path to this endpoint
func (*DELETERemoveCategoryRequest) ProtoMessage ¶
func (*DELETERemoveCategoryRequest) ProtoMessage()
func (DELETERemoveCategoryRequest) Request ¶
func (body DELETERemoveCategoryRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*DELETERemoveCategoryRequest) Reset ¶
func (m *DELETERemoveCategoryRequest) Reset()
func (DELETERemoveCategoryRequest) Response ¶
func (body DELETERemoveCategoryRequest) Response(ctx context.Context) (*DELETERemoveCategoryResponse, 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 (DELETERemoveCategoryRequest) Send ¶
func (body DELETERemoveCategoryRequest) Send(ctx context.Context) *DELETERemoveCategoryFuture
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 (DELETERemoveCategoryRequest) SendVia ¶
func (body DELETERemoveCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *DELETERemoveCategoryFuture
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 (DELETERemoveCategoryRequest) ServiceName ¶
func (body DELETERemoveCategoryRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*DELETERemoveCategoryRequest) String ¶
func (m *DELETERemoveCategoryRequest) String() string
func (*DELETERemoveCategoryRequest) XXX_DiscardUnknown ¶
func (m *DELETERemoveCategoryRequest) XXX_DiscardUnknown()
func (*DELETERemoveCategoryRequest) XXX_Marshal ¶
func (m *DELETERemoveCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DELETERemoveCategoryRequest) XXX_Merge ¶
func (m *DELETERemoveCategoryRequest) XXX_Merge(src proto.Message)
func (*DELETERemoveCategoryRequest) XXX_Size ¶
func (m *DELETERemoveCategoryRequest) XXX_Size() int
func (*DELETERemoveCategoryRequest) XXX_Unmarshal ¶
func (m *DELETERemoveCategoryRequest) XXX_Unmarshal(b []byte) error
type DELETERemoveCategoryResponse ¶
type DELETERemoveCategoryResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DELETERemoveCategoryResponse) Descriptor ¶
func (*DELETERemoveCategoryResponse) Descriptor() ([]byte, []int)
func (*DELETERemoveCategoryResponse) ProtoMessage ¶
func (*DELETERemoveCategoryResponse) ProtoMessage()
func (*DELETERemoveCategoryResponse) Reset ¶
func (m *DELETERemoveCategoryResponse) Reset()
func (*DELETERemoveCategoryResponse) String ¶
func (m *DELETERemoveCategoryResponse) String() string
func (*DELETERemoveCategoryResponse) XXX_DiscardUnknown ¶
func (m *DELETERemoveCategoryResponse) XXX_DiscardUnknown()
func (*DELETERemoveCategoryResponse) XXX_Marshal ¶
func (m *DELETERemoveCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DELETERemoveCategoryResponse) XXX_Merge ¶
func (m *DELETERemoveCategoryResponse) XXX_Merge(src proto.Message)
func (*DELETERemoveCategoryResponse) XXX_Size ¶
func (m *DELETERemoveCategoryResponse) XXX_Size() int
func (*DELETERemoveCategoryResponse) XXX_Unmarshal ¶
func (m *DELETERemoveCategoryResponse) XXX_Unmarshal(b []byte) error
type GETListCategoriesFuture ¶
type GETListCategoriesFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
GETListCategoriesFuture is an intermediate future used for parallel requests with GETListCategoriesRequest
func (*GETListCategoriesFuture) DecodeResponse ¶
func (f *GETListCategoriesFuture) DecodeResponse() (*GETListCategoriesResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*GETListCategoriesFuture) Done ¶
func (f *GETListCategoriesFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type GETListCategoriesRequest ¶
type GETListCategoriesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GETListCategoriesRequest) Descriptor ¶
func (*GETListCategoriesRequest) Descriptor() ([]byte, []int)
func (GETListCategoriesRequest) FullPath ¶
func (body GETListCategoriesRequest) FullPath() string
FullPath is the full routable URL to this service.
func (GETListCategoriesRequest) Host ¶
func (body GETListCategoriesRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (GETListCategoriesRequest) Method ¶
func (body GETListCategoriesRequest) 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 (GETListCategoriesRequest) Path ¶
func (body GETListCategoriesRequest) Path() string
Path is the HTTP path to this endpoint
func (*GETListCategoriesRequest) ProtoMessage ¶
func (*GETListCategoriesRequest) ProtoMessage()
func (GETListCategoriesRequest) Request ¶
func (body GETListCategoriesRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*GETListCategoriesRequest) Reset ¶
func (m *GETListCategoriesRequest) Reset()
func (GETListCategoriesRequest) Response ¶
func (body GETListCategoriesRequest) Response(ctx context.Context) (*GETListCategoriesResponse, 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 (GETListCategoriesRequest) Send ¶
func (body GETListCategoriesRequest) Send(ctx context.Context) *GETListCategoriesFuture
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 (GETListCategoriesRequest) SendVia ¶
func (body GETListCategoriesRequest) SendVia(ctx context.Context, svc typhon.Service) *GETListCategoriesFuture
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 (GETListCategoriesRequest) ServiceName ¶
func (body GETListCategoriesRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*GETListCategoriesRequest) String ¶
func (m *GETListCategoriesRequest) String() string
func (*GETListCategoriesRequest) XXX_DiscardUnknown ¶
func (m *GETListCategoriesRequest) XXX_DiscardUnknown()
func (*GETListCategoriesRequest) XXX_Marshal ¶
func (m *GETListCategoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GETListCategoriesRequest) XXX_Merge ¶
func (m *GETListCategoriesRequest) XXX_Merge(src proto.Message)
func (*GETListCategoriesRequest) XXX_Size ¶
func (m *GETListCategoriesRequest) XXX_Size() int
func (*GETListCategoriesRequest) XXX_Unmarshal ¶
func (m *GETListCategoriesRequest) XXX_Unmarshal(b []byte) error
type GETListCategoriesResponse ¶
type GETListCategoriesResponse struct { Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GETListCategoriesResponse) Descriptor ¶
func (*GETListCategoriesResponse) Descriptor() ([]byte, []int)
func (*GETListCategoriesResponse) GetCategories ¶
func (m *GETListCategoriesResponse) GetCategories() []*Category
func (*GETListCategoriesResponse) ProtoMessage ¶
func (*GETListCategoriesResponse) ProtoMessage()
func (*GETListCategoriesResponse) Reset ¶
func (m *GETListCategoriesResponse) Reset()
func (*GETListCategoriesResponse) String ¶
func (m *GETListCategoriesResponse) String() string
func (*GETListCategoriesResponse) XXX_DiscardUnknown ¶
func (m *GETListCategoriesResponse) XXX_DiscardUnknown()
func (*GETListCategoriesResponse) XXX_Marshal ¶
func (m *GETListCategoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GETListCategoriesResponse) XXX_Merge ¶
func (m *GETListCategoriesResponse) XXX_Merge(src proto.Message)
func (*GETListCategoriesResponse) XXX_Size ¶
func (m *GETListCategoriesResponse) XXX_Size() int
func (*GETListCategoriesResponse) XXX_Unmarshal ¶
func (m *GETListCategoriesResponse) XXX_Unmarshal(b []byte) error
type GETReadCategoryFuture ¶
type GETReadCategoryFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
GETReadCategoryFuture is an intermediate future used for parallel requests with GETReadCategoryRequest
func (*GETReadCategoryFuture) DecodeResponse ¶
func (f *GETReadCategoryFuture) DecodeResponse() (*GETReadCategoryResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*GETReadCategoryFuture) Done ¶
func (f *GETReadCategoryFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type GETReadCategoryRequest ¶
type GETReadCategoryRequest 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 (*GETReadCategoryRequest) Descriptor ¶
func (*GETReadCategoryRequest) Descriptor() ([]byte, []int)
func (GETReadCategoryRequest) FullPath ¶
func (body GETReadCategoryRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*GETReadCategoryRequest) GetId ¶
func (m *GETReadCategoryRequest) GetId() string
func (*GETReadCategoryRequest) GetSlug ¶
func (m *GETReadCategoryRequest) GetSlug() string
func (GETReadCategoryRequest) Host ¶
func (body GETReadCategoryRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (GETReadCategoryRequest) Method ¶
func (body GETReadCategoryRequest) 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 (GETReadCategoryRequest) Path ¶
func (body GETReadCategoryRequest) Path() string
Path is the HTTP path to this endpoint
func (*GETReadCategoryRequest) ProtoMessage ¶
func (*GETReadCategoryRequest) ProtoMessage()
func (GETReadCategoryRequest) Request ¶
func (body GETReadCategoryRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*GETReadCategoryRequest) Reset ¶
func (m *GETReadCategoryRequest) Reset()
func (GETReadCategoryRequest) Response ¶
func (body GETReadCategoryRequest) Response(ctx context.Context) (*GETReadCategoryResponse, 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 (GETReadCategoryRequest) Send ¶
func (body GETReadCategoryRequest) Send(ctx context.Context) *GETReadCategoryFuture
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 (GETReadCategoryRequest) SendVia ¶
func (body GETReadCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *GETReadCategoryFuture
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 (GETReadCategoryRequest) ServiceName ¶
func (body GETReadCategoryRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*GETReadCategoryRequest) String ¶
func (m *GETReadCategoryRequest) String() string
func (*GETReadCategoryRequest) XXX_DiscardUnknown ¶
func (m *GETReadCategoryRequest) XXX_DiscardUnknown()
func (*GETReadCategoryRequest) XXX_Marshal ¶
func (m *GETReadCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GETReadCategoryRequest) XXX_Merge ¶
func (m *GETReadCategoryRequest) XXX_Merge(src proto.Message)
func (*GETReadCategoryRequest) XXX_Size ¶
func (m *GETReadCategoryRequest) XXX_Size() int
func (*GETReadCategoryRequest) XXX_Unmarshal ¶
func (m *GETReadCategoryRequest) XXX_Unmarshal(b []byte) error
type GETReadCategoryResponse ¶
type GETReadCategoryResponse struct { Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GETReadCategoryResponse) Descriptor ¶
func (*GETReadCategoryResponse) Descriptor() ([]byte, []int)
func (*GETReadCategoryResponse) GetCategory ¶
func (m *GETReadCategoryResponse) GetCategory() *Category
func (*GETReadCategoryResponse) ProtoMessage ¶
func (*GETReadCategoryResponse) ProtoMessage()
func (*GETReadCategoryResponse) Reset ¶
func (m *GETReadCategoryResponse) Reset()
func (*GETReadCategoryResponse) String ¶
func (m *GETReadCategoryResponse) String() string
func (*GETReadCategoryResponse) XXX_DiscardUnknown ¶
func (m *GETReadCategoryResponse) XXX_DiscardUnknown()
func (*GETReadCategoryResponse) XXX_Marshal ¶
func (m *GETReadCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GETReadCategoryResponse) XXX_Merge ¶
func (m *GETReadCategoryResponse) XXX_Merge(src proto.Message)
func (*GETReadCategoryResponse) XXX_Size ¶
func (m *GETReadCategoryResponse) XXX_Size() int
func (*GETReadCategoryResponse) XXX_Unmarshal ¶
func (m *GETReadCategoryResponse) XXX_Unmarshal(b []byte) error
type POSTCreateCategoryFuture ¶
type POSTCreateCategoryFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
POSTCreateCategoryFuture is an intermediate future used for parallel requests with POSTCreateCategoryRequest
func (*POSTCreateCategoryFuture) DecodeResponse ¶
func (f *POSTCreateCategoryFuture) DecodeResponse() (*POSTCreateCategoryResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*POSTCreateCategoryFuture) Done ¶
func (f *POSTCreateCategoryFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type POSTCreateCategoryRequest ¶
type POSTCreateCategoryRequest 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"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*POSTCreateCategoryRequest) Descriptor ¶
func (*POSTCreateCategoryRequest) Descriptor() ([]byte, []int)
func (POSTCreateCategoryRequest) FullPath ¶
func (body POSTCreateCategoryRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*POSTCreateCategoryRequest) GetId ¶
func (m *POSTCreateCategoryRequest) GetId() string
func (*POSTCreateCategoryRequest) GetName ¶
func (m *POSTCreateCategoryRequest) GetName() string
func (*POSTCreateCategoryRequest) GetSlug ¶
func (m *POSTCreateCategoryRequest) GetSlug() string
func (POSTCreateCategoryRequest) Host ¶
func (body POSTCreateCategoryRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (POSTCreateCategoryRequest) Method ¶
func (body POSTCreateCategoryRequest) 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 (POSTCreateCategoryRequest) Path ¶
func (body POSTCreateCategoryRequest) Path() string
Path is the HTTP path to this endpoint
func (*POSTCreateCategoryRequest) ProtoMessage ¶
func (*POSTCreateCategoryRequest) ProtoMessage()
func (POSTCreateCategoryRequest) Request ¶
func (body POSTCreateCategoryRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*POSTCreateCategoryRequest) Reset ¶
func (m *POSTCreateCategoryRequest) Reset()
func (POSTCreateCategoryRequest) Response ¶
func (body POSTCreateCategoryRequest) Response(ctx context.Context) (*POSTCreateCategoryResponse, 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 (POSTCreateCategoryRequest) Send ¶
func (body POSTCreateCategoryRequest) Send(ctx context.Context) *POSTCreateCategoryFuture
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 (POSTCreateCategoryRequest) SendVia ¶
func (body POSTCreateCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateCategoryFuture
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 (POSTCreateCategoryRequest) ServiceName ¶
func (body POSTCreateCategoryRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*POSTCreateCategoryRequest) String ¶
func (m *POSTCreateCategoryRequest) String() string
func (*POSTCreateCategoryRequest) XXX_DiscardUnknown ¶
func (m *POSTCreateCategoryRequest) XXX_DiscardUnknown()
func (*POSTCreateCategoryRequest) XXX_Marshal ¶
func (m *POSTCreateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*POSTCreateCategoryRequest) XXX_Merge ¶
func (m *POSTCreateCategoryRequest) XXX_Merge(src proto.Message)
func (*POSTCreateCategoryRequest) XXX_Size ¶
func (m *POSTCreateCategoryRequest) XXX_Size() int
func (*POSTCreateCategoryRequest) XXX_Unmarshal ¶
func (m *POSTCreateCategoryRequest) XXX_Unmarshal(b []byte) error
type POSTCreateCategoryResponse ¶
type POSTCreateCategoryResponse struct { Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*POSTCreateCategoryResponse) Descriptor ¶
func (*POSTCreateCategoryResponse) Descriptor() ([]byte, []int)
func (*POSTCreateCategoryResponse) GetCategory ¶
func (m *POSTCreateCategoryResponse) GetCategory() *Category
func (*POSTCreateCategoryResponse) ProtoMessage ¶
func (*POSTCreateCategoryResponse) ProtoMessage()
func (*POSTCreateCategoryResponse) Reset ¶
func (m *POSTCreateCategoryResponse) Reset()
func (*POSTCreateCategoryResponse) String ¶
func (m *POSTCreateCategoryResponse) String() string
func (*POSTCreateCategoryResponse) XXX_DiscardUnknown ¶
func (m *POSTCreateCategoryResponse) XXX_DiscardUnknown()
func (*POSTCreateCategoryResponse) XXX_Marshal ¶
func (m *POSTCreateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*POSTCreateCategoryResponse) XXX_Merge ¶
func (m *POSTCreateCategoryResponse) XXX_Merge(src proto.Message)
func (*POSTCreateCategoryResponse) XXX_Size ¶
func (m *POSTCreateCategoryResponse) XXX_Size() int
func (*POSTCreateCategoryResponse) XXX_Unmarshal ¶
func (m *POSTCreateCategoryResponse) XXX_Unmarshal(b []byte) error
type PUTUpdateCategoryFuture ¶
type PUTUpdateCategoryFuture struct { Future *typhon.ResponseFuture Response *typhon.Response }
PUTUpdateCategoryFuture is an intermediate future used for parallel requests with PUTUpdateCategoryRequest
func (*PUTUpdateCategoryFuture) DecodeResponse ¶
func (f *PUTUpdateCategoryFuture) DecodeResponse() (*PUTUpdateCategoryResponse, error)
DecodeResponse waits for this future to be done and then decodes the response into a concrete type.
func (*PUTUpdateCategoryFuture) Done ¶
func (f *PUTUpdateCategoryFuture) Done()
Done waits for a response from a typhon future, and is safe to call multiple times in a row.
type PUTUpdateCategoryRequest ¶
type PUTUpdateCategoryRequest 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"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PUTUpdateCategoryRequest) Descriptor ¶
func (*PUTUpdateCategoryRequest) Descriptor() ([]byte, []int)
func (PUTUpdateCategoryRequest) FullPath ¶
func (body PUTUpdateCategoryRequest) FullPath() string
FullPath is the full routable URL to this service.
func (*PUTUpdateCategoryRequest) GetId ¶
func (m *PUTUpdateCategoryRequest) GetId() string
func (*PUTUpdateCategoryRequest) GetName ¶
func (m *PUTUpdateCategoryRequest) GetName() string
func (*PUTUpdateCategoryRequest) GetSlug ¶
func (m *PUTUpdateCategoryRequest) GetSlug() string
func (PUTUpdateCategoryRequest) Host ¶
func (body PUTUpdateCategoryRequest) Host() string
Host is the short-form service name, e.g. s-brand.
func (PUTUpdateCategoryRequest) Method ¶
func (body PUTUpdateCategoryRequest) 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 (PUTUpdateCategoryRequest) Path ¶
func (body PUTUpdateCategoryRequest) Path() string
Path is the HTTP path to this endpoint
func (*PUTUpdateCategoryRequest) ProtoMessage ¶
func (*PUTUpdateCategoryRequest) ProtoMessage()
func (PUTUpdateCategoryRequest) Request ¶
func (body PUTUpdateCategoryRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*PUTUpdateCategoryRequest) Reset ¶
func (m *PUTUpdateCategoryRequest) Reset()
func (PUTUpdateCategoryRequest) Response ¶
func (body PUTUpdateCategoryRequest) Response(ctx context.Context) (*PUTUpdateCategoryResponse, 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 (PUTUpdateCategoryRequest) Send ¶
func (body PUTUpdateCategoryRequest) Send(ctx context.Context) *PUTUpdateCategoryFuture
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 (PUTUpdateCategoryRequest) SendVia ¶
func (body PUTUpdateCategoryRequest) SendVia(ctx context.Context, svc typhon.Service) *PUTUpdateCategoryFuture
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 (PUTUpdateCategoryRequest) ServiceName ¶
func (body PUTUpdateCategoryRequest) ServiceName() string
ServiceName is the long-form service name, e.g. service.brand.
func (*PUTUpdateCategoryRequest) String ¶
func (m *PUTUpdateCategoryRequest) String() string
func (*PUTUpdateCategoryRequest) XXX_DiscardUnknown ¶
func (m *PUTUpdateCategoryRequest) XXX_DiscardUnknown()
func (*PUTUpdateCategoryRequest) XXX_Marshal ¶
func (m *PUTUpdateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PUTUpdateCategoryRequest) XXX_Merge ¶
func (m *PUTUpdateCategoryRequest) XXX_Merge(src proto.Message)
func (*PUTUpdateCategoryRequest) XXX_Size ¶
func (m *PUTUpdateCategoryRequest) XXX_Size() int
func (*PUTUpdateCategoryRequest) XXX_Unmarshal ¶
func (m *PUTUpdateCategoryRequest) XXX_Unmarshal(b []byte) error
type PUTUpdateCategoryResponse ¶
type PUTUpdateCategoryResponse struct { Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PUTUpdateCategoryResponse) Descriptor ¶
func (*PUTUpdateCategoryResponse) Descriptor() ([]byte, []int)
func (*PUTUpdateCategoryResponse) GetCategory ¶
func (m *PUTUpdateCategoryResponse) GetCategory() *Category
func (*PUTUpdateCategoryResponse) ProtoMessage ¶
func (*PUTUpdateCategoryResponse) ProtoMessage()
func (*PUTUpdateCategoryResponse) Reset ¶
func (m *PUTUpdateCategoryResponse) Reset()
func (*PUTUpdateCategoryResponse) String ¶
func (m *PUTUpdateCategoryResponse) String() string
func (*PUTUpdateCategoryResponse) XXX_DiscardUnknown ¶
func (m *PUTUpdateCategoryResponse) XXX_DiscardUnknown()
func (*PUTUpdateCategoryResponse) XXX_Marshal ¶
func (m *PUTUpdateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PUTUpdateCategoryResponse) XXX_Merge ¶
func (m *PUTUpdateCategoryResponse) XXX_Merge(src proto.Message)
func (*PUTUpdateCategoryResponse) XXX_Size ¶
func (m *PUTUpdateCategoryResponse) XXX_Size() int
func (*PUTUpdateCategoryResponse) XXX_Unmarshal ¶
func (m *PUTUpdateCategoryResponse) XXX_Unmarshal(b []byte) error