github.com/edwarnicke/govpp@v0.0.0-20230130211138-14ef5d20b1d0/binapi/gso/gso_rpc.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 3 package gso 4 5 import ( 6 "context" 7 8 api "git.fd.io/govpp.git/api" 9 ) 10 11 // RPCService defines RPC service gso. 12 type RPCService interface { 13 FeatureGsoEnableDisable(ctx context.Context, in *FeatureGsoEnableDisable) (*FeatureGsoEnableDisableReply, 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) FeatureGsoEnableDisable(ctx context.Context, in *FeatureGsoEnableDisable) (*FeatureGsoEnableDisableReply, error) { 25 out := new(FeatureGsoEnableDisableReply) 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 }