package database import ( proto "git.xeserv.us/xena/route/proto" ) // Route is a single HTTP route. type Route struct { ID string `gorethink:"id,omitempty" storm:"id"` Creator string Hostname string `gorethink:"hostname" storm:"index"` Token string `gorethink:"token" storm:"-"` // deprecated } // AsProto converts this into the protobuf. func (r Route) AsProto() *proto.Route { return &proto.Route{ Id: r.ID, Creator: r.Creator, Host: r.Hostname, } }