bastion

package
v0.0.0-...-ed9e94b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package bastion is an implementation of a witness feeder which talks to a bastion server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeedBastion

func FeedBastion(ctx context.Context, c Config, w feeder.Witness) error

FeedBastion talks to the bastion to receive checkpoints to be witnessed. This function returns once the provided context is done.

Types

type Config

type Config struct {
	Addr            string
	Prefix          string
	Logs            []config.Log
	BastionKey      ed25519.PrivateKey
	WitnessVerifier note.Verifier
	Limits          RequestLimits
}

type RequestLimits

type RequestLimits struct {
	// TotalPerSecond is the total number of incoming requests per second which should be served, zero mean no requests will be served.
	TotalPerSecond rate.Limit
}

RequestLimits describes how incoming requests should be limited.

Jump to

Keyboard shortcuts

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