Monorepo for Tangled tangled.org
2

Configure Feed

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

at icy/ytnwlw 1.6 kB View raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.git.temp.listLanguages 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 GitTempListLanguagesNSID = "sh.tangled.git.temp.listLanguages" 15) 16 17// GitTempListLanguages_Language is a "language" in the sh.tangled.git.temp.listLanguages schema. 18type GitTempListLanguages_Language struct { 19 // name: Programming language name 20 Name string `json:"name" cborgen:"name"` 21 // size: Total size of files in this language (bytes) 22 Size int64 `json:"size" cborgen:"size"` 23} 24 25// GitTempListLanguages_Output is the output of a sh.tangled.git.temp.listLanguages call. 26type GitTempListLanguages_Output struct { 27 Languages []*GitTempListLanguages_Language `json:"languages" cborgen:"languages"` 28 // ref: The git reference used 29 Ref string `json:"ref" cborgen:"ref"` 30 // total: Total size of all analyzed files in bytes 31 Total int64 `json:"total" cborgen:"total"` 32} 33 34// GitTempListLanguages calls the XRPC method "sh.tangled.git.temp.listLanguages". 35// 36// ref: Git reference (branch, tag, or commit SHA) 37// repo: DID of the repository 38func GitTempListLanguages(ctx context.Context, c util.LexClient, ref string, repo string) (*GitTempListLanguages_Output, error) { 39 var out GitTempListLanguages_Output 40 41 params := map[string]interface{}{} 42 if ref != "" { 43 params["ref"] = ref 44 } 45 params["repo"] = repo 46 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.listLanguages", params, nil, &out); err != nil { 47 return nil, err 48 } 49 50 return &out, nil 51}