zo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {

	// 最近一次的响应
	LastResp ZOResp
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(conf config.ZincObserveConf) *Writer

func (*Writer) Write

func (c *Writer) Write(_, val string) error

Write writes the val to the ZincObserve endpoint

type ZOResp

type ZOResp struct {
	Code   int `json:"code"`
	Status []struct {
		Name       string `json:"name"`
		Successful int    `json:"successful"`
		Failed     int    `json:"failed"`
	} `json:"status"`
}

Jump to

Keyboard shortcuts

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