server

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0, MIT, MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiagAPIServer

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

DiagAPIServer is the RESTful API server for diag in Kubernetes

func NewServer

func NewServer(opt *Options) (*DiagAPIServer, error)

NewServer creates a diag API server

func (*DiagAPIServer) Run

func (s *DiagAPIServer) Run() error

Run starts the server

type Options

type Options struct {
	Host    string
	Port    int
	Verbose bool
}

Options is the option set for diag API server

Jump to

Keyboard shortcuts

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