Documentation
¶
Overview ¶
Package transport defines the network transport abstraction (client + codec) for the distributed backend. Concrete implementations (HTTP, gRPC, etc.) will satisfy the Client interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Get(ctx context.Context, node string, key string) ([]byte, bool, error) Set(ctx context.Context, node string, key string, value []byte, expiration time.Duration, replicate bool) error Remove(ctx context.Context, node string, key string, replicate bool) error Health(ctx context.Context, node string) error }
Client defines network transport operations needed by distributed backend. This abstracts over HTTP, gRPC, etc.
Click to show internal directories.
Click to hide internal directories.