chunky

package module
v0.0.0-...-d369e1f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 5 Imported by: 0

README

chunky

A simple network protocol for sending and receiving sets of multiple files

note

This is garbage and you don't want it

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFileHeader

func ReadFileHeader(c io.Reader) (string, int64, error)

func ReadHeader

func ReadHeader(c io.Reader) (int64, error)

func WriteFileHeader

func WriteFileHeader(c io.Writer, name string, size int64) error

func WriteHeader

func WriteHeader(c io.Writer, count int64) error

Types

type Event

type Event struct {
	Severity string `json:"severity"`
	Msg      string `json:"msg"`

	Row int `json:"row"`
	Col int `json:"col"`
}

type Log

type Log struct {
	Exception string `json:"exception"`
	Row       int    `json:"row"`
	Col       int    `json:"col"`

	Events []Event `json:"events"`
}

func ParseLog

func ParseLog(json_bytes []byte) (*Log, error)

Jump to

Keyboard shortcuts

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