github

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MIGRATION_DIRECTORY_FORMAT = "projection/%s/migrations"
View Source
const MIGRATION_GITHUB_URL_FORMAT = "github://%s:%s@WilliamXieCrypto/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