coordination

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConsistencyModeRelaxed            = "relaxed"
	ConsistencyModeStrict             = "strict"
	ConsistencyModeUnset              = "unset"
	RatelimiterCountersModeAggregated = "aggregated"
	RatelimiterCountersModeDetailed   = "detailed"
	RatelimiterCountersModeUnset      = "unset"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(authCreds auth.YdbCredentials) resources.Handler

func ResourceToNodeConfig

func ResourceToNodeConfig(resource *Resource) coordination.NodeConfig

Types

type Resource

type Resource struct {
	Entity                   *helpers.YDBEntity
	FullPath                 string
	Path                     string
	DatabaseEndpoint         string
	SelfCheckPeriodMillis    int
	SessionGracePeriodMillis int
	ReadConsistencyMode      coordination.ConsistencyMode
	AttachConsistencyMode    coordination.ConsistencyMode
	RatelimiterCountersMode  coordination.RatelimiterCountersMode
}

func ResourceSchemaToCoordinationResource

func ResourceSchemaToCoordinationResource(d *schema.ResourceData) (*Resource, error)

Jump to

Keyboard shortcuts

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