-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(automatic) update dialects to rev https://github.com/mavlink/mavlink…
- Loading branch information
gomavlib-bot
committed
Dec 15, 2023
1 parent
c3da804
commit 7f99cbe
Showing
36 changed files
with
578 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
pkg/dialects/all/enum_airlink_eye_gs_hole_push_resp_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE | ||
|
||
const ( | ||
AIRLINK_HPR_PARTNER_NOT_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_NOT_READY | ||
AIRLINK_HPR_PARTNER_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_READY | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_EYE_HOLE_PUSH_TYPE | ||
|
||
const ( | ||
AIRLINK_HP_NOT_PENETRATED AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_NOT_PENETRATED | ||
AIRLINK_HP_BROKEN AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_BROKEN | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_EYE_IP_VERSION | ||
|
||
const ( | ||
AIRLINK_IP_V4 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V4 | ||
AIRLINK_IP_V6 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V6 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_EYE_TURN_INIT_TYPE | ||
|
||
const ( | ||
AIRLINK_TURN_INIT_START AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_START | ||
AIRLINK_TURN_INIT_OK AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_OK | ||
AIRLINK_TURN_INIT_BAD AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_BAD | ||
) |
10 changes: 10 additions & 0 deletions
10
pkg/dialects/all/message_airlink_eye_gs_hole_push_request.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// Request to hole punching | ||
type MessageAirlinkEyeGsHolePushRequest = csairlink.MessageAirlinkEyeGsHolePushRequest |
10 changes: 10 additions & 0 deletions
10
pkg/dialects/all/message_airlink_eye_gs_hole_push_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// Response information about the connected device | ||
type MessageAirlinkEyeGsHolePushResponse = csairlink.MessageAirlinkEyeGsHolePushResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// A package with information about the hole punching status. It is used for constant sending to avoid NAT closing timeout. | ||
type MessageAirlinkEyeHp = csairlink.MessageAirlinkEyeHp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package all | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// Initializing the TURN protocol | ||
type MessageAirlinkEyeTurnInit = csairlink.MessageAirlinkEyeTurnInit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
pkg/dialects/ardupilotmega/enum_airlink_eye_gs_hole_push_resp_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE | ||
|
||
const ( | ||
AIRLINK_HPR_PARTNER_NOT_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_NOT_READY | ||
AIRLINK_HPR_PARTNER_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_READY | ||
) |
14 changes: 14 additions & 0 deletions
14
pkg/dialects/ardupilotmega/enum_airlink_eye_hole_push_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_EYE_HOLE_PUSH_TYPE | ||
|
||
const ( | ||
AIRLINK_HP_NOT_PENETRATED AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_NOT_PENETRATED | ||
AIRLINK_HP_BROKEN AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_BROKEN | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_EYE_IP_VERSION | ||
|
||
const ( | ||
AIRLINK_IP_V4 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V4 | ||
AIRLINK_IP_V6 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V6 | ||
) |
15 changes: 15 additions & 0 deletions
15
pkg/dialects/ardupilotmega/enum_airlink_eye_turn_init_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
type AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_EYE_TURN_INIT_TYPE | ||
|
||
const ( | ||
AIRLINK_TURN_INIT_START AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_START | ||
AIRLINK_TURN_INIT_OK AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_OK | ||
AIRLINK_TURN_INIT_BAD AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_BAD | ||
) |
10 changes: 10 additions & 0 deletions
10
pkg/dialects/ardupilotmega/message_airlink_eye_gs_hole_push_request.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// Request to hole punching | ||
type MessageAirlinkEyeGsHolePushRequest = csairlink.MessageAirlinkEyeGsHolePushRequest |
10 changes: 10 additions & 0 deletions
10
pkg/dialects/ardupilotmega/message_airlink_eye_gs_hole_push_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// Response information about the connected device | ||
type MessageAirlinkEyeGsHolePushResponse = csairlink.MessageAirlinkEyeGsHolePushResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// A package with information about the hole punching status. It is used for constant sending to avoid NAT closing timeout. | ||
type MessageAirlinkEyeHp = csairlink.MessageAirlinkEyeHp |
10 changes: 10 additions & 0 deletions
10
pkg/dialects/ardupilotmega/message_airlink_eye_turn_init.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll | ||
package ardupilotmega | ||
|
||
import ( | ||
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink" | ||
) | ||
|
||
// Initializing the TURN protocol | ||
type MessageAirlinkEyeTurnInit = csairlink.MessageAirlinkEyeTurnInit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
pkg/dialects/csairlink/enum_airlink_eye_gs_hole_push_resp_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package csairlink | ||
|
||
import ( | ||
"fmt" | ||
"strconv" | ||
) | ||
|
||
type AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE uint32 | ||
|
||
const ( | ||
AIRLINK_HPR_PARTNER_NOT_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = 0 | ||
AIRLINK_HPR_PARTNER_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = 1 | ||
) | ||
|
||
var labels_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = map[AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE]string{ | ||
AIRLINK_HPR_PARTNER_NOT_READY: "AIRLINK_HPR_PARTNER_NOT_READY", | ||
AIRLINK_HPR_PARTNER_READY: "AIRLINK_HPR_PARTNER_READY", | ||
} | ||
|
||
var values_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = map[string]AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE{ | ||
"AIRLINK_HPR_PARTNER_NOT_READY": AIRLINK_HPR_PARTNER_NOT_READY, | ||
"AIRLINK_HPR_PARTNER_READY": AIRLINK_HPR_PARTNER_READY, | ||
} | ||
|
||
// MarshalText implements the encoding.TextMarshaler interface. | ||
func (e AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE) MarshalText() ([]byte, error) { | ||
if name, ok := labels_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE[e]; ok { | ||
return []byte(name), nil | ||
} | ||
return []byte(strconv.Itoa(int(e))), nil | ||
} | ||
|
||
// UnmarshalText implements the encoding.TextUnmarshaler interface. | ||
func (e *AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE) UnmarshalText(text []byte) error { | ||
if value, ok := values_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE[string(text)]; ok { | ||
*e = value | ||
} else if value, err := strconv.Atoi(string(text)); err == nil { | ||
*e = AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE(value) | ||
} else { | ||
return fmt.Errorf("invalid label '%s'", text) | ||
} | ||
return nil | ||
} | ||
|
||
// String implements the fmt.Stringer interface. | ||
func (e AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE) String() string { | ||
val, _ := e.MarshalText() | ||
return string(val) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package csairlink | ||
|
||
import ( | ||
"fmt" | ||
"strconv" | ||
) | ||
|
||
type AIRLINK_EYE_HOLE_PUSH_TYPE uint32 | ||
|
||
const ( | ||
AIRLINK_HP_NOT_PENETRATED AIRLINK_EYE_HOLE_PUSH_TYPE = 0 | ||
AIRLINK_HP_BROKEN AIRLINK_EYE_HOLE_PUSH_TYPE = 1 | ||
) | ||
|
||
var labels_AIRLINK_EYE_HOLE_PUSH_TYPE = map[AIRLINK_EYE_HOLE_PUSH_TYPE]string{ | ||
AIRLINK_HP_NOT_PENETRATED: "AIRLINK_HP_NOT_PENETRATED", | ||
AIRLINK_HP_BROKEN: "AIRLINK_HP_BROKEN", | ||
} | ||
|
||
var values_AIRLINK_EYE_HOLE_PUSH_TYPE = map[string]AIRLINK_EYE_HOLE_PUSH_TYPE{ | ||
"AIRLINK_HP_NOT_PENETRATED": AIRLINK_HP_NOT_PENETRATED, | ||
"AIRLINK_HP_BROKEN": AIRLINK_HP_BROKEN, | ||
} | ||
|
||
// MarshalText implements the encoding.TextMarshaler interface. | ||
func (e AIRLINK_EYE_HOLE_PUSH_TYPE) MarshalText() ([]byte, error) { | ||
if name, ok := labels_AIRLINK_EYE_HOLE_PUSH_TYPE[e]; ok { | ||
return []byte(name), nil | ||
} | ||
return []byte(strconv.Itoa(int(e))), nil | ||
} | ||
|
||
// UnmarshalText implements the encoding.TextUnmarshaler interface. | ||
func (e *AIRLINK_EYE_HOLE_PUSH_TYPE) UnmarshalText(text []byte) error { | ||
if value, ok := values_AIRLINK_EYE_HOLE_PUSH_TYPE[string(text)]; ok { | ||
*e = value | ||
} else if value, err := strconv.Atoi(string(text)); err == nil { | ||
*e = AIRLINK_EYE_HOLE_PUSH_TYPE(value) | ||
} else { | ||
return fmt.Errorf("invalid label '%s'", text) | ||
} | ||
return nil | ||
} | ||
|
||
// String implements the fmt.Stringer interface. | ||
func (e AIRLINK_EYE_HOLE_PUSH_TYPE) String() string { | ||
val, _ := e.MarshalText() | ||
return string(val) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
//autogenerated:yes | ||
//nolint:revive,misspell,govet,lll,dupl,gocritic | ||
package csairlink | ||
|
||
import ( | ||
"fmt" | ||
"strconv" | ||
) | ||
|
||
type AIRLINK_EYE_IP_VERSION uint32 | ||
|
||
const ( | ||
AIRLINK_IP_V4 AIRLINK_EYE_IP_VERSION = 0 | ||
AIRLINK_IP_V6 AIRLINK_EYE_IP_VERSION = 1 | ||
) | ||
|
||
var labels_AIRLINK_EYE_IP_VERSION = map[AIRLINK_EYE_IP_VERSION]string{ | ||
AIRLINK_IP_V4: "AIRLINK_IP_V4", | ||
AIRLINK_IP_V6: "AIRLINK_IP_V6", | ||
} | ||
|
||
var values_AIRLINK_EYE_IP_VERSION = map[string]AIRLINK_EYE_IP_VERSION{ | ||
"AIRLINK_IP_V4": AIRLINK_IP_V4, | ||
"AIRLINK_IP_V6": AIRLINK_IP_V6, | ||
} | ||
|
||
// MarshalText implements the encoding.TextMarshaler interface. | ||
func (e AIRLINK_EYE_IP_VERSION) MarshalText() ([]byte, error) { | ||
if name, ok := labels_AIRLINK_EYE_IP_VERSION[e]; ok { | ||
return []byte(name), nil | ||
} | ||
return []byte(strconv.Itoa(int(e))), nil | ||
} | ||
|
||
// UnmarshalText implements the encoding.TextUnmarshaler interface. | ||
func (e *AIRLINK_EYE_IP_VERSION) UnmarshalText(text []byte) error { | ||
if value, ok := values_AIRLINK_EYE_IP_VERSION[string(text)]; ok { | ||
*e = value | ||
} else if value, err := strconv.Atoi(string(text)); err == nil { | ||
*e = AIRLINK_EYE_IP_VERSION(value) | ||
} else { | ||
return fmt.Errorf("invalid label '%s'", text) | ||
} | ||
return nil | ||
} | ||
|
||
// String implements the fmt.Stringer interface. | ||
func (e AIRLINK_EYE_IP_VERSION) String() string { | ||
val, _ := e.MarshalText() | ||
return string(val) | ||
} |
Oops, something went wrong.