Documentation
¶
Index ¶
- func FromAnypb(p *anypb.Any) any
- func ToAnypb(val any) (*anypb.Any, error)
- type AuthInterceptor
- type DBProvider
- type DataSourceNamesFn
- type HADB
- type ReplicationIDsFn
- type SQLExpectResultSetFn
- type Server
- type Service
- func (s *Service) DataSourceNames(ctx context.Context, req *sqlv1.DataSourceNamesRequest) (*sqlv1.DataSourceNamesResponse, error)
- func (s *Service) LatestSnapshot(ctx context.Context, req *sqlv1.LatestSnapshotRequest) (*sqlv1.LatestSnapshotResponse, error)
- func (s *Service) Query(stream grpc.BidiStreamingServer[sqlv1.QueryRequest, sqlv1.QueryResponse]) error
- func (s *Service) ReplicationIDs(ctx context.Context, req *sqlv1.ReplicationIDsRequest) (*sqlv1.ReplicationIDsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthInterceptor ¶ added in v0.7.0
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶ added in v0.7.0
func NewAuthInterceptor(token string) *AuthInterceptor
func (*AuthInterceptor) Stream ¶ added in v0.7.0
func (a *AuthInterceptor) Stream() grpc.StreamServerInterceptor
func (*AuthInterceptor) Unary ¶ added in v0.7.0
func (a *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
type DBProvider ¶
type DataSourceNamesFn ¶ added in v0.5.10
type DataSourceNamesFn func() []string
type ReplicationIDsFn ¶ added in v0.5.10
type ReplicationIDsFn func() []string
type SQLExpectResultSetFn ¶ added in v0.5.10
type Service ¶
type Service struct {
sqlv1.UnimplementedDatabaseServiceServer
DBProvider DBProvider
DSNList DataSourceNamesFn
ReplicationIDList ReplicationIDsFn
SQLExpectResultSet SQLExpectResultSetFn
}
func (*Service) DataSourceNames ¶ added in v0.5.10
func (s *Service) DataSourceNames(ctx context.Context, req *sqlv1.DataSourceNamesRequest) (*sqlv1.DataSourceNamesResponse, error)
func (*Service) LatestSnapshot ¶ added in v0.5.10
func (s *Service) LatestSnapshot(ctx context.Context, req *sqlv1.LatestSnapshotRequest) (*sqlv1.LatestSnapshotResponse, error)
func (*Service) Query ¶
func (s *Service) Query(stream grpc.BidiStreamingServer[sqlv1.QueryRequest, sqlv1.QueryResponse]) error
func (*Service) ReplicationIDs ¶ added in v0.5.10
func (s *Service) ReplicationIDs(ctx context.Context, req *sqlv1.ReplicationIDsRequest) (*sqlv1.ReplicationIDsResponse, error)
Click to show internal directories.
Click to hide internal directories.