Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConnection = errors.New("no connection")
Functions ¶
This section is empty.
Types ¶
type ConnectionManager ¶
type ConnectionManager struct { DialerDoneCallback func(string, *revdial.Dialer) DialerKeepAliveCallback func(string, *revdial.Dialer) // contains filtered or unexported fields }
func New ¶
func New() *ConnectionManager
type SyncSliceMap ¶ added in v0.13.6
type SyncSliceMap struct {
// contains filtered or unexported fields
}
SyncSliceMap is a struct that uses sync.Map and stores values in a slice.
func (*SyncSliceMap) Delete ¶ added in v0.13.6
func (ssm *SyncSliceMap) Delete(key, value interface{})
Delete removes the value from the slice associated with the key and updates the value in sync.Map.
func (*SyncSliceMap) Load ¶ added in v0.13.6
func (ssm *SyncSliceMap) Load(key interface{}) (interface{}, bool)
Load retrieves the last value associated with the key in the slice along with the size of the slice.
func (*SyncSliceMap) Size ¶ added in v0.13.6
func (ssm *SyncSliceMap) Size(key interface{}) int
Size returns the current size of the slice associated with the key.
func (*SyncSliceMap) Store ¶ added in v0.13.6
func (ssm *SyncSliceMap) Store(key, value interface{})
Store appends the value to the slice associated with the key and updates the value in sync.Map. It returns the size of the slice after the append operation.
Click to show internal directories.
Click to hide internal directories.