module

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service module service.

func New

func New(c *conf.Config) (s *Service)

New new a module service.

func (*Service) FormCondition

func (s *Service) FormCondition(versions []*module.Versions) (res map[string]map[string]int)

func (*Service) List

func (s *Service) List(c context.Context, mobiApp, device, platform, poolName, env string, build, sysver, level, scale, arch int,
	versions []*module.Versions, now time.Time) (res []*module.ResourcePool)

List get All or by poolname

func (*Service) ModuleUpdateCache

func (s *Service) ModuleUpdateCache() (err error)

ModuleUpdateCache update module cache

func (*Service) Resource

func (s *Service) Resource(c context.Context, mobiApp, device, platform, poolName, resourceName, env string,
	ver, build, sysver, level, scale, arch int, now time.Time) (res *module.Resource, err error)

Resource get by poolname and resourcename

Jump to

Keyboard shortcuts

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