sdk

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg Config) (*Client, error)

func (*Client) SetProvider

func (c *Client) SetProvider(p MetricsProvider)

func (*Client) Start

func (c *Client) Start(ctx context.Context)

type Config

type Config struct {
	ServerURL   string
	AppName     string
	AppVersion  string
	DataDir     string // Dossier où stocker shm_identity.json
	Environment string // prod, staging
	Enabled     bool
}

type Identity

type Identity struct {
	InstanceID string `json:"instance_id"`
	PrivateKey string `json:"private_key"` // Hex encoded
	PublicKey  string `json:"public_key"`  // Hex encoded
}

type MetricsProvider

type MetricsProvider func() map[string]interface{}

Jump to

Keyboard shortcuts

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