access

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(closed <-chan struct{}, wg *sync.WaitGroup, config Config)

API starts the API Inputs @closed - channel will be closed when server shutsdown @wg - waitgroup, we must wg.Done() when we are shutdown @port - where to listen locally @host - external FQDN of the host (for checking against tokens) e.g. https://relay-access.practable.io @target - FQDN of the relay instance e.g. wss://relay.practable.io @secret- HMAC shared secret which incoming tokens will be signed with @cs - pointer to the CodeStore this API shares with the crossbar websocket relay @ds - pointer to the Deny list allowNoBookingID - whether to accept tokens without bookingID (set to yes to be backwards compatible) @options - for future backwards compatibility (no options currently available)

Types

type Config added in v0.3.0

type Config struct {
	AllowNoBookingID bool
	CodeStore        *ttlcode.CodeStore
	DenyChannel      chan string
	DenyStore        *deny.Store
	Host             string
	Hub              *crossbar.Hub
	Port             int
	Secret           string
	Target           string
}

Config specifies parameters for the access service

Directories

Path Synopsis
Package restapi RelayAccess
Package restapi RelayAccess

Jump to

Keyboard shortcuts

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