server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx *engine.Context)

Main entry point for server

Types

type Context

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

Context to pass information between middleware and handler.

func (*Context) CertificateAuthority added in v1.1.0

func (c *Context) CertificateAuthority(rw web.ResponseWriter, req *web.Request)

CertificateAuthority serves up the certificate authority

func (*Context) IndexPage

func (c *Context) IndexPage(rw web.ResponseWriter, req *web.Request)

IndexPage just serves a simple OK response.

func (*Context) NewCert

func (c *Context) NewCert(rw web.ResponseWriter, req *web.Request)

NewCert generates a new certificate based on the provided domain and returns the json payload containing the certificate and key.

Jump to

Keyboard shortcuts

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