f2ftp

package
v0.0.0-...-8b2a550 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2013 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockAcceptor

type BlockAcceptor interface {
	Accept(hash []byte) bool
}

type BoolBlockAcceptor

type BoolBlockAcceptor bool
const AllBlockAcceptor BoolBlockAcceptor = true
const NullBlockAcceptor BoolBlockAcceptor = false

func (BoolBlockAcceptor) Accept

func (b BoolBlockAcceptor) Accept(hash []byte) bool

type Service

type Service struct {

	// Quit Requests made by the user
	ChQuit chan int
	// Pull Requests made by the user
	ChPull chan []byte
	Debug  bool
	// contains filtered or unexported fields
}

func NewService

func NewService(acc BlockAcceptor, bck bucket.Bucket) *Service

func (*Service) Serve

func (s *Service) Serve(conn net.Conn)

Jump to

Keyboard shortcuts

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