MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / BuildElement

Method BuildElement

message/build.go:147–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (e *XMLElement) BuildElement() []*message.Elem {
148 return []*message.Elem{{
149 RichMsg: &message.RichMsg{
150 ServiceId: proto.Some(int32(e.ServiceID)),
151 Template1: append([]byte{0x01}, binary.ZlibCompress([]byte(e.Content))...),
152 },
153 }}
154}
155
156func (e *ForwardMessage) BuildElement() []*message.Elem {
157 fileID := utils.NewUUID()

Callers

nothing calls this directly

Calls 2

SomeFunction · 0.92
ZlibCompressFunction · 0.92

Tested by

no test coverage detected