graph

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package graph contains generated bindings for API file graph.api.

Contents:

1 enum
3 messages

Index

Constants

View Source
const (
	APIFile    = "graph"
	APIVersion = "1.0.0"
	VersionCrc = 0xa0b3fd1c
)

Variables

View Source
var (
	NodeFlag_name = map[uint32]string{
		1:   "NODE_FLAG_FRAME_NO_FREE_AFTER_DISPATCH",
		2:   "NODE_FLAG_IS_OUTPUT",
		4:   "NODE_FLAG_IS_DROP",
		8:   "NODE_FLAG_IS_PUNT",
		16:  "NODE_FLAG_IS_HANDOFF",
		32:  "NODE_FLAG_TRACE",
		64:  "NODE_FLAG_SWITCH_FROM_INTERRUPT_TO_POLLING_MODE",
		128: "NODE_FLAG_SWITCH_FROM_POLLING_TO_INTERRUPT_MODE",
		256: "NODE_FLAG_TRACE_SUPPORTED",
	}
	NodeFlag_value = map[string]uint32{
		"NODE_FLAG_FRAME_NO_FREE_AFTER_DISPATCH":          1,
		"NODE_FLAG_IS_OUTPUT":                             2,
		"NODE_FLAG_IS_DROP":                               4,
		"NODE_FLAG_IS_PUNT":                               8,
		"NODE_FLAG_IS_HANDOFF":                            16,
		"NODE_FLAG_TRACE":                                 32,
		"NODE_FLAG_SWITCH_FROM_INTERRUPT_TO_POLLING_MODE": 64,
		"NODE_FLAG_SWITCH_FROM_POLLING_TO_INTERRUPT_MODE": 128,
		"NODE_FLAG_TRACE_SUPPORTED":                       256,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type GraphNodeDetails

type GraphNodeDetails struct {
	Index   uint32   `binapi:"u32,name=index" json:"index,omitempty"`
	Name    string   `binapi:"string[64],name=name" json:"name,omitempty"`
	Flags   NodeFlag `binapi:"node_flag,name=flags" json:"flags,omitempty"`
	NArcs   uint32   `binapi:"u32,name=n_arcs" json:"-"`
	ArcsOut []uint32 `binapi:"u32[n_arcs],name=arcs_out" json:"arcs_out,omitempty"`
}

GraphNodeDetails defines message 'graph_node_details'.

func (*GraphNodeDetails) GetCrcString

func (*GraphNodeDetails) GetCrcString() string

func (*GraphNodeDetails) GetMessageName

func (*GraphNodeDetails) GetMessageName() string

func (*GraphNodeDetails) GetMessageType

func (*GraphNodeDetails) GetMessageType() api.MessageType

func (*GraphNodeDetails) Marshal

func (m *GraphNodeDetails) Marshal(b []byte) ([]byte, error)

func (*GraphNodeDetails) Reset

func (m *GraphNodeDetails) Reset()

func (*GraphNodeDetails) Size

func (m *GraphNodeDetails) Size() (size int)

func (*GraphNodeDetails) Unmarshal

func (m *GraphNodeDetails) Unmarshal(b []byte) error

type GraphNodeGet

type GraphNodeGet struct {
	Cursor   uint32   `binapi:"u32,name=cursor" json:"cursor,omitempty"`
	Index    uint32   `binapi:"u32,name=index" json:"index,omitempty"`
	Name     string   `binapi:"string[64],name=name" json:"name,omitempty"`
	Flags    NodeFlag `binapi:"node_flag,name=flags" json:"flags,omitempty"`
	WantArcs bool     `binapi:"bool,name=want_arcs" json:"want_arcs,omitempty"`
}

GraphNodeGet defines message 'graph_node_get'.

func (*GraphNodeGet) GetCrcString

func (*GraphNodeGet) GetCrcString() string

func (*GraphNodeGet) GetMessageName

func (*GraphNodeGet) GetMessageName() string

func (*GraphNodeGet) GetMessageType

func (*GraphNodeGet) GetMessageType() api.MessageType

func (*GraphNodeGet) Marshal

func (m *GraphNodeGet) Marshal(b []byte) ([]byte, error)

func (*GraphNodeGet) Reset

func (m *GraphNodeGet) Reset()

func (*GraphNodeGet) Size

func (m *GraphNodeGet) Size() (size int)

func (*GraphNodeGet) Unmarshal

func (m *GraphNodeGet) Unmarshal(b []byte) error

type GraphNodeGetReply

type GraphNodeGetReply struct {
	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}

GraphNodeGetReply defines message 'graph_node_get_reply'.

func (*GraphNodeGetReply) GetCrcString

func (*GraphNodeGetReply) GetCrcString() string

func (*GraphNodeGetReply) GetMessageName

func (*GraphNodeGetReply) GetMessageName() string

func (*GraphNodeGetReply) GetMessageType

func (*GraphNodeGetReply) GetMessageType() api.MessageType

func (*GraphNodeGetReply) Marshal

func (m *GraphNodeGetReply) Marshal(b []byte) ([]byte, error)

func (*GraphNodeGetReply) Reset

func (m *GraphNodeGetReply) Reset()

func (*GraphNodeGetReply) Size

func (m *GraphNodeGetReply) Size() (size int)

func (*GraphNodeGetReply) Unmarshal

func (m *GraphNodeGetReply) Unmarshal(b []byte) error

type NodeFlag

type NodeFlag uint32

NodeFlag defines enum 'node_flag'.

const (
	NODE_FLAG_FRAME_NO_FREE_AFTER_DISPATCH          NodeFlag = 1
	NODE_FLAG_IS_OUTPUT                             NodeFlag = 2
	NODE_FLAG_IS_DROP                               NodeFlag = 4
	NODE_FLAG_IS_PUNT                               NodeFlag = 8
	NODE_FLAG_IS_HANDOFF                            NodeFlag = 16
	NODE_FLAG_TRACE                                 NodeFlag = 32
	NODE_FLAG_SWITCH_FROM_INTERRUPT_TO_POLLING_MODE NodeFlag = 64
	NODE_FLAG_SWITCH_FROM_POLLING_TO_INTERRUPT_MODE NodeFlag = 128
	NODE_FLAG_TRACE_SUPPORTED                       NodeFlag = 256
)

func (NodeFlag) String

func (x NodeFlag) String() string

type RPCService

type RPCService interface {
	GraphNodeGet(ctx context.Context, in *GraphNodeGet) (RPCService_GraphNodeGetClient, error)
}

RPCService defines RPC service graph.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_GraphNodeGetClient

type RPCService_GraphNodeGetClient interface {
	Recv() (*GraphNodeDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL