core

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 92 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName string = "anime-pack-api"

	EnvironmentPrefix string = "ANIME_PACK"
)

Variables

View Source
var Version string = "devel"

Functions

This section is empty.

Types

type Bootstrap

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

func Create

func Create(version string) (b *Bootstrap, err error)

func (*Bootstrap) Close

func (b *Bootstrap) Close() (err error)

Close attempts to gracefully shutdown the application by prioritizing on keeping the TCP calls open till they're finished (5 second timeout) and closing off it's dependencies afterwards.

func (*Bootstrap) L

func (b *Bootstrap) L() *zap.Logger

func (*Bootstrap) Run

func (b *Bootstrap) Run(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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