brandproto

package
v0.0.0-...-73856a8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brand

type Brand 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"`
	ShortName   string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	Name        string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	ImageId     string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,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 (*Brand) Descriptor

func (*Brand) Descriptor() ([]byte, []int)

func (*Brand) GetCreatedAt

func (m *Brand) GetCreatedAt() string

func (*Brand) GetDescription

func (m *Brand) GetDescription() string

func (*Brand) GetId

func (m *Brand) GetId() string

func (*Brand) GetImageId

func (m *Brand) GetImageId() string

func (*Brand) GetName

func (m *Brand) GetName() string

func (*Brand) GetShortName

func (m *Brand) GetShortName() string

func (*Brand) GetSlug

func (m *Brand) GetSlug() string

func (*Brand) GetUpdatedAt

func (m *Brand) GetUpdatedAt() string

func (*Brand) ProtoMessage

func (*Brand) ProtoMessage()

func (*Brand) Reset

func (m *Brand) Reset()

func (*Brand) String

func (m *Brand) String() string

func (*Brand) XXX_DiscardUnknown

func (m *Brand) XXX_DiscardUnknown()

func (*Brand) XXX_Marshal

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

func (*Brand) XXX_Merge

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

func (*Brand) XXX_Size

func (m *Brand) XXX_Size() int

func (*Brand) XXX_Unmarshal

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

type DELETERemoveBrandFuture

type DELETERemoveBrandFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

DELETERemoveBrandFuture is an intermediate future used for parallel requests with DELETERemoveBrandRequest

func (*DELETERemoveBrandFuture) DecodeResponse

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*DELETERemoveBrandFuture) Done

