Documentation ¶
Index ¶
- Constants
- func DSQuery(q Query) dsq.Query
- func NewStoreClient(ctx context.Context, src host.Host, target peer.AddrInfo, pid protocol.ID) core.DataNodeClient
- func NewStoreServer(ctx context.Context, h host.Host, pid protocol.ID, ds ds.Datastore, ...) core.DataNodeServer
- func ReadQueryResultEntry(s network.Stream, msg *QueryResultEntry) error
- func ReadReplyMsg(s network.Stream, msg *ReplyMessage) error
- func ReadRequestMsg(s network.Stream, msg *RequestMessage) error
- func WriteQueryResultEntry(s network.Stream, msg *QueryResultEntry) error
- func WriteReplyMsg(s network.Stream, msg *ReplyMessage) error
- func WriteRequstMsg(s network.Stream, msg *RequestMessage) error
- type Act
- type ErrCode
- type Query
- type QueryResultEntry
- type ReplyMessage
- type RequestMessage
Constants ¶
View Source
const (
PROTOCOL_V1 = "/cluster/store/0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
func NewStoreClient ¶
func NewStoreServer ¶
func ReadQueryResultEntry ¶
func ReadQueryResultEntry(s network.Stream, msg *QueryResultEntry) error
func ReadReplyMsg ¶
func ReadReplyMsg(s network.Stream, msg *ReplyMessage) error
func ReadRequestMsg ¶
func ReadRequestMsg(s network.Stream, msg *RequestMessage) error
func WriteQueryResultEntry ¶
func WriteQueryResultEntry(s network.Stream, msg *QueryResultEntry) error
func WriteReplyMsg ¶
func WriteReplyMsg(s network.Stream, msg *ReplyMessage) error
func WriteRequstMsg ¶
func WriteRequstMsg(s network.Stream, msg *RequestMessage) error
Types ¶
type QueryResultEntry ¶
func (*QueryResultEntry) MarshalCBOR ¶
func (t *QueryResultEntry) MarshalCBOR(w io.Writer) error
func (*QueryResultEntry) UnmarshalCBOR ¶
func (t *QueryResultEntry) UnmarshalCBOR(r io.Reader) error
type ReplyMessage ¶
func (*ReplyMessage) MarshalCBOR ¶
func (t *ReplyMessage) MarshalCBOR(w io.Writer) error
func (*ReplyMessage) UnmarshalCBOR ¶
func (t *ReplyMessage) UnmarshalCBOR(r io.Reader) error
type RequestMessage ¶
func (*RequestMessage) MarshalCBOR ¶
func (t *RequestMessage) MarshalCBOR(w io.Writer) error
func (*RequestMessage) UnmarshalCBOR ¶
func (t *RequestMessage) UnmarshalCBOR(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.