server

package
v0.0.0-...-0853bc3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataPayload

type MetadataPayload struct {
	DuoPushInfo string `json:"duoPushInfo"`
}

MetadataPayload object is what clients send to include as extra metadata in the DUO push request

type Server

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

A Server is duo-bot run in server mode, the only mode

func New

func New(addr string, version string, duoHost string, duoIkey string, duoSkey string) (*Server, error)

New initializes a server with its config

func (*Server) Start

func (s *Server) Start()

Start starts the server listening on the given port

Jump to

Keyboard shortcuts

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