grpc

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAnypb

func FromAnypb(p *anypb.Any) any

func ToAnypb

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

Types

type DBProvider

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

type DataSourceNamesFn added in v0.5.10

type DataSourceNamesFn func() []string

type HADB

type HADB interface {
	PubSeq() uint64
	DB() *sql.DB
	LatestSnapshot(context.Context) (uint64, io.ReadCloser, error)
}

type ReplicationIDsFn added in v0.5.10

type ReplicationIDsFn func() []string

type SQLExpectResultSetFn added in v0.5.10

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

type Server

type Server struct {
	*grpc.Server
	ReferenceCount int
}

type Service

type Service struct {
	sqlv1.UnimplementedDatabaseServiceServer
	DBProvider         DBProvider
	DSNList            DataSourceNamesFn
	ReplicationIDList  ReplicationIDsFn
	SQLExpectResultSet SQLExpectResultSetFn
}

func (*Service) DataSourceNames added in v0.5.10

func (*Service) LatestSnapshot added in v0.5.10

func (*Service) Query

func (*Service) ReplicationIDs added in v0.5.10

Jump to

Keyboard shortcuts

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