handlers

package
v0.0.0-...-2c8bb3a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocal

func IsLocal() bool

func NewDB

func NewDB(ctx context.Context) (*db.DB, error)

func NewGin

func NewGin(logger *slog.Logger) *gin.Engine

Types

type AppVars

type AppVars struct {
	WebHost             *url.URL
	APIHost             *url.URL
	DiscordClientID     string
	DiscordClientSecret string
	JWTKey              []byte
}

func GetAppVars

func GetAppVars() (AppVars, error)

type Date

type Date time.Time

Date is a type that will unmarhsal to a time.Time in the format of "2006-01-02" swagger:strfmt date

func (Date) ToTime

func (d Date) ToTime() time.Time

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(bs []byte) error

Directories

Path Synopsis
Package classification Boston Archery API
Package classification Boston Archery API

Jump to

Keyboard shortcuts

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