config

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 12 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, opts ...OptionFunc) *Config

Init app config

func (*Config) Exit

func (c *Config) Exit()

Exit close all connection

func (*Config) GetOption added in v1.19.0

func (c *Config) GetOption() *Option

GetOption get config option

func (*Config) LoadFunc

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

LoadFunc load selected dependency with context timeout

type Option added in v1.19.0

type Option struct {
	MaxLogSize uint32
}

Config app

type OptionFunc added in v1.19.0

type OptionFunc func(*Option)

OptionFunc type

func WithLogSize added in v1.19.0

func WithLogSize(size uint32) OptionFunc

WithLogSize option for set log size

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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