grpc

package
v0.10.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2026 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAnypb

func FromAnypb(p *anypb.Any) any

func NewAuthInterceptor

func NewAuthInterceptor(token string) *authInterceptor

func ToAnypb

func ToAnypb(val any) (*anypb.Any, error)

Types

type DBProvider

type DBProvider func(id string) (HADB, bool)

type DataSourceNamesFn

type DataSourceNamesFn func() []string

type HADB

type HADB interface {
	PubSeq() uint64
	DB() *sql.DB
	LatestSnapshot(context.Context) (uint64, io.ReadCloser, error)
	Backup(context.Context, io.Writer) error
	HistoryBySeq(context.Context, uint64) ([]HistoryItem, error)
	HistoryByTime(context.Context, time.Duration) ([]HistoryItem, error)
	UndoBySeq(context.Context, uint64) error
	UndoByTime(context.Context, time.Duration) error
}

type HistoryItem added in v0.10.5

type HistoryItem struct {
	Seq       uint64   `json:"seq"`
	SQL       []string `json:"sql"`
	Timestamp int64    `json:"timestamp_ns"`
}

type ReplicationIDsFn

type ReplicationIDsFn func() []string

type SQLExpectResultSetFn

type SQLExpectResultSetFn func(context.Context, string) (bool, error)

type Server

type Server struct {
	*http.Server
	ReferenceCount int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL