Documentation
¶
Index ¶
- type Client
- type LocalClient
- func (client *LocalClient) Append(topic string, data []byte) error
- func (client *LocalClient) Close() error
- func (client *LocalClient) Open(target proto.ConnectionString, _ uint) error
- func (client *LocalClient) Query(q string) (database.Entries, error)
- func (client *LocalClient) Send(message proto.Message) (proto.Message, error)
- type RemoteClient
- func (client *RemoteClient) Append(topic string, data []byte) error
- func (client *RemoteClient) Close() error
- func (client *RemoteClient) Open(connectionString proto.ConnectionString, size uint) error
- func (client *RemoteClient) Query(q string) (database.Entries, error)
- func (client *RemoteClient) Send(m proto.Message) (proto.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Open(proto.ConnectionString, uint) error Close() error Send(proto.Message) (proto.Message, error) Append(string, []byte) error Query(string) (database.Entries, error) }
type LocalClient ¶ added in v0.2.0
type LocalClient struct {
// contains filtered or unexported fields
}
func (*LocalClient) Append ¶ added in v0.2.0
func (client *LocalClient) Append(topic string, data []byte) error
func (*LocalClient) Close ¶ added in v0.2.0
func (client *LocalClient) Close() error
func (*LocalClient) Open ¶ added in v0.2.0
func (client *LocalClient) Open(target proto.ConnectionString, _ uint) error
type RemoteClient ¶ added in v0.2.0
type RemoteClient struct {
// contains filtered or unexported fields
}
A RemoteClient holds the data needed to interact with a fossil database.
func (*RemoteClient) Append ¶ added in v0.2.0
func (client *RemoteClient) Append(topic string, data []byte) error
Append data to the specified topic.
func (*RemoteClient) Close ¶ added in v0.2.0
func (client *RemoteClient) Close() error
func (*RemoteClient) Open ¶ added in v0.2.0
func (client *RemoteClient) Open(connectionString proto.ConnectionString, size uint) error
Click to show internal directories.
Click to hide internal directories.