Documentation
¶
Overview ¶
Code generated from meta collections. DO NOT EDIT.
Index ¶
- func WaitPostgresAvailable(lookup environment.Environmenter) error
- type FlowPostgres
- type FlowVoteCount
- func (s *FlowVoteCount) Connect(ctx context.Context, eventProvider func() (<-chan time.Time, func() bool), ...)
- func (s *FlowVoteCount) Get(ctx context.Context, keys ...dskey.Key) (map[dskey.Key][]byte, error)
- func (s *FlowVoteCount) Update(ctx context.Context, updateFn func(map[dskey.Key][]byte, error))
- type InvalidDataError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitPostgresAvailable ¶
func WaitPostgresAvailable(lookup environment.Environmenter) error
WaitPostgresAvailable blocks until postgres db is availabe
Types ¶
type FlowPostgres ¶
FlowPostgres uses postgres to get the connections.
func NewFlowPostgres ¶
func NewFlowPostgres(lookup environment.Environmenter) (*FlowPostgres, error)
NewFlowPostgres initializes a SourcePostgres.
type FlowVoteCount ¶
type FlowVoteCount struct {
// contains filtered or unexported fields
}
FlowVoteCount is a datastore flow for the poll/vote_count value.
func NewFlowVoteCount ¶
func NewFlowVoteCount(lookup environment.Environmenter) *FlowVoteCount
NewFlowVoteCount initializes the object.
func (*FlowVoteCount) Connect ¶
func (s *FlowVoteCount) Connect(ctx context.Context, eventProvider func() (<-chan time.Time, func() bool), errHandler func(error))
Connect creates a connection to the vote service and makes sure, it stays open.
eventProvider is a function that returns a channel. If the connection fails, this function fetches such a channel and waits for a signal before it tries to open a new connection.
type InvalidDataError ¶
InvalidDataError is returned, when a key has an invalid value in the database.
func (InvalidDataError) Error ¶
func (err InvalidDataError) Error() string
Directories
¶
| Path | Synopsis |
|---|---|
|
Code generated from meta-collections.
|
Code generated from meta-collections. |
|
gen_fields
command
This tool generates the code needed for the request object.
|
This tool generates the code needed for the request object. |
|
Code generated from meta/collections.
|
Code generated from meta/collections. |
|
gen_collection_fields
command
|
|
|
Code generated from meta collections.
|
Code generated from meta collections. |
|
gen_models
command
This tool generates the code needed for the request object.
|
This tool generates the code needed for the request object. |
|
copy_sql
command
|