forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
fork
Configure Feed
Select the types of activity you want to include in your feed.
1package main
2
3import (
4 cbg "github.com/whyrusleeping/cbor-gen"
5 "tangled.sh/tangled.sh/core/api/tangled"
6)
7
8func main() {
9
10 genCfg := cbg.Gen{
11 MaxStringLength: 1_000_000,
12 }
13
14 if err := genCfg.WriteMapEncodersToFile(
15 "api/tangled/cbor_gen.go",
16 "tangled",
17 tangled.FeedStar{},
18 tangled.GraphFollow{},
19 tangled.KnotMember{},
20 tangled.PublicKey{},
21 tangled.RepoIssueComment{},
22 tangled.RepoIssueState{},
23 tangled.RepoIssue{},
24 tangled.Repo{},
25 tangled.RepoPull{},
26 tangled.RepoPull_Source{},
27 tangled.RepoPullStatus{},
28 tangled.RepoPullComment{},
29 tangled.RepoArtifact{},
30 tangled.ActorProfile{},
31 ); err != nil {
32 panic(err)
33 }
34
35}