types

package
v0.0.0-...-ecee74b Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSizeUnit

func ToSizeUnit(n int64) string

Types

type RequestAnalytic

type RequestAnalytic struct {
	Method           string
	ReceivedAt       time.Time
	TimeTaken        time.Duration
	From             string
	RequestBodySize  int64
	ResponseBodySize int64
	ResponseCode     int
}

func (RequestAnalytic) String

func (r RequestAnalytic) String() string

type Socket

type Socket struct {
	Host string
	Port int64
}

func (*Socket) Socket

func (s *Socket) Socket() string

type TunnelSession

type TunnelSession struct {
	SessionID string
	StartedAt time.Time
}

type WebhookConfig

type WebhookConfig struct {
	PubKey               string
	ID                   string
	ClientSocket         Socket
	InternalServerSocket Socket
	Path                 string
	PublicURL            string
	InternalURL          string
	ActiveSession        *TunnelSession
}

func (WebhookConfig) String

func (w WebhookConfig) String() string

func (WebhookConfig) TunnelCommand

func (w WebhookConfig) TunnelCommand() string

Jump to

Keyboard shortcuts

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