func (f *DELETERemoveBrandFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type DELETERemoveBrandRequest

type DELETERemoveBrandRequest 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 (*DELETERemoveBrandRequest) Descriptor

func (*DELETERemoveBrandRequest) Descriptor() ([]byte, []int)

func (DELETERemoveBrandRequest) FullPath

func (body DELETERemoveBrandRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*DELETERemoveBrandRequest) GetId

func (m *DELETERemoveBrandRequest) GetId() string

func (DELETERemoveBrandRequest) Host

func (body DELETERemoveBrandRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (DELETERemoveBrandRequest) Method

func (body DELETERemoveBrandRequest) 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 (DELETERemoveBrandRequest) Path

func (body DELETERemoveBrandRequest) Path() string

Path is the HTTP path to this endpoint

func (*DELETERemoveBrandRequest) ProtoMessage

func (*DELETERemoveBrandRequest) ProtoMessage()

func (DELETERemoveBrandRequest) Request

Request returns a typhon request for this type.

func (*DELETERemoveBrandRequest) Reset

func (m *DELETERemoveBrandRequest) Reset()

func (DELETERemoveBrandRequest) Response

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 (DELETERemoveBrandRequest) Send

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 (DELETERemoveBrandRequest) SendVia

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 (DELETERemoveBrandRequest) ServiceName

func (body DELETERemoveBrandRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*DELETERemoveBrandRequest) String

func (m *DELETERemoveBrandRequest) String() string

func (*DELETERemoveBrandRequest) XXX_DiscardUnknown

func (m *DELETERemoveBrandRequest) XXX_DiscardUnknown()

func (*DELETERemoveBrandRequest) XXX_Marshal

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

func (*DELETERemoveBrandRequest) XXX_Merge

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

func (*DELETERemoveBrandRequest) XXX_Size

func (m *DELETERemoveBrandRequest) XXX_Size() int

func (*DELETERemoveBrandRequest) XXX_Unmarshal

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

type DELETERemoveBrandResponse

type DELETERemoveBrandResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DELETERemoveBrandResponse) Descriptor

func (*DELETERemoveBrandResponse) Descriptor() ([]byte, []int)

func (*DELETERemoveBrandResponse) ProtoMessage

func (*DELETERemoveBrandResponse) ProtoMessage()

func (*DELETERemoveBrandResponse) Reset

func (m *DELETERemoveBrandResponse) Reset()

func (*DELETERemoveBrandResponse) String

func (m *DELETERemoveBrandResponse) String() string

func (*DELETERemoveBrandResponse) XXX_DiscardUnknown

func (m *DELETERemoveBrandResponse) XXX_DiscardUnknown()

func (*DELETERemoveBrandResponse) XXX_Marshal

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

func (*DELETERemoveBrandResponse) XXX_Merge

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

func (*DELETERemoveBrandResponse) XXX_Size

func (m *DELETERemoveBrandResponse) XXX_Size() int

func (*DELETERemoveBrandResponse) XXX_Unmarshal

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

type GETListBrandsFuture

type GETListBrandsFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

GETListBrandsFuture is an intermediate future used for parallel requests with GETListBrandsRequest

func (*GETListBrandsFuture) DecodeResponse

func (f *GETListBrandsFuture) DecodeResponse() (*GETListBrandsResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*GETListBrandsFuture) Done

func (f *GETListBrandsFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type GETListBrandsRequest

type GETListBrandsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETListBrandsRequest) Descriptor

func (*GETListBrandsRequest) Descriptor() ([]byte, []int)

func (GETListBrandsRequest) FullPath

func (body GETListBrandsRequest) FullPath() string

FullPath is the full routable URL to this service.

func (GETListBrandsRequest) Host

func (body GETListBrandsRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (GETListBrandsRequest) Method

func (body GETListBrandsRequest) 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 (GETListBrandsRequest) Path

func (body GETListBrandsRequest) Path() string

Path is the HTTP path to this endpoint

func (*GETListBrandsRequest) ProtoMessage

func (*GETListBrandsRequest) ProtoMessage()

func (GETListBrandsRequest) Request

Request returns a typhon request for this type.

func (*GETListBrandsRequest) Reset

func (m *GETListBrandsRequest) Reset()

func (GETListBrandsRequest) Response

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 (GETListBrandsRequest) Send

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 (GETListBrandsRequest) SendVia

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 (GETListBrandsRequest) ServiceName

func (body GETListBrandsRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*GETListBrandsRequest) String

func (m *GETListBrandsRequest) String() string

func (*GETListBrandsRequest) XXX_DiscardUnknown

func (m *GETListBrandsRequest) XXX_DiscardUnknown()

func (*GETListBrandsRequest) XXX_Marshal

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

func (*GETListBrandsRequest) XXX_Merge

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

func (*GETListBrandsRequest) XXX_Size

func (m *GETListBrandsRequest) XXX_Size() int

func (*GETListBrandsRequest) XXX_Unmarshal

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

type GETListBrandsResponse

type GETListBrandsResponse struct {
	Brands               []*Brand `protobuf:"bytes,1,rep,name=brands,proto3" json:"brands,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETListBrandsResponse) Descriptor

func (*GETListBrandsResponse) Descriptor() ([]byte, []int)

func (*GETListBrandsResponse) GetBrands

func (m *GETListBrandsResponse) GetBrands() []*Brand

func (*GETListBrandsResponse) ProtoMessage

func (*GETListBrandsResponse) ProtoMessage()

func (*GETListBrandsResponse) Reset

func (m *GETListBrandsResponse) Reset()

func (*GETListBrandsResponse) String

func (m *GETListBrandsResponse) String() string

func (*GETListBrandsResponse) XXX_DiscardUnknown

func (m *GETListBrandsResponse) XXX_DiscardUnknown()

func (*GETListBrandsResponse) XXX_Marshal

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

func (*GETListBrandsResponse) XXX_Merge

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

func (*GETListBrandsResponse) XXX_Size

func (m *GETListBrandsResponse) XXX_Size() int

func (*GETListBrandsResponse) XXX_Unmarshal

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

type GETReadBrandFuture

type GETReadBrandFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

GETReadBrandFuture is an intermediate future used for parallel requests with GETReadBrandRequest

func (*GETReadBrandFuture) DecodeResponse

func (f *GETReadBrandFuture) DecodeResponse() (*GETReadBrandResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*GETReadBrandFuture) Done

func (f *GETReadBrandFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type GETReadBrandRequest

type GETReadBrandRequest 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"`
	ShortName            string   `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETReadBrandRequest) Descriptor

func (*GETReadBrandRequest) Descriptor() ([]byte, []int)

func (GETReadBrandRequest) FullPath

func (body GETReadBrandRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*GETReadBrandRequest) GetId

func (m *GETReadBrandRequest) GetId() string

func (*GETReadBrandRequest) GetShortName

func (m *GETReadBrandRequest) GetShortName() string

func (*GETReadBrandRequest) GetSlug

func (m *GETReadBrandRequest) GetSlug() string

func (GETReadBrandRequest) Host

func (body GETReadBrandRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (GETReadBrandRequest) Method

func (body GETReadBrandRequest) 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 (GETReadBrandRequest) Path

func (body GETReadBrandRequest) Path() string

Path is the HTTP path to this endpoint

func (*GETReadBrandRequest) ProtoMessage

func (*GETReadBrandRequest) ProtoMessage()

func (GETReadBrandRequest) Request

func (body GETReadBrandRequest) Request(ctx context.Context) typhon.Request

Request returns a typhon request for this type.

func (*GETReadBrandRequest) Reset

func (m *GETReadBrandRequest) Reset()

func (GETReadBrandRequest) Response

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 (GETReadBrandRequest) Send

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 (GETReadBrandRequest) SendVia

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 (GETReadBrandRequest) ServiceName

func (body GETReadBrandRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*GETReadBrandRequest) String

func (m *GETReadBrandRequest) String() string

func (*GETReadBrandRequest) XXX_DiscardUnknown

func (m *GETReadBrandRequest) XXX_DiscardUnknown()

func (*GETReadBrandRequest) XXX_Marshal

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

func (*GETReadBrandRequest) XXX_Merge

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

func (*GETReadBrandRequest) XXX_Size

func (m *GETReadBrandRequest) XXX_Size() int

func (*GETReadBrandRequest) XXX_Unmarshal

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

type GETReadBrandResponse

type GETReadBrandResponse struct {
	Brand                *Brand   `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETReadBrandResponse) Descriptor

func (*GETReadBrandResponse) Descriptor() ([]byte, []int)

func (*GETReadBrandResponse) GetBrand

func (m *GETReadBrandResponse) GetBrand() *Brand

func (*GETReadBrandResponse) ProtoMessage

func (*GETReadBrandResponse) ProtoMessage()

func (*GETReadBrandResponse) Reset

func (m *GETReadBrandResponse) Reset()

func (*GETReadBrandResponse) String

func (m *GETReadBrandResponse) String() string

func (*GETReadBrandResponse) XXX_DiscardUnknown

func (m *GETReadBrandResponse) XXX_DiscardUnknown()

func (*GETReadBrandResponse) XXX_Marshal

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

func (*GETReadBrandResponse) XXX_Merge

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

func (*GETReadBrandResponse) XXX_Size

func (m *GETReadBrandResponse) XXX_Size() int

func (*GETReadBrandResponse) XXX_Unmarshal

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

type POSTCreateBrandFuture

type POSTCreateBrandFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

POSTCreateBrandFuture is an intermediate future used for parallel requests with POSTCreateBrandRequest

func (*POSTCreateBrandFuture) DecodeResponse

func (f *POSTCreateBrandFuture) DecodeResponse() (*POSTCreateBrandResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*POSTCreateBrandFuture) Done

func (f *POSTCreateBrandFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type POSTCreateBrandRequest

type POSTCreateBrandRequest 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"`
	ShortName            string   `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Description          string   `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	ImageId              string   `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*POSTCreateBrandRequest) Descriptor

func (*POSTCreateBrandRequest) Descriptor() ([]byte, []int)

func (POSTCreateBrandRequest) FullPath

func (body POSTCreateBrandRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*POSTCreateBrandRequest) GetDescription

func (m *POSTCreateBrandRequest) GetDescription() string

func (*POSTCreateBrandRequest) GetId

func (m *POSTCreateBrandRequest) GetId() string

func (*POSTCreateBrandRequest) GetImageId

func (m *POSTCreateBrandRequest) GetImageId() string

func (*POSTCreateBrandRequest) GetName

func (m *POSTCreateBrandRequest) GetName() string

func (*POSTCreateBrandRequest) GetShortName

func (m *POSTCreateBrandRequest) GetShortName() string

func (*POSTCreateBrandRequest) GetSlug

func (m *POSTCreateBrandRequest) GetSlug() string

func (POSTCreateBrandRequest) Host

func (body POSTCreateBrandRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (POSTCreateBrandRequest) Method

func (body POSTCreateBrandRequest) 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 (POSTCreateBrandRequest) Path

func (body POSTCreateBrandRequest) Path() string

Path is the HTTP path to this endpoint

func (*POSTCreateBrandRequest) ProtoMessage

func (*POSTCreateBrandRequest) ProtoMessage()

func (POSTCreateBrandRequest) Request

Request returns a typhon request for this type.

func (*POSTCreateBrandRequest) Reset

func (m *POSTCreateBrandRequest) Reset()

func (POSTCreateBrandRequest) Response

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 (POSTCreateBrandRequest) Send

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 (POSTCreateBrandRequest) SendVia

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 (POSTCreateBrandRequest) ServiceName

func (body POSTCreateBrandRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*POSTCreateBrandRequest) String

func (m *POSTCreateBrandRequest) String() string

func (*POSTCreateBrandRequest) XXX_DiscardUnknown

func (m *POSTCreateBrandRequest) XXX_DiscardUnknown()

func (*POSTCreateBrandRequest) XXX_Marshal

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

func (*POSTCreateBrandRequest) XXX_Merge

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

func (*POSTCreateBrandRequest) XXX_Size

func (m *POSTCreateBrandRequest) XXX_Size() int

func (*POSTCreateBrandRequest) XXX_Unmarshal

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

type POSTCreateBrandResponse

type POSTCreateBrandResponse struct {
	Brand                *Brand   `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*POSTCreateBrandResponse) Descriptor

func (*POSTCreateBrandResponse) Descriptor() ([]byte, []int)

func (*POSTCreateBrandResponse) GetBrand

func (m *POSTCreateBrandResponse) GetBrand() *Brand

func (*POSTCreateBrandResponse) ProtoMessage

func (*POSTCreateBrandResponse) ProtoMessage()

func (*POSTCreateBrandResponse) Reset

func (m *POSTCreateBrandResponse) Reset()

func (*POSTCreateBrandResponse) String

func (m *POSTCreateBrandResponse) String() string

func (*POSTCreateBrandResponse) XXX_DiscardUnknown

func (m *POSTCreateBrandResponse) XXX_DiscardUnknown()

func (*POSTCreateBrandResponse) XXX_Marshal

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

func (*POSTCreateBrandResponse) XXX_Merge

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

func (*POSTCreateBrandResponse) XXX_Size

func (m *POSTCreateBrandResponse) XXX_Size() int

func (*POSTCreateBrandResponse) XXX_Unmarshal

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

type PUTUpdateBrandFuture

type PUTUpdateBrandFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

PUTUpdateBrandFuture is an intermediate future used for parallel requests with PUTUpdateBrandRequest

func (*PUTUpdateBrandFuture) DecodeResponse

func (f *PUTUpdateBrandFuture) DecodeResponse() (*PUTUpdateBrandResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*PUTUpdateBrandFuture) Done

func (f *PUTUpdateBrandFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type PUTUpdateBrandRequest

type PUTUpdateBrandRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description          string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	ImageId              string   `protobuf:"bytes,4,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PUTUpdateBrandRequest) Descriptor

func (*PUTUpdateBrandRequest) Descriptor() ([]byte, []int)

func (PUTUpdateBrandRequest) FullPath

func (body PUTUpdateBrandRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*PUTUpdateBrandRequest) GetDescription

func (m *PUTUpdateBrandRequest) GetDescription() string

func (*PUTUpdateBrandRequest) GetId

func (m *PUTUpdateBrandRequest) GetId() string

func (*PUTUpdateBrandRequest) GetImageId

func (m *PUTUpdateBrandRequest) GetImageId() string

func (*PUTUpdateBrandRequest) GetName

func (m *PUTUpdateBrandRequest) GetName() string

func (PUTUpdateBrandRequest) Host

func (body PUTUpdateBrandRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (PUTUpdateBrandRequest) Method

func (body PUTUpdateBrandRequest) 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 (PUTUpdateBrandRequest) Path

func (body PUTUpdateBrandRequest) Path() string

Path is the HTTP path to this endpoint

func (*PUTUpdateBrandRequest) ProtoMessage

func (*PUTUpdateBrandRequest) ProtoMessage()

func (PUTUpdateBrandRequest) Request

Request returns a typhon request for this type.

func (*PUTUpdateBrandRequest) Reset

func (m *PUTUpdateBrandRequest) Reset()

func (PUTUpdateBrandRequest) Response

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 (PUTUpdateBrandRequest) Send

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 (PUTUpdateBrandRequest) SendVia

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 (PUTUpdateBrandRequest) ServiceName

func (body PUTUpdateBrandRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*PUTUpdateBrandRequest) String

func (m *PUTUpdateBrandRequest) String() string

func (*PUTUpdateBrandRequest) XXX_DiscardUnknown

func (m *PUTUpdateBrandRequest) XXX_DiscardUnknown()

func (*PUTUpdateBrandRequest) XXX_Marshal

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

func (*PUTUpdateBrandRequest) XXX_Merge

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

func (*PUTUpdateBrandRequest) XXX_Size

func (m *PUTUpdateBrandRequest) XXX_Size() int

func (*PUTUpdateBrandRequest) XXX_Unmarshal

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

type PUTUpdateBrandResponse

type PUTUpdateBrandResponse struct {
	Brand                *Brand   `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PUTUpdateBrandResponse) Descriptor

func (*PUTUpdateBrandResponse) Descriptor() ([]byte, []int)

func (*PUTUpdateBrandResponse) GetBrand

func (m *PUTUpdateBrandResponse) GetBrand() *Brand

func (*PUTUpdateBrandResponse) ProtoMessage

func (*PUTUpdateBrandResponse) ProtoMessage()

func (*PUTUpdateBrandResponse) Reset

func (m *PUTUpdateBrandResponse) Reset()

func (*PUTUpdateBrandResponse) String

func (m *PUTUpdateBrandResponse) String() string

func (*PUTUpdateBrandResponse) XXX_DiscardUnknown

func (m *PUTUpdateBrandResponse) XXX_DiscardUnknown()

func (*PUTUpdateBrandResponse) XXX_Marshal

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

func (*PUTUpdateBrandResponse) XXX_Merge

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

func (*PUTUpdateBrandResponse) XXX_Size

func (m *PUTUpdateBrandResponse) XXX_Size() int

func (*PUTUpdateBrandResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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