Documentation ¶
Index ¶
- Constants
- func CreateEntry(e Entry, tx *sql.Tx, ctx context.Context) error
- func CreateProject(p Project, tx *sql.Tx, ctx context.Context) error
- func DeleteEntries(projectId int, publishedMin, publishedMax time.Time, tx *sql.Tx, ...) error
- func FirstNonEmpty(values ...string) string
- func IsUniqueViolation(err error) bool
- func ListProjects(filterName, filterValue string, projects *[]Project, db *sql.DB, ...) error
- func OpenDB(dbUrl string) (*sql.DB, error)
- func StringToNullable(value string) sql.NullString
- func Ternary(cond bool, a, b string) string
- type ContextMap
- type Entry
- type Project
Constants ¶
View Source
const ( BitsPerWord = 32 << (^uint(0) >> 63) MaxInt = 1<<(BitsPerWord-1) - 1 MinInt = -MaxInt - 1 )
Variables ¶
This section is empty.
Functions ¶
func DeleteEntries ¶
func FirstNonEmpty ¶
func IsUniqueViolation ¶
func ListProjects ¶
func StringToNullable ¶
func StringToNullable(value string) sql.NullString
Types ¶
type ContextMap ¶
type ContextMap map[string]interface{}
func (*ContextMap) Scan ¶
func (c *ContextMap) Scan(src interface{}) error
type Entry ¶
type Entry struct { ProjectId int32 `json:"project_id"` Seq int64 `json:"seq"` Published time.Time `json:"published"` Source string `json:"source"` Type string `json:"type"` Actor string `json:"actor"` Object string `json:"object"` Target string `json:"target"` Context ContextMap `json:"context"` Repeated int32 `json:"repeated"` TraceId string `json:"trace_id"` ParentSpanId string `json:"parent_span_id"` SpanId string `json:"span_id"` }
Click to show internal directories.
Click to hide internal directories.