go_micro_service_download

package
v0.0.0-...-a949f40 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDownloadServiceHandler

func RegisterDownloadServiceHandler(s server.Server, hdlr DownloadServiceHandler, opts ...server.HandlerOption) error

Types

type DownloadService

type DownloadService interface {
	// 获取下载入口地址
	DownloadEntry(ctx context.Context, in *ReqEntry, opts ...client.CallOption) (*RespEntry, error)
}

func NewDownloadService

func NewDownloadService(name string, c client.Client) DownloadService

type DownloadServiceHandler

type DownloadServiceHandler interface {
	// 获取下载入口地址
	DownloadEntry(context.Context, *ReqEntry, *RespEntry) error
}

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

Jump to

Keyboard shortcuts

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