Documentation ¶
Index ¶
Constants ¶
View Source
const ( SERVICE_LRUCACHE = "lrucache" SERVICE_REDIS = "redis" SERVICE_OSS = "oss" SERVICE_MONGODB = "mongodb" SERVICE_APP = "uv-app" )
View Source
const ( ERRNO_OK = 200 ERRNO_NOT_FOUND = 404 ERRNO_INTERNAL_SERVER = 500 ERRNO_INPUT_DATA = 400 )
View Source
const (
DB_VER = 1
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppService ¶
type AppService struct { Prefix string `json:"prefix"` BasePath string `json:"basePath"` Aid int64 `json:"aid"` //区域ID Nid int64 `json:"nid"` //节点ID Expires int64 `json:"expires"` //过期秒数 Db string `json:"db"` // mongodb db AppMaxSize int64 `json:"app-max-size"` // 应用包最大字节数 IID *iid.IID `json:"-"` // contains filtered or unexported fields }
func GetAppService ¶
func GetAppService(ctx micro.Context, name string) (*AppService, error)
func (*AppService) NewID ¶
func (s *AppService) NewID() string
func (*AppService) NewSecret ¶
func (s *AppService) NewSecret() string
func (*AppService) Recycle ¶
func (s *AppService) Recycle()
Click to show internal directories.
Click to hide internal directories.