server

package
v1.1.1-0...-a687fc2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrorIncorrectMode indicates that the given mode is not correct.
	ErrorIncorrectMode = "incorrect mode"

	// ProductionMode runs the server in production mode.
	ProductionMode = Mode("production")

	// DevelopmentMode runs the server in development mode.
	DevelopmentMode = Mode("development")

	// DefaultMode to use if none is specified.
	DefaultMode = DevelopmentMode
)
View Source
const (
	ErrorIncorrectConfiguration = "incorrect configuration"
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encryptedString string, keyString string) (string, error)

func Encrypt

func Encrypt(stringToEncrypt string, keyString string) (string, error)

Types

type Mode

type Mode string

Mode defines the type of mode on which to run the server. Either testing, development, or production.

func (*Mode) Correct

func (m *Mode) Correct() bool

func (*Mode) Set

func (m *Mode) Set(s string) error

Set implements Cobra flag.Value interface.

func (*Mode) SetGin

func (m *Mode) SetGin()

func (*Mode) String

func (m *Mode) String() string

String implements Cobra flag.Value interface.

func (*Mode) Type

func (m *Mode) Type() string

Type implements Cobra flag.Value interface.

func (*Mode) UseDefault

func (m *Mode) UseDefault()

Jump to

Keyboard shortcuts

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