Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FieldTypeMap = map[string]FieldType{ "FT_NONE": FT_NONE, "FT_PROTOCOL": FT_PROTOCOL, "FT_BOOLEAN": FT_BOOLEAN, "FT_CHAR": FT_CHAR, "FT_UINT8": FT_UINT8, "FT_UINT16": FT_UINT16, "FT_UINT24": FT_UINT24, "FT_UINT32": FT_UINT32, "FT_UINT40": FT_UINT40, "FT_UINT48": FT_UINT48, "FT_UINT56": FT_UINT56, "FT_UINT64": FT_UINT64, "FT_INT8": FT_INT8, "FT_INT16": FT_INT16, "FT_INT24": FT_INT24, "FT_INT32": FT_INT32, "FT_INT40": FT_INT40, "FT_INT48": FT_INT48, "FT_INT56": FT_INT56, "FT_INT64": FT_INT64, "FT_IEEE_11073_SFLOAT": FT_IEEE_11073_SFLOAT, "FT_IEEE_11073_FLOAT": FT_IEEE_11073_FLOAT, "FT_FLOAT": FT_FLOAT, "FT_DOUBLE": FT_DOUBLE, "FT_ABSOLUTE_TIME": FT_ABSOLUTE_TIME, "FT_RELATIVE_TIME": FT_RELATIVE_TIME, "FT_STRING": FT_STRING, "FT_STRINGZ": FT_STRINGZ, "FT_UINT_STRING": FT_UINT_STRING, "FT_ETHER": FT_ETHER, "FT_BYTES": FT_BYTES, "FT_UINT_BYTES": FT_UINT_BYTES, "FT_IPv4": FT_IPv4, "FT_IPv6": FT_IPv6, "FT_IPXNET": FT_IPXNET, "FT_FRAMENUM": FT_FRAMENUM, "FT_PCRE": FT_PCRE, "FT_GUID": FT_GUID, "FT_OID": FT_OID, "FT_EUI64": FT_EUI64, "FT_AX25": FT_AX25, "FT_VINES": FT_VINES, "FT_REL_OID": FT_REL_OID, "FT_SYSTEM_ID": FT_SYSTEM_ID, "FT_STRINGZPAD": FT_STRINGZPAD, "FT_FCWWN": FT_FCWWN, "FT_NUM_TYPES": FT_NUM_TYPES, }
Functions ¶
func DeleteCachedFields ¶
func DeleteCachedFields() error
Types ¶
type FieldType ¶
type FieldType uint
const ( FT_NONE FieldType = iota /* used for text labels with no value */ FT_PROTOCOL FieldType = iota FT_BOOLEAN FieldType = iota /* TRUE and FALSE come from <glib.h> */ FT_CHAR FieldType = iota /* 1-octet character as 0-255 */ FT_UINT8 FieldType = iota FT_UINT16 FieldType = iota FT_UINT24 FieldType = iota /* really a UINT32, but displayed as 6 hex-digits if FD_HEX*/ FT_UINT32 FieldType = iota FT_UINT40 FieldType = iota /* really a UINT64, but displayed as 10 hex-digits if FD_HEX*/ FT_UINT48 FieldType = iota /* really a UINT64, but displayed as 12 hex-digits if FD_HEX*/ FT_UINT56 FieldType = iota /* really a UINT64, but displayed as 14 hex-digits if FD_HEX*/ FT_UINT64 FieldType = iota FT_INT8 FieldType = iota FT_INT16 FieldType = iota FT_INT24 FieldType = iota /* same as for UINT24 */ FT_INT32 FieldType = iota FT_INT40 FieldType = iota /* same as for UINT40 */ FT_INT48 FieldType = iota /* same as for UINT48 */ FT_INT56 FieldType = iota /* same as for UINT56 */ FT_INT64 FieldType = iota FT_IEEE_11073_SFLOAT FieldType = iota FT_IEEE_11073_FLOAT FieldType = iota FT_FLOAT FieldType = iota FT_DOUBLE FieldType = iota FT_ABSOLUTE_TIME FieldType = iota FT_RELATIVE_TIME FieldType = iota FT_STRING FieldType = iota FT_STRINGZ FieldType = iota /* for use with proto_tree_add_item() */ FT_UINT_STRING FieldType = iota /* for use with proto_tree_add_item() */ FT_ETHER FieldType = iota FT_BYTES FieldType = iota FT_UINT_BYTES FieldType = iota FT_IPv4 FieldType = iota FT_IPv6 FieldType = iota FT_IPXNET FieldType = iota FT_FRAMENUM FieldType = iota /* a UINT32, but if selected lets you go to frame with that number */ FT_PCRE FieldType = iota /* a compiled Perl-Compatible Regular Expression object */ FT_GUID FieldType = iota /* GUID, UUID */ FT_OID FieldType = iota /* OBJECT IDENTIFIER */ FT_EUI64 FieldType = iota FT_AX25 FieldType = iota FT_VINES FieldType = iota FT_REL_OID FieldType = iota /* RELATIVE-OID */ FT_SYSTEM_ID FieldType = iota FT_STRINGZPAD FieldType = iota /* for use with proto_tree_add_item() */ FT_FCWWN FieldType = iota FT_NUM_TYPES FieldType = iota /* last item number plus one */ )
from epan/ftypes/ftypes.h
enum ftenum {
func ParseFieldType ¶
type FieldsAndProtos ¶
type FieldsAndProtos struct { Fields interface{} // protocol or field or map[string]interface{} Protocols map[string]struct{} }
type IPrefixCompleter ¶
type IPrefixCompleter interface {
Completions(prefix string, cb IPrefixCompleterCallback)
}
type IPrefixCompleterCallback ¶
type IPrefixCompleterCallback interface {
Call([]string)
}
type TSharkFields ¶
type TSharkFields struct {
// contains filtered or unexported fields
}
func New ¶
func New() *TSharkFields
func (*TSharkFields) Completions ¶
func (t *TSharkFields) Completions(prefix string, cb IPrefixCompleterCallback)
func (*TSharkFields) Init ¶
func (w *TSharkFields) Init() error
Can be run asynchronously. This ought to use interfaces to make it testable.
func (*TSharkFields) InitNoCache ¶
func (w *TSharkFields) InitNoCache() error
func (*TSharkFields) LookupField ¶
func (t *TSharkFields) LookupField(name string) (bool, Field)
Click to show internal directories.
Click to hide internal directories.