gateway

package
v0.0.0-...-f49aa48 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr         string
	Secure       bool
	CaCert       string
	CaCertBase64 string
	ServerName   string
	Apikey       string
}

type Service

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

func New

func New(config Config) (*Service, error)

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) error

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop()

func (*Service) WriteMetrics

func (*Service) WriteMetricsV1Extension

func (s *Service) WriteMetricsV1Extension(ctx context.Context, extension map[string]string, points []*pb2.Point) (*pb2.WriteMetricsResponse, error)

func (*Service) WriteMetricsV1Extension2

func (s *Service) WriteMetricsV1Extension2(ctx context.Context, extension map[string]string, metrics []*model.Metric) (*pb2.WriteMetricsResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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