Documentation ¶
Index ¶
- func New(db *database.Connection) *grpc.Server
- func WithLogging(db *database.Connection, service pb.GrubenlampeServer) pb.GrubenlampeServer
- type Server
- func (s *Server) AddASN(ctx context.Context, req *pb.AddASNRequest) (*pb.GenericResponse, error)
- func (s *Server) AddIPv4Address(context.Context, *pb.AddIPv4AddressRequest) (*pb.AddIPv4AddressResponse, error)
- func (s *Server) AddIPv6Prefix(context.Context, *pb.AddIPv6PrefixRequest) (*pb.AddIPv6PrefixResponse, error)
- func (s *Server) AddOrg(ctx context.Context, req *pb.AddOrgRequest) (*pb.GenericResponse, error)
- func (s *Server) AddTunnel(ctx context.Context, req *pb.AddTunnelRequest) (*pb.GenericResponse, error)
- func (s *Server) AddUser(ctx context.Context, req *pb.AddUserRequest) (*pb.GenericResponse, error)
- func (s *Server) DeleteTunnel(context.Context, *pb.DeleteTunnelRequest) (*pb.GenericResponse, error)
- func (s *Server) GetBGPStatus(context.Context, *pb.GetBGPStatusRequest) (*pb.GetBGPStatusResponse, error)
- func (s *Server) GetLogs(context.Context, *pb.GetLogsRequest) (*pb.GetLogsResponse, error)
- func (s *Server) GetTunnels(context.Context, *pb.GetTunnelsRequest) (*pb.GetTunnelsResponse, error)
- func (s *Server) ReleaseIPv4Address(context.Context, *pb.ReleaseIPv4AddressRequest) (*pb.GenericResponse, error)
- func (s *Server) ReleaseIPv6Prefix(context.Context, *pb.ReleaseIPv6PrefixRequest) (*pb.GenericResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogging ¶
func WithLogging(db *database.Connection, service pb.GrubenlampeServer) pb.GrubenlampeServer
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 ¶
func (s *Server) AddIPv4Address(context.Context, *pb.AddIPv4AddressRequest) (*pb.AddIPv4AddressResponse, error)
AddIPv4Address creates an IPv4 address
func (*Server) AddIPv6Prefix ¶
func (s *Server) AddIPv6Prefix(context.Context, *pb.AddIPv6PrefixRequest) (*pb.AddIPv6PrefixResponse, error)
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 ¶
func (s *Server) DeleteTunnel(context.Context, *pb.DeleteTunnelRequest) (*pb.GenericResponse, error)
DeleteTunnel deletes a tunnel
func (*Server) GetBGPStatus ¶
func (s *Server) GetBGPStatus(context.Context, *pb.GetBGPStatusRequest) (*pb.GetBGPStatusResponse, error)
GetBGPStatus gets status of BGP sessions
func (*Server) GetLogs ¶
func (s *Server) GetLogs(context.Context, *pb.GetLogsRequest) (*pb.GetLogsResponse, error)
GetLogs gets Logs
func (*Server) GetTunnels ¶
func (s *Server) GetTunnels(context.Context, *pb.GetTunnelsRequest) (*pb.GetTunnelsResponse, error)
GetTunnels retrieves tunnels for an org
func (*Server) ReleaseIPv4Address ¶
func (s *Server) ReleaseIPv4Address(context.Context, *pb.ReleaseIPv4AddressRequest) (*pb.GenericResponse, error)
ReleaseIPv4Address releases an IPv4 address
func (*Server) ReleaseIPv6Prefix ¶
func (s *Server) ReleaseIPv6Prefix(context.Context, *pb.ReleaseIPv6PrefixRequest) (*pb.GenericResponse, error)
ReleaseIPv6Prefix releases an IPv6 prefix
Click to show internal directories.
Click to hide internal directories.