app

package
v0.0.0-...-7604275 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(opts ...Option) (*App, error)

func (*App) Start

func (app *App) Start(ctx context.Context, cf config.Http) error

type Option

type Option func(app *App) error

func WithHost

func WithHost(host string) Option

func WithHttpServer

func WithHttpServer(httpServer *http.Server) Option

func WithLogger

func WithLogger(logger *logrus.Logger) Option

func WithName

func WithName(name string) Option

func WithPort

func WithPort(port uint64) Option

Jump to

Keyboard shortcuts

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