service

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(req *http.Request) (clientKey string, authed bool, err error)

func Disconnect

func Disconnect(server *remotedialer.Server, w http.ResponseWriter, r *http.Request)

func Forward

func Forward(server *remotedialer.Server, w http.ResponseWriter, r *http.Request)

func HasSession

func HasSession(handler *remotedialer.Server, w http.ResponseWriter, r *http.Request)

func Init

func Init()

func Reset

func Reset()

func Restore

func Restore(w http.ResponseWriter, r *http.Request)

func Sync

func Sync(server *remotedialer.Server, stopCh <-chan struct{})

Types

type ClusterInfo

type ClusterInfo struct {
	ClusterID string    `json:"_"`
	Joined    time.Time `json:"_"`

	Address string `json:"address"`
	Token   string `json:"token"`
	CACert  string `json:"caCert"`
}

Jump to

Keyboard shortcuts

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