Files
trihuy-russian/web/runtime/runtime.go
T

25 lines
711 B
Go
Raw Permalink Normal View History

2026-05-09 17:38:48 +02:00
package runtime
import (
"context"
2026-05-10 02:13:42 +02:00
"github.com/mhsanaei/3x-ui/v3/database/model"
2026-05-09 17:38:48 +02:00
)
type Runtime interface {
Name() string
AddInbound(ctx context.Context, ib *model.Inbound) error
DelInbound(ctx context.Context, ib *model.Inbound) error
UpdateInbound(ctx context.Context, oldIb, newIb *model.Inbound) error
AddUser(ctx context.Context, ib *model.Inbound, userMap map[string]any) error
RemoveUser(ctx context.Context, ib *model.Inbound, email string) error
RestartXray(ctx context.Context) error
ResetClientTraffic(ctx context.Context, ib *model.Inbound, email string) error
ResetInboundClientTraffics(ctx context.Context, ib *model.Inbound) error
ResetAllTraffics(ctx context.Context) error
}