server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeDBConnection

func InitializeDBConnection(database string, user string, password string, hostname string, port string, withMigration bool, migrationsFilePath string, logger log.Logger) (*sql.DB, error)

Types

type CustomLogger

type CustomLogger struct {
	// contains filtered or unexported fields
}

func (*CustomLogger) Printf

func (l *CustomLogger) Printf(format string, v ...interface{})

func (*CustomLogger) Verbose

func (l *CustomLogger) Verbose() bool

type GoKitLogToStandarLogAdapter

type GoKitLogToStandarLogAdapter interface {
	Printf(format string, v ...interface{})
	Verbose() bool
}

type ServerConfiguration

type ServerConfiguration struct {
	Port string

	Protocol string

	CertFile string
	KeyFile  string

	MutualTLSEnabled  bool
	MutualTLSClientCA string
}

func (*ServerConfiguration) RunServer

func (cfg *ServerConfiguration) RunServer(logger log.Logger, errs chan error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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