Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentNats ErrorParamsInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorStartComponent ErrorReloadComponent ErrorDependencyTLSDefault ErrorDependencyLogDefault )
View Source
const ( DefaultTlsKey = "tls" ComponentType = "natsServer" )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func IsCodeError ¶
func IsCodeError() bool
func RegisterNew ¶
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentNats ¶
type ComponentNats interface { libcfg.Component SetTLSKey(tlsKey string) GetServer() (libnat.Server, liberr.Error) SetStatusRouter(sts libsts.RouteStatus, prefix string) }
func Load ¶
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentNats
func New ¶
func New(tlsKey string) ComponentNats
Click to show internal directories.
Click to hide internal directories.