chitchat/client/server.go
2025-01-06 12:03:58 +01:00

27 lines
627 B
Go

package main
type Server struct {
}
// Checks if the storage has an element with the id.
// Returns [ErrNotExists] if the element doesn't exist.
func (s *Server) Has(id string) error {
return nil
}
// Retreive an element from the storage.
// Returns [ErrNotExists] if the element doesn't exist.
func (s *Server) Get(id string) ([]byte, error) {
return nil, nil
}
// Store an element in the storage.
func (s *Server) Put(id string, element []byte) error {
return nil
}
// Delete an element from the storage.
// Returns [ErrNotExists] if the elment doesn't exist.
func (s *Server) Delete(id string) error {
return nil
}