Documentation
¶
Index ¶
- func NewJwt(claim map[string]any) (string, error)
- func Verify(token string) (map[string]any, error)
- type Config
- type Server
- func (s *Server) Close() error
- func (s *Server) Control(r *http.Request, w http.ResponseWriter) (map[string]any, bool)
- func (s *Server) Error(w http.ResponseWriter, status int, data any)
- func (s *Server) Listen(ctx context.Context, cancelFunc context.CancelFunc)
- func (s *Server) Mux() *http.ServeMux
- func (s *Server) Write(w http.ResponseWriter, data any)
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
type Services ¶
type Services struct {
TokenService ports.TokenService
BucketService ports.BucketService
DataService ports.DataService
PointService ports.PointService
}
Click to show internal directories.
Click to hide internal directories.