bouncer

package
v0.0.0-...-f877a04 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package bouncer contains a OONI bouncer client implementation.

Specifically we implement v2.0.0 of the OONI bouncer specification defined in https://github.com/ooni/spec/blob/master/backends/bk-004-bouncer.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCollectors

func GetCollectors(ctx context.Context, config Config) ([]model.Service, error)

GetCollectors queries the bouncer for collectors. Returns a list of entries on success; an error on failure.

func GetTestHelpers

func GetTestHelpers(ctx context.Context, config Config) (map[string][]model.Service, error)

GetTestHelpers is like GetCollectors but for test helpers.

Types

type Config

type Config struct {
	// BaseURL is the optional bouncer base URL to use.
	BaseURL string
}

Config contains the bouncer configuration.

Jump to

Keyboard shortcuts

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