apollo

package
v0.0.0-...-effe6b5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apollo

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

Apollo serves the mock apollo http routes

func New

func New(ctx context.Context, cfg Config) (*Apollo, error)

New creates a new Apollo

func (*Apollo) Routes

func (a *Apollo) Routes(r *httprouter.Router)

Routes registers the http handles for Apollo

type Config

type Config struct {
	Log         nlogger.Provider
	ConfigPath  []string
	PollTimeout time.Duration
	Port        int
}

Config is an object that stores the package config

Jump to

Keyboard shortcuts

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