internalclient

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 15 Imported by: 8

Documentation

Index

Constants

View Source
const (
	DeviceUIDHeader = "X-Device-UID"
)

Variables

View Source
var (
	ErrConnectionFailed = errors.New("connection failed")
	ErrNotFound         = errors.New("not found")
	ErrForbidden        = errors.New("forbidden")
	ErrUnknown          = errors.New("unknown error")
)
View Source
var (
	ErrFirewallConnection = errors.New("failed to make the request to evaluate the firewall")
	ErrFirewallBlock      = errors.New("a firewall rule prohibit this connection")
)

Functions

func WithAsynqWorker added in v0.17.0

func WithAsynqWorker(redisURI string) clientOption

Types

type Client

type Client interface {
	// contains filtered or unexported methods
}

func NewClient

func NewClient(opts ...clientOption) (Client, error)

type LeveledLogger

type LeveledLogger struct {
	Logger *logrus.Logger
}

func (*LeveledLogger) Debugf added in v0.9.0

func (l *LeveledLogger) Debugf(msg string, keysAndValues ...interface{})

func (*LeveledLogger) Errorf added in v0.9.0

func (l *LeveledLogger) Errorf(msg string, keysAndValues ...interface{})

func (*LeveledLogger) Warnf added in v0.9.0

func (l *LeveledLogger) Warnf(msg string, keysAndValues ...interface{})

type Tunnel added in v0.18.0

type Tunnel struct {
	Address    string    `json:"address"`
	Namespace  string    `json:"namespace"`
	Device     string    `json:"device"`
	Host       string    `json:"host"`
	Port       int       `json:"port"`
	TimeToLive int       `json:"ttl"`
	ExpiresIn  time.Time `json:"expires_in"`
	CreatedAt  time.Time `json:"time" bson:"time"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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