utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	Apply(*Options)
}

Option is used to custom Options.

type Options

type Options struct {
	ApolloCustomFunctions []apollo.CustomFunction
}

Options is used to initialize the apollo config suit or option.

type Set

type Set map[string]bool

Set map template.

func (Set) Diff

func (s Set) Diff(other Set) []string

Diff returns the keys that are not in other

type ThreadSafeSet

type ThreadSafeSet struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ThreadSafeSet wrapper of Set.

func (*ThreadSafeSet) DiffAndEmplace

func (ts *ThreadSafeSet) DiffAndEmplace(other Set) []string

DiffAndEmplace returns the keys that are not in other and emplace the old set.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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