vmess

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package vmess is a generated protocol buffer package.

It is generated from these files:

v2ray.com/core/proxy/vmess/account.proto

It has these top-level messages:

AccountPB

Package vmess contains the implementation of VMess protocol and transportation.

VMess contains both inbound and outbound connections. VMess inbound is usually used on servers together with 'freedom' to talk to final destination, while VMess outbound is usually used on clients with 'socks' for proxying.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccount

func NewAccount() protocol.AsAccount

func NewTimedUserValidator

func NewTimedUserValidator(hasher protocol.IDHash) protocol.UserValidator

Types

type Account

type Account struct {
	ID       *protocol.ID
	AlterIDs []*protocol.ID
}

func (*Account) AnyValidID added in v1.21.2

func (this *Account) AnyValidID() *protocol.ID

func (*Account) Equals added in v1.21.2

func (this *Account) Equals(account protocol.Account) bool

type AccountPB

type AccountPB struct {
	Id      string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	AlterId uint32 `protobuf:"varint,2,opt,name=alter_id,json=alterId" json:"alter_id,omitempty"`
}

func (*AccountPB) AsAccount

func (this *AccountPB) AsAccount() (protocol.Account, error)

func (*AccountPB) Descriptor

func (*AccountPB) Descriptor() ([]byte, []int)

func (*AccountPB) ProtoMessage

func (*AccountPB) ProtoMessage()

func (*AccountPB) Reset

func (m *AccountPB) Reset()

func (*AccountPB) String

func (m *AccountPB) String() string

type TimedUserValidator

type TimedUserValidator struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*TimedUserValidator) Add

func (this *TimedUserValidator) Add(user *protocol.User) error

func (*TimedUserValidator) Get

func (this *TimedUserValidator) Get(userHash []byte) (*protocol.User, protocol.Timestamp, bool)

func (*TimedUserValidator) Release added in v1.21.2

func (this *TimedUserValidator) Release()

Directories

Path Synopsis
Package inbound is a generated protocol buffer package.
Package inbound is a generated protocol buffer package.
Package outbound is a generated protocol buffer package.
Package outbound is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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