Documentation ¶
Overview ¶
Package server provides an http oauth REST API
Index ¶
Constants ¶
View Source
const (
// AuthRequestParam is the name of the request token parameter
AuthRequestParam = "request_token"
)
Variables ¶
View Source
var ( // SwaggerJSON embedded version of the swagger document used at generation time SwaggerJSON json.RawMessage // FlatSwaggerJSON embedded flattened version of the swagger document used at generation time FlatSwaggerJSON json.RawMessage SpecDoc *loads.Document )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(s *Server)
Option provides the server options, these will override th defaults and instance values.
type Server ¶
Server is an API server it can be used standalone vi Server() or integrared via Handler()
func New ¶
func New(ctrl oauth.Controller, athr oauth.Authorizer, opts ...interface{}) *Server
New returns a new Server instance
Source Files ¶
Click to show internal directories.
Click to hide internal directories.