v2ray

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoLen = 2 + 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type V2Ray

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

func NewV2Ray

func NewV2Ray() *V2Ray

func (*V2Ray) AddPeer

func (s *V2Ray) AddPeer(data []byte) (result []byte, err error)

func (*V2Ray) HasPeer added in v0.5.1

func (s *V2Ray) HasPeer(data []byte) bool

func (*V2Ray) Info

func (s *V2Ray) Info() []byte

func (*V2Ray) Init

func (s *V2Ray) Init(home string) (err error)

func (*V2Ray) PeerCount added in v0.5.1

func (s *V2Ray) PeerCount() int

func (*V2Ray) Peers

func (s *V2Ray) Peers() (items []types.Peer, err error)

func (*V2Ray) RemovePeer

func (s *V2Ray) RemovePeer(data []byte) error

func (*V2Ray) Start

func (s *V2Ray) Start() error

func (*V2Ray) Stop

func (s *V2Ray) Stop() error

func (*V2Ray) Type

func (s *V2Ray) Type() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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