Monorepo for Tangled
tangled.org
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.sync.requestCrawl
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 SyncRequestCrawlNSID = "sh.tangled.sync.requestCrawl"
15)
16
17// SyncRequestCrawl_Input is the input argument to a sh.tangled.sync.requestCrawl call.
18type SyncRequestCrawl_Input struct {
19 // ensureRepo: specific repository to ensure crawling
20 EnsureRepo *string `json:"ensureRepo,omitempty" cborgen:"ensureRepo,omitempty"`
21 // hostname: Hostname of the current service (eg, Knot) that is requesting to be crawled.
22 Hostname string `json:"hostname" cborgen:"hostname"`
23}
24
25// SyncRequestCrawl calls the XRPC method "sh.tangled.sync.requestCrawl".
26func SyncRequestCrawl(ctx context.Context, c util.LexClient, input *SyncRequestCrawl_Input) error {
27 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.sync.requestCrawl", nil, input, nil); err != nil {
28 return err
29 }
30
31 return nil
32}