config

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName    string
	SharedListener cmux.CMux
	// contains filtered or unexported fields
}

Config app

func Init

func Init(serviceName string) *Config

Init app config

func (*Config) Exit

func (c *Config) Exit()

Exit close all connection

func (*Config) LoadFunc

func (c *Config) LoadFunc(depsFunc func(context.Context) []interfaces.Closer)

LoadFunc load selected dependency with context timeout

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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