json

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2015 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTarget

type ConfigTarget struct {
	Address    v2net.Address
	Users      []*ConfigUser
	TCPEnabled bool
	UDPEnabled bool
}

func (*ConfigTarget) UnmarshalJSON

func (t *ConfigTarget) UnmarshalJSON(data []byte) error

type ConfigUser

type ConfigUser struct {
	Id    *config.ID
	Email string
}

ConfigUser is an user account in VMess configuration.

func (*ConfigUser) ID

func (u *ConfigUser) ID() *config.ID

func (*ConfigUser) UnmarshalJSON

func (u *ConfigUser) UnmarshalJSON(data []byte) error

type Inbound

type Inbound struct {
	AllowedClients []*ConfigUser `json:"clients"`
	UDP            bool          `json:"udp"`
}

func (*Inbound) AllowedUsers

func (c *Inbound) AllowedUsers() []vmessconfig.User

func (*Inbound) UDPEnabled

func (c *Inbound) UDPEnabled() bool

type Outbound

type Outbound struct {
	TargetList []*ConfigTarget `json:"vnext"`
}

func (*Outbound) Targets

func (o *Outbound) Targets() []*vmessconfig.OutboundTarget

type RawConfigTarget

type RawConfigTarget struct {
	Address string        `json:"address"`
	Port    uint16        `json:"port"`
	Users   []*ConfigUser `json:"users"`
	Network string        `json:"network"`
}

func (RawConfigTarget) HasNetwork

func (config RawConfigTarget) HasNetwork(network string) bool

Jump to

Keyboard shortcuts

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