seer

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBlockTime         = 60 * time.Second
	ValidServiceResponseTime = 5 * time.Minute
)
View Source
var MaxDnsResponseTime = 3 * time.Second

Functions

func Package

func Package() config.ProtoCommandIface

Types

type Config

type Config struct {
	config.Node `yaml:"z,omitempty"`
}

type Options

type Options func(*Service) error

func Resolver

func Resolver(resolver iface.Resolver) Options

type Service

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

func New

func New(ctx context.Context, config *tauConfig.Node, opts ...Options) (*Service, error)

func (*Service) Close

func (srv *Service) Close() error

func (*Service) GitHubTokenHTTPAuth

func (srv *Service) GitHubTokenHTTPAuth(ctx http.Context) (interface{}, error)

func (*Service) GitHubTokenHTTPAuthCleanup

func (srv *Service) GitHubTokenHTTPAuthCleanup(ctx http.Context) (interface{}, error)

func (*Service) KV

func (s *Service) KV() kvdb.KVDB

func (*Service) Node

func (s *Service) Node() peer.Node

func (*Service) Resolver

func (s *Service) Resolver() iface.Resolver

Jump to

Keyboard shortcuts

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