go_micro_service_upload

package
v0.0.0-...-5447790 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUploadServiceHandler

func RegisterUploadServiceHandler(s server.Server, hdlr UploadServiceHandler, opts ...server.HandlerOption) error

Types

type ReqEntry

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

func (*ReqEntry) Descriptor

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

func (*ReqEntry) ProtoMessage

func (*ReqEntry) ProtoMessage()

func (*ReqEntry) Reset

func (m *ReqEntry) Reset()

func (*ReqEntry) String

func (m *ReqEntry) String() string

func (*ReqEntry) XXX_DiscardUnknown

func (m *ReqEntry) XXX_DiscardUnknown()

func (*ReqEntry) XXX_Marshal

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

func (*ReqEntry) XXX_Merge

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

func (*ReqEntry) XXX_Size

func (m *ReqEntry) XXX_Size() int

func (*ReqEntry) XXX_Unmarshal

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

type RespEntry

type RespEntry struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Entry                string   `protobuf:"bytes,3,opt,name=entry,proto3" json:"entry,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespEntry) Descriptor

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

func (*RespEntry) GetCode

func (m *RespEntry) GetCode() int32

func (*RespEntry) GetEntry

func (m *RespEntry) GetEntry() string

func (*RespEntry) GetMessage

func (m *RespEntry) GetMessage() string

func (*RespEntry) ProtoMessage

func (*RespEntry) ProtoMessage()

func (*RespEntry) Reset

func (m *RespEntry) Reset()

func (*RespEntry) String

func (m *RespEntry) String() string

func (*RespEntry) XXX_DiscardUnknown

func (m *RespEntry) XXX_DiscardUnknown()

func (*RespEntry) XXX_Marshal

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

func (*RespEntry) XXX_Merge

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

func (*RespEntry) XXX_Size

func (m *RespEntry) XXX_Size() int

func (*RespEntry) XXX_Unmarshal

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

type UploadService

type UploadService interface {
	// 获取上传入口地址
	UploadEntry(ctx context.Context, in *ReqEntry, opts ...client.CallOption) (*RespEntry, error)
}

func NewUploadService

func NewUploadService(name string, c client.Client) UploadService

type UploadServiceHandler

type UploadServiceHandler interface {
	// 获取上传入口地址
	UploadEntry(context.Context, *ReqEntry, *RespEntry) error
}

Jump to

Keyboard shortcuts

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