neteventforwarder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	NetEventForwarderSyntaxUUID = &uuid.UUID{TimeLow: 0x22e5386d, TimeMid: 0x8b12, TimeHiAndVersion: 0x4bf0, ClockSeqHiAndReserved: 0xb0, ClockSeqLow: 0xec, Node: [6]uint8{0x6a, 0x1e, 0xa4, 0x19, 0xe3, 0x66}}
	// Syntax ID
	NetEventForwarderSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: NetEventForwarderSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "lrec"
)

Functions

func NetEventForwarderServerHandle

func NetEventForwarderServerHandle(ctx context.Context, o NetEventForwarderServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

func NewNetEventForwarderServerHandle

func NewNetEventForwarderServerHandle(o NetEventForwarderServer) dcerpc.ServerHandle

func RegisterNetEventForwarderServer

func RegisterNetEventForwarderServer(conn dcerpc.Conn, o NetEventForwarderServer, opts ...dcerpc.Option)

Types

type CloseSessionRequest

type CloseSessionRequest struct {
	SessionHandle *Session `idl:"name:SessionHandle" json:"session_handle"`
}

CloseSessionRequest structure represents the RpcNetEventCloseSession operation request

func (*CloseSessionRequest) MarshalNDR

func (o *CloseSessionRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CloseSessionRequest) UnmarshalNDR

func (o *CloseSessionRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type CloseSessionResponse

type CloseSessionResponse struct {
	SessionHandle *Session `idl:"name:SessionHandle" json:"session_handle"`
}

CloseSessionResponse structure represents the RpcNetEventCloseSession operation response

func (*CloseSessionResponse) MarshalNDR

func (o *CloseSessionResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CloseSessionResponse) UnmarshalNDR

func (o *CloseSessionResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type EventBuffer

type EventBuffer struct {
	// BufferLength: This property specifies the length, in bytes, of the data stored in
	// the Buffer field.
	BufferLength uint32 `idl:"name:BufferLength" json:"buffer_length"`
	// Buffer: This property specifies a collection of one or more NET_EVENT_DATA_HEADER
	// (section 2.3.2.2) structures each followed by an event payload.
	Buffer []byte `idl:"name:Buffer;size_is:(BufferLength)" json:"buffer"`
}

EventBuffer structure represents EVENT_BUFFER RPC structure.

The EVENT_BUFFER structure defines a data structure for transferring a generic payload. The LREC protocol uses this structure to pass event records in the RpcNetEventReceiveData (section 3.1.4.2.2) method.

func (*EventBuffer) MarshalNDR

func (o *EventBuffer) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*EventBuffer) UnmarshalNDR

func (o *EventBuffer) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type NetEventForwarderClient

type NetEventForwarderClient interface {

	// RpcNetEventOpenSession operation.
	OpenSession(context.Context, *OpenSessionRequest, ...dcerpc.CallOption) (*OpenSessionResponse, error)

	// RpcNetEventReceiveData operation.
	ReceiveData(context.Context, *ReceiveDataRequest, ...dcerpc.CallOption) (*ReceiveDataResponse, error)

	// RpcNetEventCloseSession operation.
	CloseSession(context.Context, *CloseSessionRequest, ...dcerpc.CallOption) (*CloseSessionResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error
}

NetEventForwarder interface.

func NewNetEventForwarderClient

func NewNetEventForwarderClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (NetEventForwarderClient, error)

type NetEventForwarderServer

type NetEventForwarderServer interface {

	// RpcNetEventOpenSession operation.
	OpenSession(context.Context, *OpenSessionRequest) (*OpenSessionResponse, error)

	// RpcNetEventReceiveData operation.
	ReceiveData(context.Context, *ReceiveDataRequest) (*ReceiveDataResponse, error)

	// RpcNetEventCloseSession operation.
	CloseSession(context.Context, *CloseSessionRequest) (*CloseSessionResponse, error)
}

NetEventForwarder server interface.

type OpenSessionRequest

type OpenSessionRequest struct {
	LoggerName string `idl:"name:LoggerName;string" json:"logger_name"`
}

OpenSessionRequest structure represents the RpcNetEventOpenSession operation request

func (*OpenSessionRequest) MarshalNDR

func (o *OpenSessionRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*OpenSessionRequest) UnmarshalNDR

func (o *OpenSessionRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type OpenSessionResponse

type OpenSessionResponse struct {
	SessionHandle *Session `idl:"name:SessionHandle" json:"session_handle"`
	// Return: The RpcNetEventOpenSession return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

OpenSessionResponse structure represents the RpcNetEventOpenSession operation response

func (*OpenSessionResponse) MarshalNDR

func (o *OpenSessionResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*OpenSessionResponse) UnmarshalNDR

func (o *OpenSessionResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ReceiveDataRequest

type ReceiveDataRequest struct {
	SessionHandle *Session `idl:"name:SessionHandle" json:"session_handle"`
}

ReceiveDataRequest structure represents the RpcNetEventReceiveData operation request

func (*ReceiveDataRequest) MarshalNDR

func (o *ReceiveDataRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ReceiveDataRequest) UnmarshalNDR

func (o *ReceiveDataRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ReceiveDataResponse

type ReceiveDataResponse struct {
	EventBuffer *EventBuffer `idl:"name:EventBuffer" json:"event_buffer"`
	// Return: The RpcNetEventReceiveData return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ReceiveDataResponse structure represents the RpcNetEventReceiveData operation response

func (*ReceiveDataResponse) MarshalNDR

func (o *ReceiveDataResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ReceiveDataResponse) UnmarshalNDR

func (o *ReceiveDataResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type Session

type Session dcetypes.ContextHandle

Session structure represents PSESSION_HANDLE RPC structure.

func (*Session) ContextHandle

func (o *Session) ContextHandle() *dcetypes.ContextHandle

func (*Session) MarshalNDR

func (o *Session) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*Session) UnmarshalNDR

func (o *Session) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

Jump to

Keyboard shortcuts

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