MCPcopy
hub / github.com/davyxu/cellnet / init

Function init

tests/proto.go:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17func (self *TestEchoACK) String() string { return fmt.Sprintf("%+v", *self) }
18
19func init() {
20 cellnet.RegisterMessageMeta(&cellnet.MessageMeta{
21 Codec: codec.MustGetCodec("binary"),
22 Type: reflect.TypeOf((*TestEchoACK)(nil)).Elem(),
23 ID: int(util.StringHash("tests.TestEchoACK")),
24 })
25}

Callers

nothing calls this directly

Calls 3

RegisterMessageMetaFunction · 0.92
MustGetCodecFunction · 0.92
StringHashFunction · 0.92

Tested by

no test coverage detected