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