server

package
v0.0.0-...-f348597 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApi

func NewApi(ctx context.Context, opts HttpApiOpts) (r *chi.Mux, err error)

Types

type HttpApiOpts

type HttpApiOpts struct {
	ApiPrefix string
	Users     interfaces.UsersRepo
	Sessions  interfaces.SessionsRepo
	Logger    *slog.Logger

	LogAllRequests bool
	LogInternalErr bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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