websocket

package
v0.4.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLog

func CloseLog(t *tail.Tail)

func Handler

func Handler(apiOp *types.APIRequest) (types.APIObjectList, error)

func KubeHandler

func KubeHandler(apiOp *types.APIRequest) (types.APIObject, error)

func LogHandler

func LogHandler(apiOp *types.APIRequest) (types.APIObjectList, error)

func NewTailLog

func NewTailLog(logFilePath string) (*tail.Tail, error)

func WriteLastLogs

func WriteLastLogs(t *tail.Tail, w http.ResponseWriter, f http.Flusher, logFilePath string) error

Types

type BinaryReader

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

func NewReader

func NewReader(con *websocket.Conn) *BinaryReader

func (*BinaryReader) Read

func (s *BinaryReader) Read(p []byte) (int, error)

type BinaryWriter

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

func NewWriter

func NewWriter(con *websocket.Conn) *BinaryWriter

func (*BinaryWriter) Write

func (s *BinaryWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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