manager

package
v4.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SrvTokenModeDefault   = iota
	SrvTokenModeUnchecked // use with caution!
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Srv

type Srv struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func NewSrv

func NewSrv(g *libkb.GlobalContext) *Srv

func (*Srv) Active

func (r *Srv) Active() bool

func (*Srv) Addr

func (r *Srv) Addr() (string, error)

func (*Srv) HandleFunc

func (r *Srv) HandleFunc(endpoint string, tokenMode SrvTokenMode,
	serve func(w http.ResponseWriter, req *http.Request))

func (*Srv) Token

func (r *Srv) Token() string

type SrvTokenMode

type SrvTokenMode int

Jump to

Keyboard shortcuts

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