server

package
v0.0.0-...-ead0699 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	D_MAX        = 150              // nolint
	D_EXPIRATION = 30 * time.Second // nolint
)

Functions

func CheckAPIStatus

func CheckAPIStatus(c *fiber.Ctx) error

@summary Check server status @tags General @produce plain @router / [get]

func HTTPRequestWithBearerToken

func HTTPRequestWithBearerToken(method, url string, body io.Reader, json bool) (*http.Request, *http.Client, error)

func ReadAuthError

func ReadAuthError(body io.Reader) error

func Serve

func Serve(ln net.Listener, origins string, verboseOutput bool) error

Types

type LogWriter

type LogWriter struct {
	LogFile *os.File
	Stream  *core.LogsStreamSessions
}

func (LogWriter) Write

func (lw LogWriter) Write(p []byte) (n int, err error)

Directories

Path Synopsis
api
app

Jump to

Keyboard shortcuts

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