Documentation ¶
Overview ¶
This file is part of manifold. Manifold is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Manifold is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with manifold. If not, see <https://www.gnu.org/licenses/>.
This file is part of manifold. Manifold is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Manifold is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with manifold. If not, see <https://www.gnu.org/licenses/>.
This file is part of manifold. Manifold is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Manifold is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with manifold. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- type LogUnit
- type LogUnitConfig
- type PingUnit
- type PingUnitConfig
- type StrSlice
- type Unit
- type UnitContext
- func (c *UnitContext) Bind(other *UnitContext)
- func (c *UnitContext) Close()
- func (c *UnitContext) GetDb() *sql.DB
- func (c *UnitContext) GetName() string
- func (c *UnitContext) Receiver() events.EventChan
- func (c *UnitContext) RetDb()
- func (c *UnitContext) Run()
- func (c *UnitContext) Sender() events.EventChan
- type UnitContextBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogUnit ¶
type LogUnit struct { LogLevel string // contains filtered or unexported fields }
func NewLogUnit ¶
func NewLogUnit(config LogUnitConfig) LogUnit
func (*LogUnit) Init ¶
func (l *LogUnit) Init(context *UnitContext) error
type LogUnitConfig ¶
type LogUnitConfig struct{}
type PingUnit ¶
type PingUnit struct {
// contains filtered or unexported fields
}
func NewPingUnit ¶
func NewPingUnit(config PingUnitConfig) PingUnit
func (*PingUnit) Init ¶
func (l *PingUnit) Init(context *UnitContext) error
type PingUnitConfig ¶
type PingUnitConfig struct{}
type UnitContext ¶
type UnitContext struct {
// contains filtered or unexported fields
}
func NewUnitContext ¶
func (*UnitContext) Bind ¶
func (c *UnitContext) Bind(other *UnitContext)
func (*UnitContext) Close ¶
func (c *UnitContext) Close()
func (*UnitContext) GetDb ¶
func (c *UnitContext) GetDb() *sql.DB
func (*UnitContext) GetName ¶
func (c *UnitContext) GetName() string
func (*UnitContext) Receiver ¶
func (c *UnitContext) Receiver() events.EventChan
func (*UnitContext) RetDb ¶
func (c *UnitContext) RetDb()
func (*UnitContext) Run ¶
func (c *UnitContext) Run()
func (*UnitContext) Sender ¶
func (c *UnitContext) Sender() events.EventChan
type UnitContextBuilder ¶
type UnitContextBuilder struct {
// contains filtered or unexported fields
}
func NewUnitContextBuilder ¶
func NewUnitContextBuilder(db *sql.DB, eventsChanSize int) UnitContextBuilder
func (*UnitContextBuilder) Build ¶
func (b *UnitContextBuilder) Build(Name string, BlockListInternal, BlockListExternal []id.Id) *UnitContext