Documentation
¶
Index ¶
- type GETReadImageFuture
- type GETReadImageRequest
- func (*GETReadImageRequest) Descriptor() ([]byte, []int)
- func (body GETReadImageRequest) FullPath() string
- func (m *GETReadImageRequest) GetFilename() string
- func (m *GETReadImageRequest) GetId() string
- func (body GETReadImageRequest) Host() string
- func (body GETReadImageRequest) Method() string
- func (body GETReadImageRequest) Path() string
- func (*GETReadImageRequest) ProtoMessage()
- func (body GETReadImageRequest) Request(ctx context.Context) typhon.Request
- func (m *GETReadImageRequest) Reset()
- func (body GETReadImageRequest) Response(ctx context.Context) (*GETReadImageResponse, error)
- func (body GETReadImageRequest) Send(ctx context.Context) *GETReadImageFuture
- func (body GETReadImageRequest) SendVia(ctx context.Context, svc typhon.Service) *GETReadImageFuture
- func (body GETReadImageRequest) ServiceName() string
- func (m *GETReadImageRequest) String() string
- func (m *GETReadImageRequest) XXX_DiscardUnknown()
- func (m *GETReadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETReadImageRequest) XXX_Merge(src proto.Message)
- func (m *GETReadImageRequest) XXX_Size() int
- func (m *GETReadImageRequest) XXX_Unmarshal(b []byte) error
- type GETReadImageResponse
- func (*GETReadImageResponse) Descriptor() ([]byte, []int)
- func (m *GETReadImageResponse) GetImage() *Image
- func (*GETReadImageResponse) ProtoMessage()
- func (m *GETReadImageResponse) Reset()
- func (m *GETReadImageResponse) String() string
- func (m *GETReadImageResponse) XXX_DiscardUnknown()
- func (m *GETReadImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GETReadImageResponse) XXX_Merge(src proto.Message)
- func (m *GETReadImageResponse) XXX_Size() int
- func (m *GETReadImageResponse) XXX_Unmarshal(b []byte) error
- type Image
- func (*Image) Descriptor() ([]byte, []int)
- func (m *Image) GetCreatedAt() string
- func (m *Image) GetFilename() string
- func (m *Image) GetId() string
- func (m *Image) GetSubjectId() string
- func (m *Image) GetSubjectType() string
- func (m *Image) GetType() string
- func (m *Image) GetUpdatedAt() string
- func (m *Image) GetUserId() string
- func (*Image) ProtoMessage()
- func (m *Image) Reset()
- func (m *Image) String() string
- func (m *Image) XXX_DiscardUnknown()
- func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Image) XXX_Merge(src proto.Message)
- func (m *Image) XXX_Size() int
- func (m *Image) XXX_Unmarshal(b []byte) error
- type POSTCreateImageFuture
- type POSTCreateImageRequest
- func (*POSTCreateImageRequest) Descriptor() ([]byte, []int)
- func (body POSTCreateImageRequest) FullPath() string
- func (m *POSTCreateImageRequest) GetFilename() string
- func (m *POSTCreateImageRequest) GetId() string
- func (m *POSTCreateImageRequest) GetName() string
- func (body POSTCreateImageRequest) Host() string
- func (body POSTCreateImageRequest) Method() string
- func (body POSTCreateImageRequest) Path() string
- func (*POSTCreateImageRequest) ProtoMessage()
- func (body POSTCreateImageRequest) Request(ctx context.Context) typhon.Request
- func (m *POSTCreateImageRequest) Reset()
- func (body POSTCreateImageRequest) Response(ctx context.Context) (*POSTCreateImageResponse, error)
- func (body POSTCreateImageRequest) Send(ctx context.Context) *POSTCreateImageFuture
- func (body POSTCreateImageRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateImageFuture
- func (body POSTCreateImageRequest) ServiceName() string
- func (m *POSTCreateImageRequest) String() string
- func (m *POSTCreateImageRequest) XXX_DiscardUnknown()
- func (m *POSTCreateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateImageRequest) XXX_Merge(src proto.Message)
- func (m *POSTCreateImageRequest) XXX_Size() int
- func (m *POSTCreateImageRequest) XXX_Unmarshal(b []byte) error
- type POSTCreateImageResponse
- func (*POSTCreateImageResponse) Descriptor() ([]byte, []int)
- func (m *POSTCreateImageResponse) GetImage() *Image
- func (*POSTCreateImageResponse) ProtoMessage()
- func (m *POSTCreateImageResponse) Reset()
- func (m *POSTCreateImageResponse) String() string
- func (m *POSTCreateImageResponse) XXX_DiscardUnknown()
- func (m *POSTCreateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateImageResponse) XXX_Merge(src proto.Message)
- func (m *POSTCreateImageResponse) XXX_Size() int
- func (m *POSTCreateImageResponse) XXX_Unmarshal(b []byte) error
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 ¶
func (body GETReadImageRequest) Response(ctx context.Context) (*GETReadImageResponse, 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 (GETReadImageRequest) Send ¶
func (body GETReadImageRequest) Send(ctx context.Context) *GETReadImageFuture
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 ¶
func (body GETReadImageRequest) SendVia(ctx context.Context, svc typhon.Service) *GETReadImageFuture
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) GetCreatedAt ¶
func (*Image) GetFilename ¶
func (*Image) GetSubjectId ¶
func (*Image) GetSubjectType ¶
func (*Image) GetUpdatedAt ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) XXX_DiscardUnknown ¶
func (m *Image) XXX_DiscardUnknown()
func (*Image) XXX_Marshal ¶
func (*Image) XXX_Unmarshal ¶
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 ¶
func (body POSTCreateImageRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*POSTCreateImageRequest) Reset ¶
func (m *POSTCreateImageRequest) Reset()
func (POSTCreateImageRequest) Response ¶
func (body POSTCreateImageRequest) Response(ctx context.Context) (*POSTCreateImageResponse, 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 (POSTCreateImageRequest) Send ¶
func (body POSTCreateImageRequest) Send(ctx context.Context) *POSTCreateImageFuture
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 ¶
func (body POSTCreateImageRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateImageFuture
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