mirrors

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mirrors

type Mirrors struct {
	Name string

	MaxConn int
	// contains filtered or unexported fields
}

func (*Mirrors) Add

func (m *Mirrors) Add(h [32]byte)

Add a mirror to our list of mirrors

func (*Mirrors) Connect

func (m *Mirrors) Connect(addressPort string) error

func (*Mirrors) Done

func (m *Mirrors) Done()

func (*Mirrors) Init

func (m *Mirrors) Init(name string)

func (*Mirrors) IsMirror

func (m *Mirrors) IsMirror(h [32]byte) (rval bool)

Check if we have seen a mirror and add it if it is new

func (*Mirrors) Len

func (m *Mirrors) Len() int

func (*Mirrors) Listen

func (m *Mirrors) Listen(port string)

func (*Mirrors) Load

func (m *Mirrors) Load(filename string) error

func (*Mirrors) Save

func (m *Mirrors) Save(filename string) error

func (*Mirrors) Send

func (m *Mirrors) Send(h [32]byte) (err error)

Send a new mirror to all our connections

func (*Mirrors) SendC

func (m *Mirrors) SendC(conn net.Conn, h [32]byte) (err error)

Send a new mirror to a connection

Jump to

Keyboard shortcuts

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