server

package
v0.0.0-...-82a691e Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *database.Connection) *grpc.Server

New creates a new API server instance

Types

type Server

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

func (*Server) AddASN

func (s *Server) AddASN(ctx context.Context, req *pb.AddASNRequest) (*pb.GenericResponse, error)

AddASN creates an Autonomous System Number

func (*Server) AddIPv4Address

AddIPv4Address creates an IPv4 address

func (*Server) AddIPv6Prefix

AddIPv6Prefix creates an IPv6 /48 prefix

func (*Server) AddOrg

func (s *Server) AddOrg(ctx context.Context, req *pb.AddOrgRequest) (*pb.GenericResponse, error)

AddOrg creates an organization

func (*Server) AddTunnel

func (s *Server) AddTunnel(ctx context.Context, req *pb.AddTunnelRequest) (*pb.GenericResponse, error)

AddTunnel crates a tunnel

func (*Server) AddUser

func (s *Server) AddUser(ctx context.Context, req *pb.AddUserRequest) (*pb.GenericResponse, error)

AddUser creates a user

func (*Server) DeleteTunnel

DeleteTunnel deletes a tunnel

func (*Server) GetBGPStatus

GetBGPStatus gets status of BGP sessions

func (*Server) GetLogs

GetLogs gets Logs

func (*Server) GetTunnels

GetTunnels retrieves tunnels for an org

func (*Server) ReleaseIPv4Address

ReleaseIPv4Address releases an IPv4 address

func (*Server) ReleaseIPv6Prefix

ReleaseIPv6Prefix releases an IPv6 prefix

Jump to

Keyboard shortcuts

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