Documentation
¶
Index ¶
- Constants
- type ApplyResponse
- type FSMSnapshot
- type LogCommand
- type Store
- func (s *Store) Apply(log *raft.Log) interface{}
- func (s *Store) Close() error
- func (s *Store) Ping() error
- func (s *Store) Query(sql string) ([]pgproto3.FieldDescription, [][][]byte, error)
- func (s *Store) Replicate(sql string) error
- func (s *Store) ReplicateBatch(batch []string) error
- func (s *Store) Restore(snapshot io.ReadCloser) error
- func (s *Store) SetRaft(r *raft.Raft)
- func (s *Store) Snapshot() (raft.FSMSnapshot, error)
Constants ¶
View Source
const ( OIDBytea uint32 = 17 OIDInt8 uint32 = 20 OIDText uint32 = 25 OIDFloat8 uint32 = 701 OIDTimestamp uint32 = 1114 )
View Source
const SnapshotVersion byte = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyResponse ¶
type FSMSnapshot ¶
type FSMSnapshot struct {
// contains filtered or unexported fields
}
func (*FSMSnapshot) Persist ¶
func (f *FSMSnapshot) Persist(sink raft.SnapshotSink) error
func (*FSMSnapshot) Release ¶
func (f *FSMSnapshot) Release()
type LogCommand ¶
Click to show internal directories.
Click to hide internal directories.