server

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cmd *cobra.Command, opt Options) (*core.App, error)

New returns new Azugo pre-configured core server with default configuration.

func Run added in v0.4.0

func Run(a Runnable)

Run starts an application and waits for it to finish.

Types

type Options added in v0.15.0

type Options struct {
	// AppName is the name of the application.
	AppName string
	// AppVer is the version of the application.
	AppVer string
	// AppBuiltWith is the server build tags.
	AppBuiltWith string

	// Configuration object that implements config.Configurable interface.
	Configuration any
}

type Runnable added in v0.4.0

type Runnable interface {
	Start() error
	Log() *zap.Logger
	Stop()
}

Runnable provides methods to run application that will gracefully stop.

Jump to

Keyboard shortcuts

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