cdc

package
v0.0.0-...-1b33b2a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIOpVarAdminJob is the key of admin job in HTTP API
	APIOpVarAdminJob = "admin-job"
	// APIOpVarChangefeedID is the key of changefeed ID in HTTP API
	APIOpVarChangefeedID = "cf-id"
	// APIOpVarTargetCaptureID is the key of to-capture ID in HTTP API
	APIOpVarTargetCaptureID = "target-cp-id"
	// APIOpVarKeySpanID is the key of keyspan ID in HTTP API
	APIOpVarKeySpanID = "keyspan-id"
	// APIOpForceRemoveChangefeed is used when remove a changefeed
	APIOpForceRemoveChangefeed = "force-remove"
)

Variables

This section is empty.

Functions

func RecordGoRuntimeSettings

func RecordGoRuntimeSettings()

RecordGoRuntimeSettings records GOGC settings.

Types

type ChangefeedResp

type ChangefeedResp struct {
	FeedState    string              `json:"state"`
	TSO          uint64              `json:"tso"`
	Checkpoint   string              `json:"checkpoint"`
	RunningError *model.RunningError `json:"error"`
}

ChangefeedResp holds the most common usage information for a changefeed

func (ChangefeedResp) MarshalJSON

func (c ChangefeedResp) MarshalJSON() ([]byte, error)

MarshalJSON use to marshal ChangefeedResp

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the capture server TODO: we need to make Server more unit testable and add more test cases. Especially we need to decouple the HTTPServer out of Server.

func NewServer

func NewServer(pdEndpoints []string) (*Server, error)

NewServer creates a Server instance.

func (*Server) Close

func (s *Server) Close()

Close closes the server.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run runs the server.

Directories

Path Synopsis
Package processor implements the processor logic based on ETCD worker(pkg/orchestrator).
Package processor implements the processor logic based on ETCD worker(pkg/orchestrator).
memory
Package memory is an in-memory EventSorter implementation.
Package memory is an in-memory EventSorter implementation.

Jump to

Keyboard shortcuts

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