Skip to content
Snippets Groups Projects
Forked from asapo / asapo
1898 commits behind the upstream repository.
database.go 287 B
package database

type Agent interface {
	ProcessRequest(db_name string, group_id string, op string, id int) ([]byte, error)
	Connect(string) error
	Close()
	Copy() Agent
}

type DBError struct {
	Code    int
	Message string
}

func (err *DBError) Error() string {
	return err.Message
}