Documentation
¶
Index ¶
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the main application server
func New ¶
func New(cfg *config.Config, opts ...ServerOption) *Server
New creates a new server instance
func (*Server) GetTunnelImageUrl ¶
GetTunnelURL returns the tunnel URL
func (*Server) MessageChan ¶
MessageChan returns the message channel
func (*Server) SendPostRequest ¶
SendPostRequest sends a POST request to test the API
type ServerOption ¶
type ServerOption func(*Server)
ServerOption represents a server configuration option
Click to show internal directories.
Click to hide internal directories.