aboutsummaryrefslogtreecommitdiffstats
path: root/adapter/socketclient/binapi.go
blob: 5de0c30d0769559b5bd8488dd5d08789827fca89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package socketclient

import (
	"git.fd.io/govpp.git/api"
)

// MessageTableEntry represents VPP binary API type 'message_table_entry'.
type MessageTableEntry struct {
	Index uint16
	Name  string `struc:"[64]byte"`
}

func (*MessageTableEntry) GetTypeName() string {
	return "message_table_entry"
}

// SockclntCreate represents VPP binary API message 'sockclnt_create'.
type SockclntCreate struct {
	Name string `struc:"[64]byte"`
}

func (*SockclntCreate) GetMessageName() string {
	return "sockclnt_create"
}
func (*SockclntCreate) GetCrcString() string {
	return "455fb9c4"
}
func (*SockclntCreate) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

// SockclntCreateReply represents VPP binary API message 'sockclnt_create_reply'.
type SockclntCreateReply struct {
	Response     int32
	Index        uint32
	Count        uint16 `struc:"sizeof=MessageTable"`
	MessageTable []MessageTableEntry
}

func (*SockclntCreateReply) GetMessageName() string {
	return "sockclnt_create_reply"
}
func (*SockclntCreateReply) GetCrcString() string {
	return "35166268"
}
func (*SockclntCreateReply) GetMessageType() api.MessageType {
	return api.RequestMessage
}

// SockclntDelete represents VPP binary API message 'sockclnt_delete'.
type SockclntDelete struct {
	Index uint32
}

func (*SockclntDelete) GetMessageName() string {
	return "sockclnt_delete"
}
func (*SockclntDelete) GetCrcString() string {
	return "8ac76db6"
}
func (*SockclntDelete) GetMessageType() api.MessageType {
	return api.RequestMessage
}

// SockclntDeleteReply represents VPP binary API message 'sockclnt_delete_reply'.
type SockclntDeleteReply struct {
	Response int32
}

func (*SockclntDeleteReply) GetMessageName() string {
	return "sockclnt_delete_reply"
}
func (*SockclntDeleteReply) GetCrcString() string {
	return "8f38b1ee"
}
func (*SockclntDeleteReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

// ModuleVersion represents VPP binary API type 'module_version'.
type ModuleVersion struct {
	Major uint32
	Minor uint32
	Patch uint32
	Name  string `struc:"[64]byte"`
}

func (*ModuleVersion) GetTypeName() string {
	return "module_version"
}

// APIVersions represents VPP binary API message 'api_versions'.
type APIVersions struct{}

func (*APIVersions) GetMessageName() string {
	return "api_versions"
}
func (*APIVersions) GetCrcString() string {
	return "51077d14"
}
func (*APIVersions) GetMessageType() api.MessageType {
	return api.RequestMessage
}

// APIVersionsReply represents VPP binary API message 'api_versions_reply'.
type APIVersionsReply struct {
	Retval      int32
	Count       uint32 `struc:"sizeof=APIVersions"`
	APIVersions []ModuleVersion
}

func (*APIVersionsReply) GetMessageName() string {
	return "api_versions_reply"
}
func (*APIVersionsReply) GetCrcString() string {
	return "5f0d99d6"
}
func (*APIVersionsReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}