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 ¶
- func NewProcessor() module.Processor
- type Processor
- func (c *Processor) Dump()
- func (c *Processor) GetApp() module.App
- func (p *Processor) GetMsgInfo(id uint32) *msgInfo
- func (p *Processor) HandleMsg(ctl interface{}, msg *framepb.Msg) *framepb.Msg
- func (p *Processor) Init(app module.App)
- func (c *Processor) Marshal(msg *framepb.Msg) ([]byte, error)
- func (c *Processor) Record(start time.Time, msgId uint32, msgName string)
- func (c *Processor) Register(msgID uint32, msgHandler module.DisposeFunc)
- func (c *Processor) Unmarshal(data []byte) (*framepb.Msg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProcessor ¶
Types ¶
type Processor ¶
type Processor struct { EnablePerf bool MaxPacketSize uint32 // contains filtered or unexported fields }