Documentation ¶
Index ¶
- Constants
- Variables
- func Package() config.ProtoCommandIface
- type Config
- type Data
- type Options
- type Service
- func (srv *Service) Close() error
- func (srv *Service) GitHubTokenHTTPAuth(ctx http.Context) (interface{}, error)
- func (srv *Service) GitHubTokenHTTPAuthCleanup(ctx http.Context) (interface{}, error)
- func (s *Service) KV() kvdb.KVDB
- func (srv *Service) ListNodes() ([]string, error)
- func (s *Service) Node() peer.Node
- func (s *Service) Resolver() iface.Resolver
Constants ¶
View Source
const ( UsageStatement = `` /* 302-byte string literal not displayed */ InsertService = `INSERT OR REPLACE INTO Services(Id, Timestamp, Type) VALUES (?,?,?)` InsertMeta = `INSERT OR REPLACE INTO Meta(Id, Type, Key, Value) VALUES (?,?,?,?)` DeleteService = `DELETE FROM Services WHERE Id=?` DeleteMetas = `DELETE FROM Meta WHERE Id=?` GetServiceType = `SELECT Type FROM Services WHERE Id=?` CreateServiceTable = `CREATE TABLE IF NOT EXISTS Services ( "Id" varchar(255), "Timestamp" int, "Type" varchar(255), UNIQUE(Id, Type) );` CreateUsageTable = `` /* 482-byte string literal not displayed */ CreateMetaTable = `` /* 154-byte string literal not displayed */ // TODO: Combine these two Statements GetStableNodeIps = `SELECT Value from Meta, Usage WHERE Meta.Id = Usage.Id AND Usage.Timestamp > ? AND Key="IP" AND Type="substrate";` GetServiceIp = `SELECT Value from Meta, Usage WHERE Meta.Id = Usage.Id AND Usage.Timestamp > ? AND Key="IP" AND Type=?;` )
Variables ¶
Functions ¶
func Package ¶
func Package() config.ProtoCommandIface
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GitHubTokenHTTPAuth ¶
func (*Service) GitHubTokenHTTPAuthCleanup ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.