daemon

package
v0.0.0-...-c182ff6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStart

func NewStart(args Options)

Types

type Cache

type Cache struct {
	Driver string
	Opts   string
}

type Daemon

type Daemon struct {
	Options *Options

	Cache *storage.Engine
}

func NewDaemon

func NewDaemon(background bool, args Options) (*Daemon, *daemon.Context)

func (*Daemon) Decode

func (d *Daemon) Decode(req request.Decode) (*coder.CustomClaim, error)

func (*Daemon) Encode

func (d *Daemon) Encode(req request.Encode) (string, error)

func (*Daemon) Kick

func (d *Daemon) Kick(req request.Kick) error

func (*Daemon) List

func (d *Daemon) List(req request.List) ([]response.JsonWebToken, error)

func (*Daemon) NewCache

func (d *Daemon) NewCache() (err error)

func (*Daemon) Stop

func (d *Daemon) Stop()

func (*Daemon) WebServer

func (d *Daemon) WebServer(ch chan struct{}) error

type Options

type Options struct {
	PidFile  string
	LogFile  string
	LogLevel string
	Port     int
	Host     string
	SockFile string
	Daemon   bool
	Version  bool
	TLS      TLS
	Cache    Cache
	Secret   string
}

type TLS

type TLS struct {
	Key  string
	Cert string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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