process

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2020 newtbig Author. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2020 newtbig Author. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcessor

func NewProcessor() module.Processor

Types

type Processor

type Processor struct {
	EnablePerf bool

	MaxPacketSize uint32
	// contains filtered or unexported fields
}

func (*Processor) Dump

func (c *Processor) Dump()

func (*Processor) GetApp

func (c *Processor) GetApp() module.App

func (*Processor) GetMsgInfo

func (p *Processor) GetMsgInfo(id uint32) *msgInfo

func (*Processor) HandleMsg

func (p *Processor) HandleMsg(ctl interface{}, msg *framepb.Msg) *framepb.Msg

func (*Processor) Init

func (p *Processor) Init(app module.App)

func (*Processor) Marshal

func (c *Processor) Marshal(msg *framepb.Msg) ([]byte, error)

func (*Processor) Record

func (c *Processor) Record(start time.Time, msgId uint32, msgName string)

func (*Processor) Register

func (c *Processor) Register(msgID uint32, msgHandler module.DisposeFunc)

func (*Processor) Unmarshal

func (c *Processor) Unmarshal(data []byte) (*framepb.Msg, error)

Jump to

Keyboard shortcuts

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