enc

package
v0.0.0-...-80d7cf0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package enc provides an JSON event stream protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(e Event, depth int) error

Types

type Event

type Event struct {
	Stream string `json:"stream"`
	File   string `json:"file"`
	Line   int    `json:"line"`
	Func   string `json:"func,omitempty"`
	Text   string `json:"text"`
	Image  string `json:"image,omitempty"`
	Title  string `json:"title,omitempty"`
}

Jump to

Keyboard shortcuts

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