Documentation ¶
Index ¶
- func COPYCHAN[T any](done <-chan struct{}, src chan T) (generator func() (tap chan T, destructor func()))
- func CreateWsHandleFunc(ctx context.Context, subsystem WsSubsystem) func(conn *websocket.Conn)
- func GoogleOAUTH2(ctx context.Context) func(http.ResponseWriter, *http.Request)
- func RenderWidgets(w http.ResponseWriter, r *http.Request)
- type BaseWidget
- type HTTPServer
- type LoggingHandler
- type WsSubsystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func COPYCHAN ¶
func COPYCHAN[T any](done <-chan struct{}, src chan T) ( generator func() (tap chan T, destructor func()), )
func CreateWsHandleFunc ¶
func CreateWsHandleFunc(ctx context.Context, subsystem WsSubsystem) func(conn *websocket.Conn)
func GoogleOAUTH2 ¶
TODO put this to youtube package
func RenderWidgets ¶
func RenderWidgets(w http.ResponseWriter, r *http.Request)
Types ¶
type BaseWidget ¶
type BaseWidget interface{ Base() *widget.BaseWidget }
type HTTPServer ¶
func (*HTTPServer) GetBaseUrl ¶
func (s *HTTPServer) GetBaseUrl(host string) string
func (*HTTPServer) InitStage1 ¶
func (s *HTTPServer) InitStage1(ctx context.Context) error
func (*HTTPServer) RegisterHandler ¶
func (s *HTTPServer) RegisterHandler(path string, handler http.Handler)
type LoggingHandler ¶
func (*LoggingHandler) ServeHTTP ¶
func (h *LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.