Help us shape the future of Go! Take the 2026 Go Developer Survey

startcmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKMSURL

func BuildKMSURL(base, uri string) string

BuildKMSURL builds kms URL.

func Cmd

func Cmd(server server) (*cobra.Command, error)

Cmd returns the Cobra start command.

func ValidateAuthorizationBearerToken added in v1.0.0

func ValidateAuthorizationBearerToken(w http.ResponseWriter, r *http.Request, readToken, writeToken string) bool

ValidateAuthorizationBearerToken validate token.

Types

type AWSMetricsProvider added in v1.0.0

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

AWSMetricsProvider aws metrics provider.

func NewAWSMetricsProvider added in v1.0.0

func NewAWSMetricsProvider(mf monitoring.MetricFactory) *AWSMetricsProvider

NewAWSMetricsProvider return new instance.

func (*AWSMetricsProvider) ExportPublicKeyCount added in v1.0.0

func (a *AWSMetricsProvider) ExportPublicKeyCount()

ExportPublicKeyCount increments the number of export public key hits.

func (*AWSMetricsProvider) ExportPublicKeyTime added in v1.0.0

func (a *AWSMetricsProvider) ExportPublicKeyTime(value time.Duration)

ExportPublicKeyTime records the time for export public key.

func (*AWSMetricsProvider) SignCount added in v1.0.0

func (a *AWSMetricsProvider) SignCount()

SignCount increments the number of sign hits.

func (*AWSMetricsProvider) SignTime added in v1.0.0

func (a *AWSMetricsProvider) SignTime(value time.Duration)

SignTime records the time for sign.

func (*AWSMetricsProvider) VerifyCount added in v1.0.0

func (a *AWSMetricsProvider) VerifyCount()

VerifyCount increments the number of verify hits.

func (*AWSMetricsProvider) VerifyTime added in v1.0.0

func (a *AWSMetricsProvider) VerifyTime(value time.Duration)

VerifyTime records the time for verify.

type HTTPServer

type HTTPServer struct{}

HTTPServer represents an actual server implementation.

func (*HTTPServer) ListenAndServe

func (s *HTTPServer) ListenAndServe(host string, router http.Handler, certFile, keyFile string) error

ListenAndServe starts the server using the standard Go HTTP server implementation.

type StorageProvider added in v1.0.0

type StorageProvider storage.Provider

StorageProvider represents a storage provider.

type TrillianAdminServer added in v0.1.2

type TrillianAdminServer trillian.TrillianAdminServer

TrillianAdminServer interface.

type TrillianLogServer added in v0.1.2

type TrillianLogServer trillian.TrillianLogServer

TrillianLogServer interface.

Jump to

Keyboard shortcuts

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