Documentation ¶
Index ¶
- Constants
- Variables
- type Channel
- func (ch *Channel) Del(_ context.Context, key string) (err error)
- func (ch *Channel) KeyOwners(key string) (nodes []clash.Node)
- func (ch *Channel) Name() string
- func (ch *Channel) OnDel(handler func(ctx context.Context, key string))
- func (ch *Channel) OnGet(...)
- func (ch *Channel) OnRebase(handler func(ctx context.Context))
- func (ch *Channel) OnSet(...)
- func (ch *Channel) OnStats(handler func(ctx context.Context) clash.Stats)
- func (ch *Channel) Set(_ context.Context, key string, value []byte, expiredAt time.Time) (err error)
- func (ch *Channel) Stats(ctx context.Context) (stats map[string]Stats)
- type Meta
- type Network
- type Node
- type Option
- type Stats
Constants ¶
View Source
const (
TypeStats
)
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
View Source
var ErrTimeout = errors.New("timeout")
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) GetTransport ¶
Click to show internal directories.
Click to hide internal directories.