Documentation ¶
Overview ¶
Package image is a generated protocol buffer package.
It is generated from these files:
github.com/tomogoma/imagems/server/proto/image.proto
It has these top-level messages:
NewImageRequest NewImageResponse
Index ¶
- func RegisterImageHandler(s server.Server, hdlr ImageHandler, opts ...server.HandlerOption)
- func RegisterSubscriber(topic string, s server.Server, h interface{}, opts ...server.SubscriberOption) error
- type Image
- type ImageClient
- type ImageHandler
- type NewImageRequest
- func (*NewImageRequest) Descriptor() ([]byte, []int)
- func (m *NewImageRequest) GetFolder() string
- func (m *NewImageRequest) GetImage() []byte
- func (m *NewImageRequest) GetImageB64() string
- func (m *NewImageRequest) GetToken() string
- func (*NewImageRequest) ProtoMessage()
- func (m *NewImageRequest) Reset()
- func (m *NewImageRequest) String() string
- type NewImageResponse
- func (*NewImageResponse) Descriptor() ([]byte, []int)
- func (m *NewImageResponse) GetCode() int32
- func (m *NewImageResponse) GetDetail() string
- func (m *NewImageResponse) GetId() string
- func (m *NewImageResponse) GetImageURL() string
- func (m *NewImageResponse) GetServerTime() string
- func (*NewImageResponse) ProtoMessage()
- func (m *NewImageResponse) Reset()
- func (m *NewImageResponse) String() string
- type Publisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterImageHandler ¶
func RegisterImageHandler(s server.Server, hdlr ImageHandler, opts ...server.HandlerOption)
func RegisterSubscriber ¶
Types ¶
type Image ¶
type Image struct {
ImageHandler
}
func (*Image) NewImage ¶
func (h *Image) NewImage(ctx context.Context, in *NewImageRequest, out *NewImageResponse) error
type ImageClient ¶
type ImageClient interface {
NewImage(ctx context.Context, in *NewImageRequest, opts ...client.CallOption) (*NewImageResponse, error)
}
func NewImageClient ¶
func NewImageClient(serviceName string, c client.Client) ImageClient
type ImageHandler ¶
type ImageHandler interface {
NewImage(context.Context, *NewImageRequest, *NewImageResponse) error
}
type NewImageRequest ¶
type NewImageRequest struct { Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"` Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` ImageB64 string `protobuf:"bytes,3,opt,name=imageB64" json:"imageB64,omitempty"` Folder string `protobuf:"bytes,4,opt,name=folder" json:"folder,omitempty"` }
func (*NewImageRequest) Descriptor ¶
func (*NewImageRequest) Descriptor() ([]byte, []int)
func (*NewImageRequest) GetFolder ¶
func (m *NewImageRequest) GetFolder() string
func (*NewImageRequest) GetImage ¶
func (m *NewImageRequest) GetImage() []byte
func (*NewImageRequest) GetImageB64 ¶
func (m *NewImageRequest) GetImageB64() string
func (*NewImageRequest) GetToken ¶
func (m *NewImageRequest) GetToken() string
func (*NewImageRequest) ProtoMessage ¶
func (*NewImageRequest) ProtoMessage()
func (*NewImageRequest) Reset ¶
func (m *NewImageRequest) Reset()
func (*NewImageRequest) String ¶
func (m *NewImageRequest) String() string
type NewImageResponse ¶
type NewImageResponse struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code" json:"code,omitempty"` ServerTime string `protobuf:"bytes,3,opt,name=serverTime" json:"serverTime,omitempty"` ImageURL string `protobuf:"bytes,4,opt,name=imageURL" json:"imageURL,omitempty"` Detail string `protobuf:"bytes,5,opt,name=detail" json:"detail,omitempty"` }
func (*NewImageResponse) Descriptor ¶
func (*NewImageResponse) Descriptor() ([]byte, []int)
func (*NewImageResponse) GetCode ¶
func (m *NewImageResponse) GetCode() int32
func (*NewImageResponse) GetDetail ¶
func (m *NewImageResponse) GetDetail() string
func (*NewImageResponse) GetId ¶
func (m *NewImageResponse) GetId() string
func (*NewImageResponse) GetImageURL ¶
func (m *NewImageResponse) GetImageURL() string
func (*NewImageResponse) GetServerTime ¶
func (m *NewImageResponse) GetServerTime() string
func (*NewImageResponse) ProtoMessage ¶
func (*NewImageResponse) ProtoMessage()
func (*NewImageResponse) Reset ¶
func (m *NewImageResponse) Reset()
func (*NewImageResponse) String ¶
func (m *NewImageResponse) String() string
Click to show internal directories.
Click to hide internal directories.