Documentation ¶
Index ¶
- Variables
- func NetEventForwarderServerHandle(ctx context.Context, o NetEventForwarderServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewNetEventForwarderServerHandle(o NetEventForwarderServer) dcerpc.ServerHandle
- func RegisterNetEventForwarderServer(conn dcerpc.Conn, o NetEventForwarderServer, opts ...dcerpc.Option)
- type CloseSessionRequest
- type CloseSessionResponse
- type EventBuffer
- type NetEventForwarderClient
- type NetEventForwarderServer
- type OpenSessionRequest
- type OpenSessionResponse
- type ReceiveDataRequest
- type ReceiveDataResponse
- type Session
Constants ¶
This section is empty.
Variables ¶
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} )
var (
// import guard
GoPackage = "lrec"
)
Functions ¶
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 (*CloseSessionRequest) UnmarshalNDR ¶
type CloseSessionResponse ¶
type CloseSessionResponse struct {
SessionHandle *Session `idl:"name:SessionHandle" json:"session_handle"`
}
CloseSessionResponse structure represents the RpcNetEventCloseSession operation response
func (*CloseSessionResponse) MarshalNDR ¶
func (*CloseSessionResponse) UnmarshalNDR ¶
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 (*EventBuffer) UnmarshalNDR ¶
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 // Conn returns the client connection (unsafe) Conn() dcerpc.Conn }
NetEventForwarder interface.
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 (*OpenSessionRequest) UnmarshalNDR ¶
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 (*OpenSessionResponse) UnmarshalNDR ¶
type ReceiveDataRequest ¶
type ReceiveDataRequest struct {
SessionHandle *Session `idl:"name:SessionHandle" json:"session_handle"`
}
ReceiveDataRequest structure represents the RpcNetEventReceiveData operation request
func (*ReceiveDataRequest) MarshalNDR ¶
func (*ReceiveDataRequest) UnmarshalNDR ¶
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 (*ReceiveDataResponse) UnmarshalNDR ¶
type Session ¶
type Session dcetypes.ContextHandle
Session structure represents PSESSION_HANDLE RPC structure.
func (*Session) ContextHandle ¶
func (o *Session) ContextHandle() *dcetypes.ContextHandle