image

package
v0.0.0-...-38d2dd1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 6 Imported by: 0

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

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

func RegisterSubscriber(topic string, s server.Server, h interface{}, opts ...server.SubscriberOption) error

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

type Publisher

type Publisher interface {
	Publish(ctx context.Context, msg interface{}, opts ...client.PublishOption) error
}

func NewPublisher

func NewPublisher(topic string, c client.Client) Publisher

Jump to

Keyboard shortcuts

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