backend

package
v0.0.0-...-50ba02b Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PORT = ":8081"

Variables

View Source
var GraphSet = wire.NewSet(
	deps,
	NewApp,
	NewHttpServer,
)

Functions

func CorsPublic

func CorsPublic(next http.Handler) http.Handler

Types

type App

type App interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

func NewApp

func NewApp(
	httpServer *HttpServer,
) App

type HttpServer

type HttpServer struct {
	*http.Server
}

func NewHttpServer

func NewHttpServer(
	baseHandler *api.BaseHandler,
	campaignHandler *api.AffiliateHandler,
) *HttpServer

Jump to

Keyboard shortcuts

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