frontend

package
v2.4.42 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAPI

func RunAPI(opts ...Option)

RunAPI provides a basic REST API

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func Config

func Config(val *config.API) Option

Config provides a function to set the config option.

func Context

func Context(val context.Context) Option

Context provides a function to set the context option.

func Logger

func Logger(val zerolog.Logger) Option

Logger provides a function to set the logger option.

type Options

type Options struct {
	Logger  zerolog.Logger
	Config  *config.API
	Context context.Context
}

Options defines the available options for this package.

Jump to

Keyboard shortcuts

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