Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const MIGRATION_DIRECTORY_FORMAT = "projection/%s/migrations"
View Source
const MIGRATION_GITHUB_URL_FORMAT = "github://%s:%s@crypto-com/chain-indexing/%s"

Variables

This section is empty.

Functions

func GenerateDefaultSourceURL

func GenerateDefaultSourceURL(
	projectionId string,
	config Config,
) string

Generate the default Github URL to migration source files

func GenerateSourceURL

func GenerateSourceURL(
	format string,
	apiUser string,
	apiToken string,
	migrationDirectory string,
	migrationRepoRef string,
) string

Generate the Github URL to migration source files

Types

type Config

type Config struct {
	GithubAPIUser    string
	GithubAPIToken   string
	MigrationRepoRef string
	ConnString       string
}

type GithubMigrationHelper

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

func NewGithubMigrationHelper

func NewGithubMigrationHelper(sourceURL string, databaseURL string) *GithubMigrationHelper

func (*GithubMigrationHelper) Migrate

func (gmh *GithubMigrationHelper) Migrate()

Implement MigrationHelper interface

Jump to

Keyboard shortcuts

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