Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsRepository ¶
type EventsService ¶
type EventsService interface { SearchEvents(p SearchEventsInput) (*[]Event, error) LogEvent(p LogEventInput) (int, error) ReadEvent(id int) (*Event, error) }
type LogEventInput ¶
type Project ¶
type Project struct { ID int `db:"project_id" json:"id"` Name *string `db:"name" json:"name"` Vertical *string `db:"vertical" json:"vertical"` Event *string `db:"event" json:"event"` URL *string `db:"url" json:"url"` Credentials *json.RawMessage `db:"credentials" json:"credentials,omitempty"` CreatedAt *time.Time `db:"created_at" json:"created_at"` UpdatedAt *time.Time `db:"updated_at" json:"updated_at"` }
type ProjectsRepository ¶
type ProjectsRepository interface { SearchProjects(p SearchProjectsInput) (*[]Project, error) CreateProject(project Project) (int, error) ReadProject(id int) (*Project, error) UpdateProject(id int, project Project) (int64, error) DeleteProject(id int) (int64, error) // TODO: project archive (soft delete) }
type ProjectsService ¶
type SearchEventsInput ¶
type SearchEventsInput struct {
Name string
}
type SearchProjectsInput ¶
Click to show internal directories.
Click to hide internal directories.