api

package
v0.0.0-...-ab3c899 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dispatcher

func Dispatcher(
	ping *handlers.PingHandler,
	promotion *handlers.PromotionHandler,
) http.Handler

Types

type Srv

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

func NewSrv

func NewSrv() *Srv

func (*Srv) APIServer

func (s *Srv) APIServer(addr string, client *redis.Client) *http.Server

APIServer builds an HTTP server with default dependencies and routes

func (*Srv) Configure

func (s *Srv) Configure(conf ...func(mux *http.ServeMux))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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