Change module name to go.fd.io/govpp
[govpp.git] / binapi / vpe_types / vpe_types.ba.go
index b4d324f..fc44700 100644 (file)
@@ -1,7 +1,7 @@
 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
 // versions:
-//  binapi-generator: v0.4.0
-//  VPP:              20.05.1-release
+//  binapi-generator: v0.6.0-dev
+//  VPP:              22.02-release
 // source: /usr/share/vpp/api/core/vpe_types.api.json
 
 // Package vpe_types contains generated bindings for API file vpe_types.api.
@@ -17,7 +17,7 @@ import (
        "strconv"
        "time"
 
-       api "git.fd.io/govpp.git/api"
+       api "go.fd.io/govpp/api"
 )
 
 // This is a compile-time assertion to ensure that this generated file
@@ -26,6 +26,12 @@ import (
 // GoVPP api package needs to be updated.
 const _ = api.GoVppAPIPackageIsVersion2
 
+const (
+       APIFile    = "vpe_types"
+       APIVersion = "1.0.0"
+       VersionCrc = 0x5f754a1c
+)
+
 // LogLevel defines enum 'log_level'.
 type LogLevel uint32
 
@@ -86,18 +92,22 @@ func NewTimestamp(t time.Time) Timestamp {
        ns := float64(sec) + float64(nsec/1e9)
        return Timestamp(ns)
 }
+
 func (x Timestamp) ToTime() time.Time {
        ns := int64(x * 1e9)
        sec := ns / 1e9
        nsec := ns % 1e9
        return time.Unix(sec, nsec)
 }
+
 func (x Timestamp) String() string {
        return x.ToTime().String()
 }
+
 func (x *Timestamp) MarshalText() ([]byte, error) {
        return []byte(x.ToTime().Format(time.RFC3339Nano)), nil
 }
+
 func (x *Timestamp) UnmarshalText(text []byte) error {
        t, err := time.Parse(time.RFC3339Nano, string(text))
        if err != nil {