repository

package
v0.0.0-...-e7d128e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(configs ...*specs.OutboundConfig) []error

Add pushes given configs to repository.

func Items

func Items() []*specs.OutboundConfig

Items returns items in globalRepository repository.

func Length

func Length() int

Length returns amount of items in globalRepository repository.

Types

type Repository

type Repository map[[32]byte]*specs.OutboundConfig

Repository contains specs.OutboundConfig.

func (*Repository) Add

func (r *Repository) Add(config *specs.OutboundConfig) error

Add pushes single config entry to Repository.

func (*Repository) Items

func (r *Repository) Items() []*specs.OutboundConfig

Items returns all items inside repository.

Jump to

Keyboard shortcuts

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