A vibe coded tangled fork which supports pijul.
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.getDefaultChannel
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoGetDefaultChannelNSID = "sh.tangled.repo.getDefaultChannel"
15)
16
17// RepoGetDefaultChannel_Output is the output of a sh.tangled.repo.getDefaultChannel call.
18type RepoGetDefaultChannel_Output struct {
19 // channel: Default channel name
20 Channel string `json:"channel" cborgen:"channel"`
21}
22
23// RepoGetDefaultChannel calls the XRPC method "sh.tangled.repo.getDefaultChannel".
24//
25// repo: Repository identifier in format 'did:plc:.../repoName'
26func RepoGetDefaultChannel(ctx context.Context, c util.LexClient, repo string) (*RepoGetDefaultChannel_Output, error) {
27 var out RepoGetDefaultChannel_Output
28
29 params := map[string]interface{}{}
30 params["repo"] = repo
31 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.getDefaultChannel", params, nil, &out); err != nil {
32 return nil, err
33 }
34
35 return &out, nil
36}