v2ray-core: github.com/v2ray/v2ray-core/infra/control Index | Files | Directories

package control

import "github.com/v2ray/v2ray-core/infra/control"

Index

Package Files

api.go cert.go command.go config.go control.go errors.generated.go fetch.go love.go tlsping.go uuid.go verify.go

func FetchHTTPContent Uses

func FetchHTTPContent(target string) ([]byte, error)

FetchHTTPContent dials https for remote content

func PrintUsage Uses

func PrintUsage()

func RegisterCommand Uses

func RegisterCommand(cmd Command) error

type ApiCommand Uses

type ApiCommand struct{}

func (*ApiCommand) Description Uses

func (c *ApiCommand) Description() Description

func (*ApiCommand) Execute Uses

func (c *ApiCommand) Execute(args []string) error

func (*ApiCommand) Name Uses

func (c *ApiCommand) Name() string

type CertificateCommand Uses

type CertificateCommand struct {
}

func (*CertificateCommand) Description Uses

func (c *CertificateCommand) Description() Description

func (*CertificateCommand) Execute Uses

func (c *CertificateCommand) Execute(args []string) error

func (*CertificateCommand) Name Uses

func (c *CertificateCommand) Name() string

type Command Uses

type Command interface {
    Name() string
    Description() Description
    Execute(args []string) error
}

func GetCommand Uses

func GetCommand(name string) Command

type ConfigCommand Uses

type ConfigCommand struct{}

ConfigCommand is the json to pb convert struct

func (*ConfigCommand) Description Uses

func (c *ConfigCommand) Description() Description

Description for help usage

func (*ConfigCommand) Execute Uses

func (c *ConfigCommand) Execute(args []string) error

Execute real work here.

func (*ConfigCommand) LoadArg Uses

func (c *ConfigCommand) LoadArg(arg string) (out io.Reader, err error)

LoadArg loads one arg, maybe an remote url, or local file path

func (*ConfigCommand) Name Uses

func (c *ConfigCommand) Name() string

Name for cmd usage

type Description Uses

type Description struct {
    Short string
    Usage []string
}

type FetchCommand Uses

type FetchCommand struct{}

func (*FetchCommand) Description Uses

func (c *FetchCommand) Description() Description

func (*FetchCommand) Execute Uses

func (c *FetchCommand) Execute(args []string) error

func (*FetchCommand) Name Uses

func (c *FetchCommand) Name() string

type LoveCommand Uses

type LoveCommand struct{}

func (*LoveCommand) Description Uses

func (c *LoveCommand) Description() Description

func (*LoveCommand) Execute Uses

func (*LoveCommand) Execute([]string) error

func (*LoveCommand) Hidden Uses

func (*LoveCommand) Hidden() bool

func (*LoveCommand) Name Uses

func (*LoveCommand) Name() string

type TlsPingCommand Uses

type TlsPingCommand struct{}

func (*TlsPingCommand) Description Uses

func (c *TlsPingCommand) Description() Description

func (*TlsPingCommand) Execute Uses

func (c *TlsPingCommand) Execute(args []string) error

func (*TlsPingCommand) Name Uses

func (c *TlsPingCommand) Name() string

type UUIDCommand Uses

type UUIDCommand struct{}

func (*UUIDCommand) Description Uses

func (c *UUIDCommand) Description() Description

func (*UUIDCommand) Execute Uses

func (c *UUIDCommand) Execute([]string) error

func (*UUIDCommand) Name Uses

func (c *UUIDCommand) Name() string

type VerifyCommand Uses

type VerifyCommand struct{}

func (*VerifyCommand) Description Uses

func (c *VerifyCommand) Description() Description

func (*VerifyCommand) Execute Uses

func (c *VerifyCommand) Execute(args []string) error

func (*VerifyCommand) Name Uses

func (c *VerifyCommand) Name() string

Directories

PathSynopsis
main

Package control imports 34 packages (graph). Updated 2020-10-23. Refresh now. Tools for package owners.