MCPcopy
hub / github.com/name5566/leaf / Processor

Interface Processor

network/processor.go:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package network
2
3type Processor interface {
4 // must goroutine safe
5 Route(msg interface{}, userData interface{}) error
6 // must goroutine safe
7 Unmarshal(data []byte) (interface{}, error)
8 // must goroutine safe
9 Marshal(msg interface{}) ([][]byte, error)
10}

Callers 7

RunMethod · 0.65
UnmarshalMethod · 0.65
ReadMethod · 0.65
RunMethod · 0.65
MarshalMethod · 0.65
MarshalMethod · 0.65
WriteMsgMethod · 0.65

Implementers 2

Processornetwork/protobuf/protobuf.go
Processornetwork/json/json.go

Calls

no outgoing calls

Tested by

no test coverage detected