server

package
v0.0.0-...-5efa5bd Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2017 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the harkonn server

var Srv *Server

Srv represents the global server object

func NewServer

func NewServer() *Server

NewServer returns a new server

func (*Server) CSRs

func (s *Server) CSRs() (csrs []core.CSR)

CSRs returns all pending CSRs

func (*Server) Chan

func (s *Server) Chan(host string) chan core.SendData

Chan returns the sender channel of a client

func (*Server) Jobs

func (s *Server) Jobs(host string) []core.Job

Jobs returns the current jobs of a client

func (*Server) RemoveAllCSRs

func (s *Server) RemoveAllCSRs()

RemoveAllCSRs deletes all pending CSRs

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface

func (*Server) Sign

func (s *Server) Sign(host string) error

Sign signs a pending CSR

func (*Server) Stop

func (s *Server) Stop()

Stop will stop the server

Jump to

Keyboard shortcuts

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