gin

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v1.0.15

func NewFactory() component.Factory

Types

type Config added in v1.0.15

type Config struct {
	Name                string        `yaml:"name"`
	Addr                string        `yaml:"addr"`
	GracefulStopTimeout time.Duration `yaml:"graceful_stop_timeout"`
}

func (Config) Marshal added in v1.0.15

func (c Config) Marshal() ([]byte, error)

type Gin

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

func NewGin

func NewGin(rawConfig string) (*Gin, error)

func (*Gin) Instance

func (g *Gin) Instance() component.Instance

func (*Gin) Start

func (g *Gin) Start() error

func (*Gin) Stop

func (g *Gin) Stop() error

Jump to

Keyboard shortcuts

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