Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrePublish ¶ added in v1.0.7
type PrePublish interface {
PreDo(req PublishRequest) error
}
type PublishCleaner ¶ added in v1.0.9
type PublishCleaner interface {
Clean() error
}
type PublishRequest ¶
type PublishRequest struct { AppName string `json:"appName"` PackageName string `json:"packageName"` VersionCode int32 `json:"versionCode"` VersionName string `json:"versionName"` ApkFile string `json:"apkFile"` SecondApkFile string `json:"secondApkFile"` UpdateDesc string `json:"updateDesc"` // synchroType 更新类型:0=新增,1=更新包,2=内容更新 SynchroType int `json:"synchroType"` // 要上传的所有商店 Stores string `json:"stores"` }
func (PublishRequest) Version ¶
func (r PublishRequest) Version() string
type Publisher ¶
type Publisher interface { Do(req PublishRequest) error Name() string }
type PublisherPlugin ¶
type PublisherPlugin struct {
Impl Publisher
}
func (PublisherPlugin) Client ¶
func (PublisherPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
func (*PublisherPlugin) Server ¶
func (p *PublisherPlugin) Server(*plugin.MuxBroker) (interface{}, error)
type PublisherRPC ¶
type PublisherRPC struct {
// contains filtered or unexported fields
}
func (*PublisherRPC) Do ¶
func (p *PublisherRPC) Do(req PublishRequest) error
func (*PublisherRPC) Name ¶
func (p *PublisherRPC) Name() string
type PublisherRPCServer ¶
type PublisherRPCServer struct {
Impl Publisher
}
///////////////////////////// 插件内通过这个server来提供服务
func (*PublisherRPCServer) Do ¶
func (s *PublisherRPCServer) Do(req PublishRequest, resp *string) error
func (*PublisherRPCServer) Name ¶
func (s *PublisherRPCServer) Name(args interface{}, resp *string) error
Click to show internal directories.
Click to hide internal directories.