api

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented         = errors.New("not implemented")
	ErrUserNotFound           = errors.New("user not found")
	ErrAuthenticationRequired = errors.New("authentication required")
)

Functions

func NewRouter

func NewRouter(
	conf *config.Config,
	corsAllowedOrigins []string,
	jwtAuth *jwtauth.JWTAuth,
	nodeSubscriptionService subscription.NodeService,
	userService user.Service,
	userSubscriptionService subscription.Service[*model.UserChangedEvent],
	serverService server.Service,
	serverSubscriptionService subscription.Service[*model.ServerChangedEvent],
	peerService peer.Service,
	peerSubscriptionService subscription.Service[*model.PeerChangedEvent],
	wgService wg.Service,
) http.Handler

Types

type NodeResult

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

Directories

Path Synopsis
tools

Jump to

Keyboard shortcuts

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