package runtime import ( "context" "github.com/mhsanaei/3x-ui/v3/internal/database/model" ) // Local is the runtime for inbounds with no node assignment. The lite // master is a pure control plane — it runs no local xray core and no // MTProto/AmneziaWG sidecars (removed in the P9(4b) round along with the // whole local-core path) — so every operation is a no-op success: the // database is the only state a node-less inbound has, and the service // layer has already written it by the time these are called. Inbounds // only become live once they are homed on an agent node (Remote). type Local struct{} func NewLocal() *Local { return &Local{} } func (l *Local) Name() string { return "local" } func (l *Local) AddInbound(_ context.Context, _ *model.Inbound) error { return nil } func (l *Local) DelInbound(_ context.Context, _ *model.Inbound) error { return nil } func (l *Local) UpdateInbound(_ context.Context, _, _ *model.Inbound) error { return nil } func (l *Local) AddUser(_ context.Context, _ *model.Inbound, _ map[string]any) error { return nil } func (l *Local) RemoveUser(_ context.Context, _ *model.Inbound, _ string) error { return nil } func (l *Local) UpdateUser(_ context.Context, _ *model.Inbound, _ string, _ model.Client) error { return nil } func (l *Local) DeleteUser(_ context.Context, _ *model.Inbound, _ string) error { return nil } func (l *Local) AddClient(_ context.Context, _ *model.Inbound, _ model.Client) error { return nil } func (l *Local) DeleteClient(_ context.Context, _ string) error { return nil } func (l *Local) RestartXray(_ context.Context) error { return nil } func (l *Local) ResetClientTraffic(_ context.Context, _ *model.Inbound, _ string) error { return nil } func (l *Local) ResetInboundTraffic(_ context.Context, _ *model.Inbound) error { return nil } func (l *Local) ResetAllTraffics(_ context.Context) error { return nil }