chitchat/client/server.go

28 lines
627 B
Go
Raw Normal View History

2025-01-06 11:03:58 +00:00
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
}