model

package
v0.1.10-0...-9bf53c4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 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 IResource

type IResource interface {
	/**
	 * Get the resource group id.
	 * e.g. master and slave data-source should be with the same resource group id.
	 *
	 * @return resource group id.
	 */
	GetResourceGroupId() string

	/**
	 * Get the resource id.
	 * e.g. url of a data-source could be the id of the db data-source resource.
	 *
	 * @return resource id.
	 */
	GetResourceId() string

	/**
	 * get resource type, BranchType_AT, BranchType_TCC, BranchType_SAGA and XA
	 *
	 * @return
	 */
	GetBranchType() meta.BranchType
}

type Set

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

func NewSet

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(item string)

Add add

func (*Set) Clear

func (s *Set) Clear()

Clear removes all items from the set

func (*Set) Has

func (s *Set) Has(item string) bool

Has looks for the existence of an item

func (*Set) IsEmpty

func (s *Set) IsEmpty() bool

IsEmpty checks for emptiness

func (*Set) Len

func (s *Set) Len() int

Len returns the number of items in a set.

func (*Set) List

func (s *Set) List() []string

Set returns a slice of all items

func (*Set) Remove

func (s *Set) Remove(item string)

Remove deletes the specified item from the map

Jump to

Keyboard shortcuts

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