Documentation
¶
Index ¶
- type Connection
- type Server
- func (s *Server) AddService(key string, service Service)
- func (s *Server) CloseDB()
- func (s *Server) Del(m tro.Message) error
- func (s *Server) Get(m tro.Message) (string, error)
- func (s *Server) Listen(port string) error
- func (s *Server) OpenSQLite(filename string) error
- func (s *Server) Set(m tro.Message) error
- func (s *Server) SetDB(db *sql.DB) error
- func (s *Server) Txn(m tro.Message) (string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(privkey string) *Connection
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) Delete ¶
func (c *Connection) Delete(key string) error
func (*Connection) Dial ¶
func (c *Connection) Dial(addr string) error
func (*Connection) Set ¶
func (c *Connection) Set(key, val string) error
Click to show internal directories.
Click to hide internal directories.