api

package
v0.0.0-...-c638c98 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine(k *ecdsa.PrivateKey, d db.Driver) *gin.Engine

NewEngine register all context objects

func RegisterAPI

func RegisterAPI(r gin.IRouter)

RegisterAPI sets up all the api methods on this router

func WithDB

func WithDB(d db.Driver) gin.HandlerFunc

WithDB returns a handler that sets the database

func WithKeystore

func WithKeystore(k keystore.Store) gin.HandlerFunc

WithKeystore sets a keystore on the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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