vpc

package
v0.0.0-...-a9890c3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBConn

func DBConn() (*sql.DB, error)

DBConn opens a connection to a postgresql db server and attempts to validate the connection

func Migrate

func Migrate(db *sql.DB, dir string) error

Migrate runs through each sql file in the migrations folder and attempts to execute it in the DB

func Serve

func Serve(port uint)

Serve starts the GRPC api server

Types

type Server

type Server struct {
	vpcAPI.UnimplementedVPCServiceServer
	// contains filtered or unexported fields
}

Server vpc API server

func NewServer

func NewServer() (*Server, error)

NewServer creates a new server instance

func (*Server) InternetGWs

InternetGWs TODO

func (*Server) Subnets

Subnets TODO

func (*Server) VPCInfo

VPCInfo supplies VPC info to backend services

func (*Server) VPCs

VPCs provides a list of VPCs for an account

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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