service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AUTH_PROXY_ENDPOINT = "/__auth_proxy__/"
View Source
const (
	AUTH_PROXY_TOKEN_NAME = "auth_proxy_token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(opts *ServiceOptions) *Service

func (*Service) Init

func (s *Service) Init(engine *gin.Engine)

type ServiceOptions

type ServiceOptions struct {
	TargetURL      string
	AccessKey      string
	AuthExpiration time.Duration

	TokenManager *token.TokenManager
}

Jump to

Keyboard shortcuts

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