Documentation
¶
Index ¶
- Constants
- type Driver
- func (d Driver) GetProperty(ctx context.Context, id ID) (*entity.Property, error)
- func (d Driver) GetTenant(ctx context.Context, id entity.ID) (*entity.Tenant, error)
- func (d Driver) ListProperties(ctx context.Context, f usecase.PropertyFilter) ([]entity.Property, error)
- func (d Driver) ListTenants(ctx context.Context) ([]entity.Tenant, error)
- func (d Driver) RemoveProperty(ctx context.Context, id ID) error
- func (d Driver) StoreProperty(ctx context.Context, p entity.Property) (string, error)
- func (d Driver) StoreTenant(ctx context.Context, tenant entity.Tenant) (*entity.Tenant, error)
- type Header
- type ID
- type Server
- func (s *Server) AddProperty(w http.ResponseWriter, r *http.Request)
- func (s *Server) AddTenant(w http.ResponseWriter, r *http.Request)
- func (s *Server) AuthMW(next http.Handler) http.Handler
- func (s *Server) DeleteProperty(w http.ResponseWriter, r *http.Request, propertyID string)
- func (s *Server) GetLease(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) GetPropertyById(w http.ResponseWriter, r *http.Request, propertyID string)
- func (s *Server) GetTenant(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) Handler() http.Handler
- func (s *Server) LeaseProperty(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListLeases(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListProperties(w http.ResponseWriter, r *http.Request, params oapi.ListPropertiesParams)
- func (s *Server) ListTenants(w http.ResponseWriter, r *http.Request)
- func (s *Server) StoreProperty(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) StoreTenant(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) WithCredentials(key, secret string) *Server
Constants ¶
View Source
const ( HeaderAPIKey = "X-Api-Key" HeaderAPISecret = "x-Api-Secret" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
func (Driver) GetProperty ¶
func (Driver) ListProperties ¶
func (Driver) ListTenants ¶
func (Driver) StoreProperty ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddProperty ¶
func (s *Server) AddProperty(w http.ResponseWriter, r *http.Request)
func (*Server) DeleteProperty ¶
func (*Server) GetPropertyById ¶
func (*Server) LeaseProperty ¶
func (s *Server) LeaseProperty(w http.ResponseWriter, r *http.Request)
func (*Server) ListLeases ¶
func (s *Server) ListLeases(w http.ResponseWriter, r *http.Request)
func (*Server) ListProperties ¶
func (s *Server) ListProperties(w http.ResponseWriter, r *http.Request, params oapi.ListPropertiesParams)
func (*Server) ListTenants ¶
func (s *Server) ListTenants(w http.ResponseWriter, r *http.Request)
func (*Server) StoreProperty ¶
func (*Server) StoreTenant ¶
func (*Server) WithCredentials ¶
Click to show internal directories.
Click to hide internal directories.