droxo

package module
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: GPL-3.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

droxo

Common functions and Middleware

Documentation

Index

Constants

View Source
const (
	UriArtifact = "http://artifact:8082/"
	UriBlog     = "http://blog:8102/"
	UriComment  = "http://comment:8084/"
	UriComms    = "http://comms:8085/"
	UriEntity   = "http://entity:8097/"
	UriFolio    = "http://folio:8090/"
	UriFunds    = "http://funds:8092/"
	UriGame     = "http://game:8100/"
	UriLogbook  = "http://logbook:8089/"
	UriNotify   = "http://notify:8103/"
	UriOauth2   = "http://oauth2:8086/"
	UriQuote    = "http://quote:8099/"
	UriStock    = "http://stock:8101/"
	UriTheme    = "http://theme:8093/"
	UriVehicle  = "http://vehicle:8098/"
	UriVIN      = "http://vin:8095/"
	UriXChange  = "http://xchange:8104/"
)

Variables

This section is empty.

Functions

func AuthCallback

func AuthCallback(cfg oauth2.Config) gin.HandlerFunc

func AuthStart added in v1.9.0

func AuthStart(cfg oauth2.Config) gin.HandlerFunc

func AuthenticateClient added in v1.19.0

func AuthenticateClient(clientId, clientSecret, authority string, scopes ...string) clientcredentials.Config

AuthenticateClient will return a token for the current client

func Authorize

func Authorize(scope, scopesecret, authority string) gin.HandlerFunc

func AuthorizeClient added in v1.4.0

func AuthorizeClient(clientId, clientSecret, introspectUrl string) gin.HandlerFunc

func AuthorizeReally added in v1.19.0

func AuthorizeReally(cfg oauth2.Config) gin.HandlerFunc

func GetPageData added in v1.2.0

func GetPageData(pageData string) (int, int)

func LoadTemplates added in v1.3.1

func LoadTemplates(templatesDir string) (multitemplate.Renderer, error)

func PrepareClientUser added in v1.19.0

func PrepareClientUser(clientId, clientSecret, authority, redirect string, scopes ...string) oauth2.Config

PrepareClientUser will return a config for the current client, to be used for user authentication

func UpdateTheme added in v1.3.1

func UpdateTheme(cfg clientcredentials.Config, url string) error

func Wrap

func Wrap(name string, oper Op, result interface{}) gin.H

Types

type Op added in v1.28.0

type Op struct {
	Profile  string
	APIKeys  map[string]string
	LogoKey  string
	Username string
	LoggedIn bool
	GTag     string
}

Jump to

Keyboard shortcuts

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