backend for xcvr appview
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

add cborgen for profile record

rachel-mp4 33670bf0 c081688f

+29 -3
+13
server/gen/main.go
··· 1 + package main 2 + 3 + import ( 4 + cbg "github.com/whyrusleeping/cbor-gen" 5 + "xcvr-backend/internal/lex" 6 + ) 7 + 8 + func main() { 9 + if err := cbg.WriteMapEncodersToFile("internal/lex/lexicons_cbor.go", "lex", 10 + lex.ProfileRecord{}); err != nil { 11 + panic(err) 12 + } 13 + }
+1 -1
server/go.mod
··· 11 11 github.com/lestrrat-go/jwx/v2 v2.0.12 12 12 github.com/rachel-mp4/lrcd v0.0.0-20250603192958-089ba44e79a5 13 13 github.com/rivo/uniseg v0.4.7 14 + github.com/whyrusleeping/cbor-gen v0.3.1 14 15 ) 15 16 16 17 require ( ··· 71 72 github.com/rachel-mp4/lrcproto v0.0.0-20250527205756-58da8216f98c // indirect 72 73 github.com/segmentio/asm v1.2.0 // indirect 73 74 github.com/spaolacci/murmur3 v1.1.0 // indirect 74 - github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e // indirect 75 75 gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b // indirect 76 76 gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 // indirect 77 77 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect
+2 -2
server/go.sum
··· 194 194 github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 195 195 github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ= 196 196 github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= 197 - github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e h1:28X54ciEwwUxyHn9yrZfl5ojgF4CBNLWX7LR0rvBkf4= 198 - github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so= 197 + github.com/whyrusleeping/cbor-gen v0.3.1 h1:82ioxmhEYut7LBVGhGq8xoRkXPLElVuh5mV67AFfdv0= 198 + github.com/whyrusleeping/cbor-gen v0.3.1/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so= 199 199 github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 200 200 github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 201 201 github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+13
server/internal/lex/types.go
··· 1 + package lex 2 + 3 + import ( 4 + "github.com/bluesky-social/indigo/lex/util" 5 + ) 6 + 7 + type ProfileRecord struct { 8 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 9 + DefaultNick *string `json:"defaultNick,omitempty" cborgen:"defaultNick,omitempty"` 10 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 11 + Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 12 + Color *uint64 `json:"color,omitempty" cborgen:"color,omitempty"` 13 + }