obx

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package obx contain some help function for OpenObserve.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host         string
	User         string
	Password     string
	Organization string
	Stream       string
	UserAgent    string
	Secure       bool
}

Config confiugre used for create a OpenObserveClient instance

func (*Config) Endpoint

func (c *Config) Endpoint() string

type OpenObserveClient

type OpenObserveClient interface {
	LogJson(data []byte)
}

OpenObserveClient OpenObserve client interface

func NewClient

func NewClient(conf *Config, acc *hx.AsyncClientConf, fn hx.ResponseFn) OpenObserveClient

NewClient create OpenObserve client instance

Jump to

Keyboard shortcuts

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