mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 05:04:22 +00:00
- Update go.mod module path from mhsanaei/3x-ui/v3 to saeederamy/3x-ui/v3 - Update all 73 Go files' import paths accordingly - Fix README.fa_IR.md install command to point to fork's main branch The fork was referencing the original repo's module path in go.mod and all Go source imports, making it dependent on MHSanaei's namespace at build time. https://claude.ai/code/session_01M6d5atbWjuLTj6UwRHoK5m
24 lines
713 B
Go
24 lines
713 B
Go
package runtime
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/saeederamy/3x-ui/v3/database/model"
|
|
)
|
|
|
|
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
|
|
}
|