Documentation
¶
Index ¶
- type Config
- type EndpointSnapshot
- type EndpointStatus
- type MonitorCounters
- type MonitorSnapshot
- type Server
- func (s *Server) AddUser(user, pass string, addrs ...string) error
- func (s *Server) Close() error
- func (s *Server) DeleteUser(user string)
- func (s *Server) GetFingerprint() string
- func (s *Server) MonitorSnapshot() MonitorSnapshot
- func (s *Server) ResetUsers(users []*settings.User)
- func (s *Server) Run(host, port string) error
- func (s *Server) Start(host, port string) error
- func (s *Server) StartContext(ctx context.Context, host, port string) error
- func (s *Server) Wait() error
- type SessionSnapshot
- type SessionStatus
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
KeySeed string
KeyFile string
AuthFile string
Auth string
Proxy string
Socks5 bool
Reverse bool
KeepAlive time.Duration
TLS TLSConfig
OTELEnabled bool
OTELEndpoint string
}
Config is the configuration for the chisel service
type EndpointSnapshot ¶
type EndpointStatus ¶
type EndpointStatus string
const ( EndpointStatusPending EndpointStatus = "pending" EndpointStatusActive EndpointStatus = "active" EndpointStatusFailed EndpointStatus = "failed" EndpointStatusClosed EndpointStatus = "closed" )
type MonitorCounters ¶
type MonitorSnapshot ¶
type MonitorSnapshot struct {
Sessions []SessionSnapshot
Endpoints []EndpointSnapshot
Counters MonitorCounters
}
type Server ¶
Server respresent a chisel service
func (*Server) DeleteUser ¶
DeleteUser removes a user from the server user index
func (*Server) GetFingerprint ¶
GetFingerprint is used to access the server fingerprint
func (*Server) MonitorSnapshot ¶
func (s *Server) MonitorSnapshot() MonitorSnapshot
MonitorSnapshot returns a copy of monitor session/endpoint telemetry.
func (*Server) ResetUsers ¶
ResetUsers in the server user index. Use nil to remove all.
func (*Server) Run ¶
Run is responsible for starting the chisel service. Internally this calls Start then Wait.
func (*Server) StartContext ¶
StartContext is responsible for kicking off the http server, and can be closed by cancelling the provided context
type SessionSnapshot ¶
type SessionStatus ¶
type SessionStatus string
const ( SessionStatusPending SessionStatus = "pending" SessionStatusConnected SessionStatus = "connected" SessionStatusFailed SessionStatus = "failed" SessionStatusDisconnected SessionStatus = "disconnected" )
Click to show internal directories.
Click to hide internal directories.