util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AuthKeyEnvVar = "TSGROK_AUTHKEY" // env var for auth key
View Source
const DefaultPort = 4141
View Source
const ProgramName = "tsgrok"
View Source
const ProxyHttpPortEnvVar = "TSGROK_PROXY_HTTP_PORT" // env var for proxy http port, defaults to DefaultPort

Variables

View Source
var Commit = "none" // Will be overwritten by goreleaser
View Source
var Date = "unknown" // Will be overwritten by goreleaser
View Source
var ProgramVersion = "dev" // Will be overwritten by goreleaser

Functions

func GetAuthKey

func GetAuthKey() string

func GetProxyHttpPort

func GetProxyHttpPort() int

func NewServerErrorLog

func NewServerErrorLog() *stdlog.Logger

Types

type MessageBus

type MessageBus interface {
	Send(msg tea.Msg)

	SetProgram(program *tea.Program)
}

func NewMessageBus

func NewMessageBus(program *tea.Program) MessageBus

type MessageBusImpl

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

func (MessageBusImpl) Send

func (m MessageBusImpl) Send(msg tea.Msg)

func (*MessageBusImpl) SetProgram

func (m *MessageBusImpl) SetProgram(program *tea.Program)

Jump to

Keyboard shortcuts

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