Versions in this module Expand all Collapse all v0 v0.1.1 Dec 28, 2023 v0.1.0 Dec 27, 2023 Changes in this version + var Stage *stage + func ClientInitialize() + func HandleResponse(session *clientpb.Session, resp *transport.GenericHTTPResponse) + func Initialize() + func ShortID(uuid string) string + type Claims struct + ID int + type HTTPSession struct + Agent *db.Agent + Authenticated bool + ID int + Info transport.Registration + Killer chan struct{} + LastActive time.Time + RequestQueue types.Queue + ResponseQueue types.Queue + SentRequests map[string]int + Status SessionStatus + UsedBy string + type Handler struct + CertFile string + KeyFile string + var MainHandler *Handler + var TranLogger log.Logger + func NewHandler() *Handler + func (h *Handler) AwaitResponse(sessionID int) *transport.GenericHTTPResponse + func (h *Handler) IsActive() bool + func (h *Handler) IsActiveTLS() bool + func (h *Handler) NewSession(agent *db.Agent, isTCP bool, connectInfo *transport.Registration) (string, time.Time, int, error) + func (h *Handler) QueueRequest(sessionID int, req *transport.GenericHTTPRequest) error + func (h *Handler) RmSession(sessID int) + func (h *Handler) Serve() + func (h *Handler) ServeTLS() + func (h *Handler) SessionByID(sessID int) *HTTPSession + func (h *Handler) Sessions(sessIDs []int) []*HTTPSession + func (h *Handler) Stop() error + func (h *Handler) StopTLS() error + type RequestQueue struct + Channel chan *transport.GenericHTTPRequest + func NewRequestQueue() *RequestQueue + func (r *RequestQueue) Dequeue() interface{} + func (r *RequestQueue) Enqueue(req interface{}) error + func (r *RequestQueue) Size() int + type ResponseQueue struct + func NewResponseQueue() *ResponseQueue + func (r *ResponseQueue) Dequeue() interface{} + func (r *ResponseQueue) Enqueue(req interface{}) error + func (r *ResponseQueue) Size() int + type SessionStatus string + const StatusActive + const StatusInactive + const StatusKilled + type StageItem struct + Agent string + Path string + StagedBy string v0.0.3-alpha Dec 25, 2023 v0.0.2-alpha Dec 12, 2023