rapida_constants

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 10mb
	MaxRecvMsgSize = 1024 * 1024 * 10
	MaxSendMsgSize = 1024 * 1024 * 10
)

Functions

This section is empty.

Types

type RapidaEnvironment

type RapidaEnvironment string
const (
	PRODUCTION  RapidaEnvironment = "production"
	DEVELOPMENT RapidaEnvironment = "development"
)

func (RapidaEnvironment) FromStr

func (e RapidaEnvironment) FromStr(label string) RapidaEnvironment

FromStr returns the corresponding RapidaEnvironment for a given string, or DEVELOPMENT if the string does not match any environment.

func (RapidaEnvironment) Get

func (e RapidaEnvironment) Get() string

Get returns the string value of the RapidaEnvironment

type RapidaRegion

type RapidaRegion string
const (
	AP  RapidaRegion = "ap"
	US  RapidaRegion = "us"
	EU  RapidaRegion = "eu"
	ALL RapidaRegion = "all"
)

func (RapidaRegion) FromStr

func (r RapidaRegion) FromStr(label string) RapidaRegion

FromStr returns the corresponding RapidaRegion for a given string, or ALL if the string does not match any region.

func (RapidaRegion) Get

func (r RapidaRegion) Get() string

Get returns the string value of the RapidaRegion

Jump to

Keyboard shortcuts

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