grpc

package
v0.0.0-...-32509ee Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// GrpcConfig config
	GrpcConfig *grpcutils.GrpcConfig

	// System catalog provider
	SystemCatalogProvider string

	// MetaTable config
	DBConfig dbcore.DBConfig

	// Notification config
	NotificationStoreProvider string
	NotifierProvider          string
	NotificationTopic         string

	// Kubernetes config
	KubernetesNamespace string

	// Memberlist config
	ReconcileInterval time.Duration
	ReconcileCount    uint

	// Query service memberlist config
	QueryServiceMemberlistName string
	QueryServicePodLabel       string

	// Watcher config
	WatchInterval time.Duration

	// Compaction service memberlist config
	CompactionServiceMemberlistName string
	CompactionServicePodLabel       string

	// Config for testing
	Testing bool
}

type Server

type Server struct {
	coordinatorpb.UnimplementedSysDBServer
	// contains filtered or unexported fields
}

Server wraps Coordinator with GRPC services.

When Testing is set to true, the GRPC services will not be intialzed. This is convenient for end-to-end property based testing.

func New

func New(config Config) (*Server, error)

func NewWithGrpcProvider

func NewWithGrpcProvider(config Config, provider grpcutils.GrpcProvider, db *gorm.DB) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) CreateCollection

The fact that we ignore the metadata of the generated collections is a bit weird, but it is the easiest way to excercise all cases

func (*Server) ResetState

func (*Server) SetLastCompactionTimeForTenant

func (s *Server) SetLastCompactionTimeForTenant(ctx context.Context, req *coordinatorpb.SetLastCompactionTimeForTenantRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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