gateway

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInternalError        = errors.Error("INTERNAL_ERROR")
	ErrParamsInvalid        = errors.Error("PARAMS_INVALID")
	ErrUnauthorized         = errors.Error("UNAUTHORIZED")
	ErrInvalidToken         = errors.Error("INVALID_TOKEN")
	ErrInvalidBranch        = errors.Error("INVALID_BRANCH")
	ErrEnvNotFound          = errors.Error("ENV_NOT_FOUND")
	ErrInvalidEnv           = errors.Error("INVALID_ENV")
	ErrVersionNotFound      = errors.Error("VERSION_NOT_FOUND")
	ErrVersionNotUpgradable = errors.Error("VERSION_NOT_UPGRADABLE")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	ID         string
	Name       string
	EncToken   string
	CreateTime time.Time
}

type Env

type Env struct {
	BranchId   string
	ID         string
	Name       string
	EncToken   string
	CreateTime time.Time
}

type FileSource

type FileSource struct {
	Key        string
	Value      string
	Desc       string
	CreateTime time.Time
	FileMD5    string
	FileSize   int64
}

type Version

type Version struct {
	EnvId            string
	AppVersion       string
	CompatAppVersion string
	MustUpdate       bool
	Changelog        string
	PackageFileKey   string
	CreateTime       time.Time
}

type VersionCompatQueryResult

type VersionCompatQueryResult struct {
	AppVersion          []byte
	LatestAppVersion    []byte
	CanUpdateAppVersion []byte
	MustUpdate          bool
}

type VersionReleaseParams

type VersionReleaseParams struct {
	EnvId            []byte
	AppVersion       []byte
	CompatAppVersion []byte
	Changelog        []byte
	PackageFileKey   []byte
	MustUpdate       bool
}

Directories

Path Synopsis
interface

Jump to

Keyboard shortcuts

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