MCPcopy Create free account
hub / github.com/PasarGuard/node / AlertOutbound

Method AlertOutbound

backend/xray/api/proxyman.go:19–26  ·  view source on GitHub ↗
(ctx context.Context, tag string, operation *serial.TypedMessage)

Source from the content-addressed store, hash-verified

17}
18
19func (x *XrayHandler) AlertOutbound(ctx context.Context, tag string, operation *serial.TypedMessage) error {
20 client := *x.HandlerServiceClient
21 _, err := client.AlterOutbound(ctx, &command.AlterOutboundRequest{Tag: tag, Operation: operation})
22 if err != nil {
23 return err
24 }
25 return nil
26}
27
28func (x *XrayHandler) AddInboundUser(ctx context.Context, tag string, user Account) error {
29 // Create the AddUserOperation message

Callers 2

AddOutboundUserMethod · 0.95
RemoveOutboundUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected