Documentation ¶
Index ¶
- func DBConn() (*sql.DB, error)
- func Migrate(db *sql.DB, dir string) error
- func Serve(port uint)
- type Server
- func (s *Server) InternetGWs(ctx context.Context, req *vpcAPI.VPCInfoRequest) (*vpcAPI.InternetGWsRespones, error)
- func (s *Server) Subnets(ctx context.Context, req *vpcAPI.VPCInfoRequest) (*vpcAPI.SubnetsResponse, error)
- func (s *Server) VPCInfo(ctx context.Context, req *vpcAPI.VPCInfoRequest) (*vpcAPI.VPCInfoResponse, error)
- func (s *Server) VPCs(ctx context.Context, req *vpcAPI.VPCsRequest) (*vpcAPI.VPCsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBConn ¶
DBConn opens a connection to a postgresql db server and attempts to validate the connection
Types ¶
type Server ¶
type Server struct { vpcAPI.UnimplementedVPCServiceServer // contains filtered or unexported fields }
Server vpc API server
func (*Server) InternetGWs ¶
func (s *Server) InternetGWs(ctx context.Context, req *vpcAPI.VPCInfoRequest) (*vpcAPI.InternetGWsRespones, error)
InternetGWs TODO
func (*Server) Subnets ¶
func (s *Server) Subnets(ctx context.Context, req *vpcAPI.VPCInfoRequest) (*vpcAPI.SubnetsResponse, error)
Subnets TODO
func (*Server) VPCInfo ¶
func (s *Server) VPCInfo(ctx context.Context, req *vpcAPI.VPCInfoRequest) (*vpcAPI.VPCInfoResponse, error)
VPCInfo supplies VPC info to backend services
func (*Server) VPCs ¶
func (s *Server) VPCs(ctx context.Context, req *vpcAPI.VPCsRequest) (*vpcAPI.VPCsResponse, error)
VPCs provides a list of VPCs for an account
Click to show internal directories.
Click to hide internal directories.