Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultSubscriptionUpdateInterval = 1 * time.Hour
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraGroup ¶
type ExtraGroup struct { Tag string `json:"tag,omitempty"` Type string `json:"type,omitempty"` Filter option.Listable[string] `json:"filter,omitempty"` Exclude option.Listable[string] `json:"exclude,omitempty"` CustomSelector *option.SelectorOutboundOptions `json:"custom_selector,omitempty"` CustomURLTest *option.URLTestOutboundOptions `json:"custom_urltest,omitempty"` }
type GitHubRuleSetOptions ¶
type OutboundProcessOptions ¶
type OutboundProcessOptions struct { Filter option.Listable[string] `json:"filter,omitempty"` Exclude option.Listable[string] `json:"exclude,omitempty"` FilterType option.Listable[string] `json:"filter_type,omitempty"` ExcludeType option.Listable[string] `json:"exclude_type,omitempty"` Invert bool `json:"invert,omitempty"` Remove bool `json:"remove,omitempty"` Rename *badjson.TypedMap[string, string] `json:"rename,omitempty"` RemoveEmoji bool `json:"remove_emoji,omitempty"` RewriteMultiplex *option.OutboundMultiplexOptions `json:"rewrite_multiplex,omitempty"` }
type Profile ¶
type Profile struct { Name string `json:"name,omitempty"` Template string `json:"template,omitempty"` TemplateForPlatform *badjson.TypedMap[string, string] `json:"template_for_platform,omitempty"` TemplateForUserAgent *badjson.TypedMap[string, string] `json:"template_for_user_agent,omitempty"` Outbound option.Listable[string] `json:"outbound,omitempty"` Subscription option.Listable[string] `json:"subscription,omitempty"` }
type Subscription ¶
type Subscription struct { Name string `json:"name,omitempty"` URL string `json:"url,omitempty"` UserAgent string `json:"user_agent,omitempty"` UpdateInterval option.Duration `json:"update_interval,omitempty"` Process option.Listable[OutboundProcessOptions] `json:"process,omitempty"` DeDuplication bool `json:"deduplication,omitempty"` GenerateSelector bool `json:"generate_selector,omitempty"` GenerateURLTest bool `json:"generate_urltest,omitempty"` URLTestTagSuffix string `json:"urltest_suffix,omitempty"` CustomSelector *option.SelectorOutboundOptions `json:"custom_selector,omitempty"` CustomURLTest *option.URLTestOutboundOptions `json:"custom_urltest,omitempty"` }
type Template ¶
type Template _Template
func (Template) DisableIPv6 ¶
func (*Template) MarshalJSON ¶
func (*Template) UnmarshalJSON ¶
type TypedMessage ¶
type TypedMessage[T any] struct { Message json.RawMessage Value T }
func (*TypedMessage[T]) MarshalJSON ¶
func (m *TypedMessage[T]) MarshalJSON() ([]byte, error)
func (*TypedMessage[T]) UnmarshalJSON ¶
func (m *TypedMessage[T]) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.