client

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClientModule for fx.
	ClientModule = fx.Options(
		v1.Module,
		fx.Provide(NewClient),
	)

	// CommandModule for fx.
	CommandModule = fx.Options(
		ClientModule,
		fx.Invoke(RunCommand),
	)
)

Functions

func RunCommand added in v1.11.0

func RunCommand(params RunCommandParams)

RunCommand for client.

Types

type Client added in v1.11.0

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

Client for migrieren.

func NewClient added in v1.11.0

func NewClient(client v1.ServiceClient, config *v1c.Config) *Client

NewClient for migrieren.

func (*Client) Migrate added in v1.11.0

func (c *Client) Migrate(ctx context.Context) ([]string, error)

Migrate the database to version.

type Config

type Config struct {
	V1 config.Config `yaml:"v1" json:"v1" toml:"v1"`
}

Config for client.

type RunCommandParams added in v1.11.0

type RunCommandParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Client    *Client
}

RunCommandParams for client.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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