riser-server

command module
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

README

Riser Server

GitHub Actions status

This is the server for the Riser Platform. Releases are pushed to Docker Hub

Development

This section will be improved as we're closer to accepting PRs from the community.

DB Migrations

Migration Tool: go get -u -d github.com/golang-migrate/migrate/cmd/migrate

Create a new migration

migrate create -dir migrations -format unix -ext sql addstuff

Note that this creates both an up and a down script. You should delete the down script. The philosophy is that migrations should be should always "roll forward".

Applying migrations

By default the riser server will apply database migrations if needed during startup. You may disable this behavior by setting the environment variable RISER_POSTGRES_MIGRATE_ON_STARTUP=false. To manually migrate, modify the connection string below and run:

migrate -source=file://migrations -database="postgres://user:password@postgreshost/riserdb" up

See the migrate documentation for more details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
Package api contains routes, client models, and API related utilities.
Package api contains routes, client models, and API related utilities.
v1
Package v1 contains the v1 api and client models.
Package v1 contains the v1 api and client models.
v1/model Module
pkg
app
git
state/resources
KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).
KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).
sdk Module

Jump to

Keyboard shortcuts

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