domain

package
v0.0.0-...-2af345c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Development = "dev"

Development server acting as a sandbox where unit testing may be performed by the developer

View Source
const Integration = "integration"

Integration CI build target, or for developer testing of side effects

View Source
const Production = "prod"

Production Serves end-users/clients

View Source
const Stage = "stage"

Stage Mirror of production environment

View Source
const Test = "test"

Test The environment where interface testing is performed

Variables

This section is empty.

Functions

func SanitizeEnvironment

func SanitizeEnvironment(env string) string

SanitizeEnvironment cleans the current kernel's environment and set dev environment if value is not valid

Types

type Criteria

type Criteria struct {
	FilterBy FilterMap       `json:"filter_by"`
	Token    PaginationToken `json:"token"`
	Limit    Limit           `json:"limit"`
	OrderBy  Order           `json:"order_by"`
}

func (Criteria) MarshalBinary

func (c Criteria) MarshalBinary() ([]byte, error)

func (*Criteria) UnmarshalBinary

func (c *Criteria) UnmarshalBinary(data []byte) error

type FilterMap

type FilterMap map[string]string

type KernelStore

type KernelStore struct {
	Service     string
	Version     string
	Environment string
	APIVersion  string
	Config      struct {
		Cognito struct {
			UserPoolID        string
			UserPoolSecretKey string
		}
		Cache struct {
			Network  string
			Address  []string
			Username string
			Password string
			Database int
		}
		Transport struct {
			HTTP struct {
				Address string
			}
			GRPC struct {
				Address string
			}
		}
		Tracing struct {
			Collector string
			Agent     string
			Username  string
			Password  string
		}
	}
}

func NewKernelStore

func NewKernelStore() KernelStore

type Limit

type Limit int

func NewLimit

func NewLimit(l string) Limit

func (Limit) GetPrimitive

func (l Limit) GetPrimitive() int

type Order

type Order string

func (Order) GetPrimitive

func (t Order) GetPrimitive() string

type PaginationToken

type PaginationToken string

func (PaginationToken) GetPrimitive

func (t PaginationToken) GetPrimitive() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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