config

package
v0.0.0-...-cefcac0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Lists []List `json:"list"`
}

type List

type List struct {
	Name           string       `json:"name" yaml:"name"`
	DID            string       `json:"did" yaml:"did"`
	Rkey           string       `json:"rkey" yaml:"rkey"`
	Entries        *ListEntries `json:"entries" yaml:"entries"`
	NoAutoRemovals bool         `json:"noAutoRemovals" yaml:"noAutoRemovals"`
}

type ListEntries

type ListEntries struct {
	Union           []ListEntries  `json:"union" yaml:"union"`
	Intersection    []ListEntries  `json:"intersection" yaml:"intersection"`
	Difference      *SetDifference `json:"difference" yaml:"difference"`
	List            *MuteList      `json:"list" yaml:"list"`
	Followers       *string        `json:"followers" yaml:"followers"`
	Follows         *string        `json:"follows" yaml:"follows"`
	BlockedBy       *string        `json:"blockedBy" yaml:"blockedBy"`
	DID             *string        `json:"did" yaml:"did"`
	File            *string        `json:"file" yaml:"file"`
	ExpandFollowers *ListEntries   `json:"expandFollowers" yaml:"expandFollowers"`
}

func (*ListEntries) AsSet

func (e *ListEntries) AsSet(client *xrpc.Client) didset.DIDSet

type MuteList

type MuteList struct {
	DID  string `json:"did" yaml:"did"`
	Rkey string `json:"rkey" yaml:"rkey"`
}

type SetDifference

type SetDifference struct {
	Left  *ListEntries `json:"left" yaml:"left"`
	Right *ListEntries `json:"right" yaml:"right"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL