channel

package
v0.0.1-20230329-0001 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannel

func GetChannel(c Config) (*model.Logger, error)

GetChannel -> Get channel based on instance name (the key from the config) Check if there is a channel like this... If there is not, then return an error... If there is, return the logger based on the config found

func GetDefaultChannel

func GetDefaultChannel() (*model.Logger, error)

GetDefaultChannel -> gets the default logger based on the current configuration Finds the default one checks if the object is created in memory if yes then returns it, if not it creates it based on the configuration

Types

type Config

type Config struct {
	ChannelName              string
	ReturnDefaultIfNotExists bool
}

Jump to

Keyboard shortcuts

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