primary

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Primary

type Primary struct {
	Config        handler.Config
	MaxRange      int                // Maximum number of leaves per get-leaves request
	DbClient      db.Client          // provides access to the backend, usually Trillian
	Stateman      state.StateManager // coordinates access to (co)signed tree heads
	TokenVerifier token.Verifier     // checks if domain name knows a public key
	RateLimiter   rateLimit.Limiter
}

Primary is an instance of the log's primary node

func (Primary) InternalHTTPMux

func (p Primary) InternalHTTPMux(prefix string) *http.ServeMux

InternalHTTPMux() regsiters all internal handlers

func (Primary) PublicHTTPMux

func (p Primary) PublicHTTPMux(prefix string) *http.ServeMux

PublicHTTPHandler registers all external handlers

Jump to

Keyboard shortcuts

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