go_micro_srv_image

package
v0.0.0-...-834d4d8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterImageHandler

func RegisterImageHandler(s server.Server, hdlr ImageHandler, opts ...server.HandlerOption) error

Types

type CreateAlbumReq

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

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

func (*CreateAlbumReq) GetId

func (m *CreateAlbumReq) GetId() string

func (*CreateAlbumReq) ProtoMessage

func (*CreateAlbumReq) ProtoMessage()

func (*CreateAlbumReq) Reset

func (m *CreateAlbumReq) Reset()

func (*CreateAlbumReq) String

func (m *CreateAlbumReq) String() string

func (*CreateAlbumReq) XXX_DiscardUnknown

func (m *CreateAlbumReq) XXX_DiscardUnknown()

func (*CreateAlbumReq) XXX_Marshal

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

func (*CreateAlbumReq) XXX_Merge

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

func (*CreateAlbumReq) XXX_Size

func (m *CreateAlbumReq) XXX_Size() int

func (*CreateAlbumReq) XXX_Unmarshal

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

type CreateAlbumResp

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

func (*CreateAlbumResp) Descriptor

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

func (*CreateAlbumResp) ProtoMessage

func (*CreateAlbumResp) ProtoMessage()

func (*CreateAlbumResp) Reset

func (m *CreateAlbumResp) Reset()

func (*CreateAlbumResp) String

func (m *CreateAlbumResp) String() string

func (*CreateAlbumResp) XXX_DiscardUnknown

func (m *CreateAlbumResp) XXX_DiscardUnknown()

func (*CreateAlbumResp) XXX_Marshal

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

func (*CreateAlbumResp) XXX_Merge

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

func (*CreateAlbumResp) XXX_Size

func (m *CreateAlbumResp) XXX_Size() int

func (*CreateAlbumResp) XXX_Unmarshal

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

type DeleteAlbumReq

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

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

func (*DeleteAlbumReq) GetId

func (m *DeleteAlbumReq) GetId() string

func (*DeleteAlbumReq) ProtoMessage

func (*DeleteAlbumReq) ProtoMessage()

func (*DeleteAlbumReq) Reset

func (m *DeleteAlbumReq) Reset()

func (*DeleteAlbumReq) String

func (m *DeleteAlbumReq) String() string

func (*DeleteAlbumReq) XXX_DiscardUnknown

func (m *DeleteAlbumReq) XXX_DiscardUnknown()

func (*DeleteAlbumReq) XXX_Marshal

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

func (*DeleteAlbumReq) XXX_Merge

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

func (*DeleteAlbumReq) XXX_Size

func (m *DeleteAlbumReq) XXX_Size() int

func (*DeleteAlbumReq) XXX_Unmarshal

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

type DeleteAlbumResp

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

func (*DeleteAlbumResp) Descriptor

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

func (*DeleteAlbumResp) ProtoMessage

func (*DeleteAlbumResp) ProtoMessage()

func (*DeleteAlbumResp) Reset

func (m *DeleteAlbumResp) Reset()

func (*DeleteAlbumResp) String

func (m *DeleteAlbumResp) String() string

func (*DeleteAlbumResp) XXX_DiscardUnknown

func (m *DeleteAlbumResp) XXX_DiscardUnknown()

func (*DeleteAlbumResp) XXX_Marshal

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

func (*DeleteAlbumResp) XXX_Merge

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

func (*DeleteAlbumResp) XXX_Size

func (m *DeleteAlbumResp) XXX_Size() int

func (*DeleteAlbumResp) XXX_Unmarshal

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

type DeleteImageReq

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

func (*DeleteImageReq) Descriptor

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

func (*DeleteImageReq) GetAlbumId

func (m *DeleteImageReq) GetAlbumId() string

func (*DeleteImageReq) GetId

func (m *DeleteImageReq) GetId() string

func (*DeleteImageReq) ProtoMessage

