vccounter

package
v0.0.0-...-b47c339 Latest Latest
Warning

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

Go to latest
Published: May 6, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppVersionCodeCollectionName = "versionCodes"
	AppIdKey                     = "appid"
)
View Source
const (
	AppIdPathParameter       = "app-id"
	VersionCodePathParameter = "code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCode

type AppCode struct {
	AppId       string
	VersionCode int
}

func (*AppCode) NextVersionCode

func (ac *AppCode) NextVersionCode() int

type AppVersionCodeDataStore

type AppVersionCodeDataStore interface {
	UpdateAppVersionCode(ac *AppCode) error
	CurrentAppVersionCode(appId string) (*AppCode, error)
	DeleteApp(appId string) error
}

type AppVersionCodeMGODataStore

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

func (*AppVersionCodeMGODataStore) CloseConnection

func (avcDataStore *AppVersionCodeMGODataStore) CloseConnection()

func (*AppVersionCodeMGODataStore) CurrentAppVersionCode

func (avcDataStore *AppVersionCodeMGODataStore) CurrentAppVersionCode(appId string) (*AppCode, error)

func (*AppVersionCodeMGODataStore) DeleteApp

func (avcDataStore *AppVersionCodeMGODataStore) DeleteApp(appId string) error

func (*AppVersionCodeMGODataStore) OpenConnection

func (avcDataStore *AppVersionCodeMGODataStore) OpenConnection(url string) error

func (*AppVersionCodeMGODataStore) UpdateAppVersionCode

func (avcDataStore *AppVersionCodeMGODataStore) UpdateAppVersionCode(ac *AppCode) error

type VersionCodeService

type VersionCodeService struct {
	VcStorage AppVersionCodeDataStore
}

func (VersionCodeService) Register

func (vc VersionCodeService) Register()

Jump to

Keyboard shortcuts

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