v2ray

package
v0.5.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 19 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) Info

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

func (*V2Ray) Init

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

func (*V2Ray) Peers

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

func (*V2Ray) PeersCount

func (s *V2Ray) PeersCount() int

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