server

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	svc.Service
	// contains filtered or unexported fields
}

func NewService

func NewService(name string, config svcconfig.Config, oauth oauth2support.Backend) Service

func (Service) GetRoutes

func (s Service) GetRoutes() []req.RouteHandler

func (Service) Metadata

func (s Service) Metadata() interface{}

func (Service) Name

func (s Service) Name() string

func (Service) OAuthUserProfileLoader

func (s Service) OAuthUserProfileLoader(client *http.Client) (token auth.Token, _ error)

func (Service) ParseRequestAuth

func (s Service) ParseRequestAuth(req http.Request) (*auth.Token, error)

func (Service) VerifyAuthorization added in v0.7.0

func (s Service) VerifyAuthorization(_ http.Request, _ *auth.Token) error

type ServiceFactory

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

func NewServiceFactory

func NewServiceFactory(endpointURL string, failureURL string, successURL string) ServiceFactory

func (ServiceFactory) Create

func (f ServiceFactory) Create(name string, options map[string]interface{}) (service.Service, error)

func (ServiceFactory) Type

func (f ServiceFactory) Type() string

Jump to

Keyboard shortcuts

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