apiv0

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package apiv0 implements API v0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIv0

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

APIv0 is a structure to hold the context of API v0. It should be initialized with apiv0.New.

func New

func New(db db.DB, mail mail.Mail) (APIv0, error)

New returns a new apiv0.APIv0. End must be called before disposing returned apiv0.APIv0.

func (APIv0) End

func (apiv0 APIv0) End()

End releases the resources.

After calling it, any functions bound to the apiv0.APIv0 will result in unexpected result.

func (APIv0) ServeHTTP

func (apiv0 APIv0) ServeHTTP(writer http.ResponseWriter, request *http.Request)

ServeHTTP serves API v0 via HTTP.

Directories

Path Synopsis
Package token implements a some utility related to token.
Package token implements a some utility related to token.
backend
Package backend implements the backend of the token server of API v0.
Package backend implements the backend of the token server of API v0.

Jump to

Keyboard shortcuts

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