1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "go.fd.io/govpp/api"
11 // RPCService defines RPC service adl.
12 type RPCService interface {
13 AdlAllowlistEnableDisable(ctx context.Context, in *AdlAllowlistEnableDisable) (*AdlAllowlistEnableDisableReply, error)
14 AdlInterfaceEnableDisable(ctx context.Context, in *AdlInterfaceEnableDisable) (*AdlInterfaceEnableDisableReply, error)
17 type serviceClient struct {
21 func NewServiceClient(conn api.Connection) RPCService {
22 return &serviceClient{conn}
25 func (c *serviceClient) AdlAllowlistEnableDisable(ctx context.Context, in *AdlAllowlistEnableDisable) (*AdlAllowlistEnableDisableReply, error) {
26 out := new(AdlAllowlistEnableDisableReply)
27 err := c.conn.Invoke(ctx, in, out)
31 return out, api.RetvalToVPPApiError(out.Retval)
34 func (c *serviceClient) AdlInterfaceEnableDisable(ctx context.Context, in *AdlInterfaceEnableDisable) (*AdlInterfaceEnableDisableReply, error) {
35 out := new(AdlInterfaceEnableDisableReply)
36 err := c.conn.Invoke(ctx, in, out)
40 return out, api.RetvalToVPPApiError(out.Retval)