MCPcopy Create free account
hub / github.com/chanify/chanify / LinkContent

Method LinkContent

model/message.go:45–52  ·  view source on GitHub ↗

LinkContent set link notification

(link string)

Source from the content-addressed store, hash-verified

43
44// LinkContent set link notification
45func (m *Message) LinkContent(link string) *Message {
46 ctx := &pb.MsgContent{
47 Type: pb.MsgType_Link,
48 Link: link,
49 }
50 m.Content, _ = proto.Marshal(ctx)
51 return m
52}
53
54// TimelineContent set timeline notification
55func (m *Message) TimelineContent(code string, title string, ts *time.Time, items []*MsgTimeItem) *Message {

Callers 1

handlePostSenderMethod · 0.80

Calls 1

MarshalMethod · 0.80

Tested by

no test coverage detected