utils

package
v0.0.0-...-28fc17c Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func SetupSignalContext

func SetupSignalContext() context.Context

SetupSignalContext is same as SetupSignalHandler, but a context.Context is returned. Only one of SetupSignalContext and SetupSignalHandler should be called, and only can be called once.

func TrimAt

func TrimAt(name, text string) string

Types

type Server

type Server struct {
	Server *http.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *ServerConfig, router http.Handler) *Server

type ServerConfig

type ServerConfig struct {
	Addr string
}

Jump to

Keyboard shortcuts

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