xray

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MPL-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Runtime protobuf descriptor for the public integration.proto configuration.

Index

Constants

This section is empty.

Variables

Functions

func DownloadClient

func DownloadClient(ctx context.Context, raw json.RawMessage, tag string) (*http.Client, func(), error)

func HTTPClient

func HTTPClient(ctx context.Context, outbounds []any, tag string) (*http.Client, func(), error)

Types

type ManagerConfig

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

func (*ManagerConfig) Descriptor

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

func (*ManagerConfig) ProtoMessage

func (*ManagerConfig) ProtoMessage()

func (*ManagerConfig) ProtoReflect

func (x *ManagerConfig) ProtoReflect() protoreflect.Message

func (*ManagerConfig) Reset

func (x *ManagerConfig) Reset()

func (*ManagerConfig) String

func (x *ManagerConfig) String() string

type Prepared

type Prepared struct {
	Source      protocol.Config
	Native      map[string]any
	Core        *core.Config
	Inbounds    map[string]*core.InboundHandlerConfig
	BaseHash    [32]byte
	InboundBase map[string]string
	Epochs      map[string]string
}

func Prepare

func Prepare(c protocol.Config) (*Prepared, error)

type Runtime

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

func New

func New(registry *sessions.Registry) *Runtime

func (*Runtime) Apply

func (r *Runtime) Apply(ctx context.Context, c wire.Config) error

func (*Runtime) Ready

func (r *Runtime) Ready() bool

func (*Runtime) Stop

func (r *Runtime) Stop()

Jump to

Keyboard shortcuts

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