server

package
v1.0.478 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServers

func GetServers(natsHost string, natsPort int, sharConcurrency int, apiAuth authz.APIFunc, authN authn.Check) (*sharsvr.Server, *server.Server, error)

GetServers returns a test NATS and SHAR server.

Types

type NatsLogger

type NatsLogger struct {
}

NatsLogger provides a simple logger that logs to console

func (*NatsLogger) Debugf

func (n *NatsLogger) Debugf(format string, v ...interface{})

Debugf logs a debug statement

func (*NatsLogger) Errorf

func (n *NatsLogger) Errorf(format string, v ...interface{})

Errorf logs an error

func (*NatsLogger) Fatalf

func (n *NatsLogger) Fatalf(format string, v ...interface{})

Fatalf logs a fatal error

func (*NatsLogger) Noticef

func (n *NatsLogger) Noticef(format string, v ...interface{})

Noticef logs a notice statement

func (*NatsLogger) Tracef

func (n *NatsLogger) Tracef(format string, v ...interface{})

Tracef logs a trace statement

func (*NatsLogger) Warnf

func (n *NatsLogger) Warnf(format string, v ...interface{})

Warnf logs a warning statement

Jump to

Keyboard shortcuts

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