api

package
v0.0.0-...-ba69c5f Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(b *Builder) *gin.Engine

Setup configures the API and returns the underlying gin.Engine to allow the caller to start the server additional configuration (e.g. TLS, Ports, Sockets)

Types

type Builder

type Builder struct {
	Redis  *redis.Client
	Logger *zap.Logger
	// Engine is optional, if not provided it with be initialised with gin.New()
	Engine *gin.Engine
}

Builder is a container for the high level services required for running the API service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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