github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/cdp/cdp_rpc.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 3 package cdp 4 5 import ( 6 "context" 7 8 api "go.fd.io/govpp/api" 9 ) 10 11 // RPCService defines RPC service cdp. 12 type RPCService interface { 13 CdpEnableDisable(ctx context.Context, in *CdpEnableDisable) (*CdpEnableDisableReply, error) 14 } 15 16 type serviceClient struct { 17 conn api.Connection 18 } 19 20 func NewServiceClient(conn api.Connection) RPCService { 21 return &serviceClient{conn} 22 } 23 24 func (c *serviceClient) CdpEnableDisable(ctx context.Context, in *CdpEnableDisable) (*CdpEnableDisableReply, error) { 25 out := new(CdpEnableDisableReply) 26 err := c.conn.Invoke(ctx, in, out) 27 if err != nil { 28 return nil, err 29 } 30 return out, api.RetvalToVPPApiError(out.Retval) 31 }