func (*DeleteImageReq) ProtoMessage()

func (*DeleteImageReq) Reset

func (m *DeleteImageReq) Reset()

func (*DeleteImageReq) String

func (m *DeleteImageReq) String() string

func (*DeleteImageReq) XXX_DiscardUnknown

func (m *DeleteImageReq) XXX_DiscardUnknown()

func (*DeleteImageReq) XXX_Marshal

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

func (*DeleteImageReq) XXX_Merge

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

func (*DeleteImageReq) XXX_Size

func (m *DeleteImageReq) XXX_Size() int

func (*DeleteImageReq) XXX_Unmarshal

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

type DeleteImageResp

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

func (*DeleteImageResp) Descriptor

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

func (*DeleteImageResp) ProtoMessage

func (*DeleteImageResp) ProtoMessage()

func (*DeleteImageResp) Reset

func (m *DeleteImageResp) Reset()

func (*DeleteImageResp) String

func (m *DeleteImageResp) String() string

func (*DeleteImageResp) XXX_DiscardUnknown

func (m *DeleteImageResp) XXX_DiscardUnknown()

func (*DeleteImageResp) XXX_Marshal

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

func (*DeleteImageResp) XXX_Merge

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

func (*DeleteImageResp) XXX_Size

func (m *DeleteImageResp) XXX_Size() int

func (*DeleteImageResp) XXX_Unmarshal

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

type DownloadImageReq

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

func (*DownloadImageReq) Descriptor

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

func (*DownloadImageReq) GetAlbumId

func (m *DownloadImageReq) GetAlbumId() string

func (*DownloadImageReq) GetId

func (m *DownloadImageReq) GetId() string

func (*DownloadImageReq) ProtoMessage

func (*DownloadImageReq) ProtoMessage()

func (*DownloadImageReq) Reset

func (m *DownloadImageReq) Reset()

func (*DownloadImageReq) String

func (m *DownloadImageReq) String() string

func (*DownloadImageReq) XXX_DiscardUnknown

func (m *DownloadImageReq) XXX_DiscardUnknown()

func (*DownloadImageReq) XXX_Marshal

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

func (*DownloadImageReq) XXX_Merge

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

func (*DownloadImageReq) XXX_Size

func (m *DownloadImageReq) XXX_Size() int

func (*DownloadImageReq) XXX_Unmarshal

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

type DownloadImageResp

type DownloadImageResp struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DownloadImageResp) Descriptor

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

func (*DownloadImageResp) GetData

func (m *DownloadImageResp) GetData() []byte

func (*DownloadImageResp) ProtoMessage

func (*DownloadImageResp) ProtoMessage()

func (*DownloadImageResp) Reset

func (m *DownloadImageResp) Reset()

func (*DownloadImageResp) String

func (m *DownloadImageResp) String() string

func (*DownloadImageResp) XXX_DiscardUnknown

func (m *DownloadImageResp) XXX_DiscardUnknown()

func (*DownloadImageResp) XXX_Marshal

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

func (*DownloadImageResp) XXX_Merge

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

func (*DownloadImageResp) XXX_Size

func (m *DownloadImageResp) XXX_Size() int

func (*DownloadImageResp) XXX_Unmarshal

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

type ImageService

type ImageService interface {
	CreateAlbum(ctx context.Context, in *CreateAlbumReq, opts ...client.CallOption) (*CreateAlbumResp, error)
	DeleteAlbum(ctx context.Context, in *DeleteAlbumReq, opts ...client.CallOption) (*DeleteAlbumResp, error)
	Upload(ctx context.Context, opts ...client.CallOption) (Image_UploadService, error)
	Download(ctx context.Context, in *DownloadImageReq, opts ...client.CallOption) (Image_DownloadService, error)
	Delete(ctx context.Context, in *DeleteImageReq, opts ...client.CallOption) (*DeleteImageResp, error)
	List(ctx context.Context, in *ListImageReq, opts ...client.CallOption) (*ListImageResp, error)
}

func NewImageService

func NewImageService(name string, c client.Client) ImageService

type Image_DownloadService

type Image_DownloadService interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*DownloadImageResp, error)
}

type Image_DownloadStream

type Image_DownloadStream interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*DownloadImageResp) error
}

type Image_UploadService

type Image_UploadService interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*UploadImageReq) error
}

type Image_UploadStream

type Image_UploadStream interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*UploadImageReq, error)
}

type ListImageReq

type ListImageReq struct {
	AlbumId              string   `protobuf:"bytes,1,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListImageReq) Descriptor

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

func (*ListImageReq) GetAlbumId

func (m *ListImageReq) GetAlbumId() string

func (*ListImageReq) ProtoMessage

func (*ListImageReq) ProtoMessage()

func (*ListImageReq) Reset

func (m *ListImageReq) Reset()

func (*ListImageReq) String

func (m *ListImageReq) String() string

func (*ListImageReq) XXX_DiscardUnknown

func (m *ListImageReq) XXX_DiscardUnknown()

func (*ListImageReq) XXX_Marshal

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

func (*ListImageReq) XXX_Merge

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

func (*ListImageReq) XXX_Size

func (m *ListImageReq) XXX_Size() int

func (*ListImageReq) XXX_Unmarshal

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

type ListImageResp

type ListImageResp struct {
	Id                   []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListImageResp) Descriptor

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

func (*ListImageResp) GetId

func (m *ListImageResp) GetId() []string

func (*ListImageResp) ProtoMessage

func (*ListImageResp) ProtoMessage()

func (*ListImageResp) Reset

func (m *ListImageResp) Reset()

func (*ListImageResp) String

func (m *ListImageResp) String() string

func (*ListImageResp) XXX_DiscardUnknown

func (m *ListImageResp) XXX_DiscardUnknown()

func (*ListImageResp) XXX_Marshal

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

func (*ListImageResp) XXX_Merge

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

func (*ListImageResp) XXX_Size

func (m *ListImageResp) XXX_Size() int

func (*ListImageResp) XXX_Unmarshal

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

type UploadImageReq

type UploadImageReq struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AlbumId              string   `protobuf:"bytes,2,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"`
	Data                 []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UploadImageReq) Descriptor

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

func (*UploadImageReq) GetAlbumId

func (m *UploadImageReq) GetAlbumId() string

func (*UploadImageReq) GetData

func (m *UploadImageReq) GetData() []byte

func (*UploadImageReq) GetId

func (m *UploadImageReq) GetId() string

func (*UploadImageReq) ProtoMessage

func (*UploadImageReq) ProtoMessage()

func (*UploadImageReq) Reset

func (m *UploadImageReq) Reset()

func (*UploadImageReq) String

func (m *UploadImageReq) String() string

func (*UploadImageReq) XXX_DiscardUnknown

func (m *UploadImageReq) XXX_DiscardUnknown()

func (*UploadImageReq) XXX_Marshal

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

func (*UploadImageReq) XXX_Merge

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

func (*UploadImageReq) XXX_Size

func (m *UploadImageReq) XXX_Size() int

func (*UploadImageReq) XXX_Unmarshal

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

type UploadImageResp

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

func (*UploadImageResp) Descriptor

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

func (*UploadImageResp) ProtoMessage

func (*UploadImageResp) ProtoMessage()

func (*UploadImageResp) Reset

func (m *UploadImageResp) Reset()

func (*UploadImageResp) String

func (m *UploadImageResp) String() string

func (*UploadImageResp) XXX_DiscardUnknown

func (m *UploadImageResp) XXX_DiscardUnknown()

func (*UploadImageResp) XXX_Marshal

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

func (*UploadImageResp) XXX_Merge

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

func (*UploadImageResp) XXX_Size

func (m *UploadImageResp) XXX_Size() int

func (*UploadImageResp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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