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

Method AlertInbound

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

Source from the content-addressed store, hash-verified

8)
9
10func (x *XrayHandler) AlertInbound(ctx context.Context, tag string, operation *serial.TypedMessage) error {
11 client := *x.HandlerServiceClient
12 _, err := client.AlterInbound(ctx, &command.AlterInboundRequest{Tag: tag, Operation: operation})
13 if err != nil {
14 return err
15 }
16 return nil
17}
18
19func (x *XrayHandler) AlertOutbound(ctx context.Context, tag string, operation *serial.TypedMessage) error {
20 client := *x.HandlerServiceClient

Callers 2

AddInboundUserMethod · 0.95
RemoveInboundUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected