Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
Success bool `json:"success"`
Data interface{} `json:"data,omitempty"`
Error string `json:"error,omitempty"`
Meta *Meta `json:"meta,omitempty"`
}
APIResponse represents a standard API response
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
APIServer provides REST endpoints for Termonaut
func NewAPIServer ¶
NewAPIServer creates a new API server
func (*APIServer) SetAuthenticator ¶
func (s *APIServer) SetAuthenticator(auth Authenticator)
SetAuthenticator sets the authentication method
type Authenticator ¶
Authenticator interface for API authentication
Click to show internal directories.
Click to hide internal directories.