Versions in this module Expand all Collapse all v0 v0.1.7 Jan 6, 2025 Changes in this version + func IsImageError(err error) bool + func IsInvalidRequest(err error) bool + func IsNoPortAvailable(err error) bool + func IsSSHNotAvailable(err error) bool + func IsTunnelError(err error) bool + type Error struct + Code ErrorCode + Err error + Message string + func NewError(code ErrorCode, message string, err error) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type ErrorCode int + const ErrImageGeneration + const ErrInvalidRequest + const ErrNoPortAvailable + const ErrSSHNotAvailable + const ErrServerShutdown + const ErrServerStart + const ErrTunnelStart + type Server struct + func New(cfg *config.Config, opts ...ServerOption) *Server + func (s *Server) Done() <-chan struct{} + func (s *Server) GetTunnelImageUrl() string + func (s *Server) MessageChan() <-chan types.Message + func (s *Server) Ready() <-chan struct{} + func (s *Server) SendPostRequest(ctx context.Context, url, key, model string, useStream bool) + func (s *Server) Shutdown() error + func (s *Server) Start(ctx context.Context) error + func (s *Server) TunnelURL() string + type ServerOption func(*Server)