imageproto

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 GETReadImageFuture

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

GETReadImageFuture is an intermediate future used for parallel requests with GETReadImageRequest

func (*GETReadImageFuture) DecodeResponse

func (f *GETReadImageFuture) DecodeResponse() (*GETReadImageResponse, error)

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

func (*GETReadImageFuture) Done

func (f *GETReadImageFuture) Done()

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

type GETReadImageRequest

type GETReadImageRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Filename             string   `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETReadImageRequest) Descriptor

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

func (GETReadImageRequest) FullPath

func (body GETReadImageRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*GETReadImageRequest) GetFilename

func (m *GETReadImageRequest) GetFilename() string

func (*GETReadImageRequest) GetId

func (m *GETReadImageRequest) GetId() string

func (GETReadImageRequest) Host

func (body GETReadImageRequest) Host() string

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

func (GETReadImageRequest) Method

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

func (body GETReadImageRequest) Path() string

Path is the HTTP path to this endpoint

func (*GETReadImageRequest) ProtoMessage

func (*GETReadImageRequest) ProtoMessage()

func (GETReadImageRequest) Request

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

Request returns a typhon request for this type.

func (*GETReadImageRequest) Reset

func (m *GETReadImageRequest) Reset()

func (GETReadImageRequest) 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 (GETReadImageRequest) 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 (GETReadImageRequest) 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 (GETReadImageRequest) ServiceName

func (body GETReadImageRequest) ServiceName() string

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

func (*GETReadImageRequest) String

func (m *GETReadImageRequest) String() string

func (*GETReadImageRequest) XXX_DiscardUnknown

func (m *GETReadImageRequest) XXX_DiscardUnknown()

func (*GETReadImageRequest) XXX_Marshal

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

func (*GETReadImageRequest) XXX_Merge

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

func (*GETReadImageRequest) XXX_Size

func (m *GETReadImageRequest) XXX_Size() int

func (*GETReadImageRequest) XXX_Unmarshal

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

type GETReadImageResponse

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

func (*GETReadImageResponse) Descriptor

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

func (*GETReadImageResponse) GetImage

func (m *GETReadImageResponse) GetImage() *Image

func (*GETReadImageResponse) ProtoMessage

func (*GETReadImageResponse) ProtoMessage()

func (*GETReadImageResponse) Reset

func (m *GETReadImageResponse) Reset()

func (*GETReadImageResponse) String

func (m *GETReadImageResponse) String() string

func (*GETReadImageResponse) XXX_DiscardUnknown

func (m *GETReadImageResponse) XXX_DiscardUnknown()

func (*GETReadImageResponse) XXX_Marshal

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

func (*GETReadImageResponse) XXX_Merge

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

func (*GETReadImageResponse) XXX_Size

func (m *GETReadImageResponse) XXX_Size() int

func (*GETReadImageResponse) XXX_Unmarshal

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

type Image

type Image struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Filename    string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	Type        string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	UserId      string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	SubjectType string `protobuf:"bytes,5,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"`
	SubjectId   string `protobuf:"bytes,6,opt,name=subject_id,json=subjectId,proto3" json:"subject_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 (*Image) Descriptor

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

func (*Image) GetCreatedAt

func (m *Image) GetCreatedAt() string

func (*Image) GetFilename

func (m *Image) GetFilename() string

func (*Image) GetId

func (m *Image) GetId() string

func (*Image) GetSubjectId

func (m *Image) GetSubjectId() string

func (*Image) GetSubjectType

func (m *Image) GetSubjectType() string

func (*Image) GetType

func (m *Image) GetType() string

func (*Image) GetUpdatedAt

func (m *Image) GetUpdatedAt() string

func (*Image) GetUserId

func (m *Image) GetUserId() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

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

func (*Image) XXX_Merge

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

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

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

type POSTCreateImageFuture

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

POSTCreateImageFuture is an intermediate future used for parallel requests with POSTCreateImageRequest

func (*POSTCreateImageFuture) DecodeResponse

func (f *POSTCreateImageFuture) DecodeResponse() (*POSTCreateImageResponse, error)

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

func (*POSTCreateImageFuture) Done

func (f *POSTCreateImageFuture) Done()

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

type POSTCreateImageRequest

type POSTCreateImageRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Filename             string   `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,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 (*POSTCreateImageRequest) Descriptor

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

func (POSTCreateImageRequest) FullPath

func (body POSTCreateImageRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*POSTCreateImageRequest) GetFilename

func (m *POSTCreateImageRequest) GetFilename() string

func (*POSTCreateImageRequest) GetId

func (m *POSTCreateImageRequest) GetId() string

func (*POSTCreateImageRequest) GetName

func (m *POSTCreateImageRequest) GetName() string

func (POSTCreateImageRequest) Host

func (body POSTCreateImageRequest) Host() string

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

func (POSTCreateImageRequest) Method

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

func (body POSTCreateImageRequest) Path() string

Path is the HTTP path to this endpoint

func (*POSTCreateImageRequest) ProtoMessage

func (*POSTCreateImageRequest) ProtoMessage()

func (POSTCreateImageRequest) Request

Request returns a typhon request for this type.

func (*POSTCreateImageRequest) Reset

func (m *POSTCreateImageRequest) Reset()

func (POSTCreateImageRequest) 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 (POSTCreateImageRequest) 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 (POSTCreateImageRequest) 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 (POSTCreateImageRequest) ServiceName

func (body POSTCreateImageRequest) ServiceName() string

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

func (*POSTCreateImageRequest) String

func (m *POSTCreateImageRequest) String() string

func (*POSTCreateImageRequest) XXX_DiscardUnknown

func (m *POSTCreateImageRequest) XXX_DiscardUnknown()

func (*POSTCreateImageRequest) XXX_Marshal

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

func (*POSTCreateImageRequest) XXX_Merge

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

func (*POSTCreateImageRequest) XXX_Size

func (m *POSTCreateImageRequest) XXX_Size() int

func (*POSTCreateImageRequest) XXX_Unmarshal

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

type POSTCreateImageResponse

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

func (*POSTCreateImageResponse) Descriptor

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

func (*POSTCreateImageResponse) GetImage

func (m *POSTCreateImageResponse) GetImage() *Image

func (*POSTCreateImageResponse) ProtoMessage

func (*POSTCreateImageResponse) ProtoMessage()

func (*POSTCreateImageResponse) Reset

func (m *POSTCreateImageResponse) Reset()

func (*POSTCreateImageResponse) String

func (m *POSTCreateImageResponse) String() string

func (*POSTCreateImageResponse) XXX_DiscardUnknown

func (m *POSTCreateImageResponse) XXX_DiscardUnknown()

func (*POSTCreateImageResponse) XXX_Marshal

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

func (*POSTCreateImageResponse) XXX_Merge

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

func (*POSTCreateImageResponse) XXX_Size

func (m *POSTCreateImageResponse) XXX_Size() int

func (*POSTCreateImageResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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