Documentation
¶
Overview ¶
Package spanner contains the GCP Spanner Backend.
Index ¶
Constants ¶
View Source
const ( // DefaultTable is the default Spanner table name. DefaultTable = "urls" // DefaultNumChannels is the default number of channels in the Spanner client. DefaultNumChannels = 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendOption ¶
type BackendOption interface {
Apply(*backendSettings)
}
A BackendOption is an option for a Spanner-based backend.
func WithClientConfig ¶
func WithClientConfig(c spanner.ClientConfig) BackendOption
WithClientConfig returns a BackendOption that specifies configurations for the Spanner client.
func WithClientOptions ¶
func WithClientOptions(o []option.ClientOption) BackendOption
WithClientOptions returns a BackendOption that specifies Google API client configurations for the Spanner client.
func WithTable ¶
func WithTable(t string) BackendOption
WithTable configures the Spanner table; default is "urls".
Click to show internal directories.
Click to hide internal directories.