serve

package
v0.0.0-...-412dc8c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() []*cobra.Command

Types

type ServeConfig

type ServeConfig struct {
	JWTKey                      string `mapstructure:"jwt_key" validate:"required,base64|hexadecimal"`
	Migrate                     bool   `mapstructure:"migrate"`
	Environment                 string `mapstructure:"env" validate:"required,oneof=dev stg prod"`
	ListenHost                  string `mapstructure:"listen_host" validate:"required"`
	ListenPort                  uint16 `mapstructure:"listen_port" validate:"required,gt=0"`
	cmdCommon.MySQLConfigCommon `mapstructure:",squash" govalid:"req"`
}

func (ServeConfig) AutoMigrate

func (s ServeConfig) AutoMigrate() bool

func (ServeConfig) Env

func (s ServeConfig) Env() string

func (ServeConfig) Listen

func (s ServeConfig) Listen() interfaces.ListenConfig

func (ServeConfig) MySQL

type ServeListenConfig

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

func (ServeListenConfig) Host

func (s ServeListenConfig) Host() string

func (ServeListenConfig) Port

func (s ServeListenConfig) Port() uint16

type ServeMySQLConfig

type ServeMySQLConfig struct {
	cmdCommon.MySQLConfigCommon `mapstructure:",squash"`
}

func (ServeMySQLConfig) Database

func (s ServeMySQLConfig) Database() string

func (ServeMySQLConfig) Host

func (s ServeMySQLConfig) Host() string

func (ServeMySQLConfig) Password

func (s ServeMySQLConfig) Password() string

func (ServeMySQLConfig) Port

func (s ServeMySQLConfig) Port() uint16

func (ServeMySQLConfig) User

func (s ServeMySQLConfig) User() string

Jump to

Keyboard shortcuts

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