Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInfoFile ¶
Types ¶
type ACContainer ¶
type ACService ¶
type ACService struct { Unit interface{} `json:"unit"` Container interface{} `json:"container"` Control string `json:"control"` // contains filtered or unexported fields }
type Container ¶
type Container interface {
GetPackage(ctx micro.Context, appid string, ver string, ability string) (Package, error)
}
func NewACContainer ¶
func NewACContainer(config interface{}) Container
type HttpResponse ¶
type HttpResponse struct { Code int `json:"code"` Headers map[string]string `json:"headers"` Body string `json:"body"` }
func (*HttpResponse) Error ¶
func (r *HttpResponse) Error() string
func (*HttpResponse) String ¶
func (r *HttpResponse) String() string
type Package ¶
type Package interface { PackageInfo Dir() string // 应用包目录 }
func NewDirPackage ¶
func NewPackage ¶
func NewPackage(info PackageInfo, dir string) Package
type PackageInfo ¶
type PackageInfo interface { Key() string Appid() string // 应用ID Ver() string // 应用版本 Ability() []string // 应用包能力 Info() interface{} // 应用包信息 }
func NewPackageInfo ¶
func NewPackageInfo(info interface{}) (PackageInfo, error)
Click to show internal directories.
Click to hide internal directories.