Versions in this module Expand all Collapse all v0 v0.1.0 Aug 7, 2019 Changes in this version + const Notes + const NotesAttachOccurrence + const NotesCreate + const NotesDelete + const NotesGet + const NotesList + const NotesListOccurrences + const NotesUpdate + const Occurrences + const OccurrencesCreate + const OccurrencesDelete + const OccurrencesGet + const OccurrencesList + const OccurrencesUpdate + type API struct + Auth Auth + EnforceValidation bool + Filter Filter + Logger Logger + Storage Storage + func (g *API) BatchCreateNotes(ctx context.Context, req *gpb.BatchCreateNotesRequest, ...) error + func (g *API) BatchCreateOccurrences(ctx context.Context, req *gpb.BatchCreateOccurrencesRequest, ...) error + func (g *API) CreateNote(ctx context.Context, req *gpb.CreateNoteRequest, resp *gpb.Note) error + func (g *API) CreateOccurrence(ctx context.Context, req *gpb.CreateOccurrenceRequest, resp *gpb.Occurrence) error + func (g *API) DeleteNote(ctx context.Context, req *gpb.DeleteNoteRequest, _ *emptypb.Empty) error + func (g *API) DeleteOccurrence(ctx context.Context, req *gpb.DeleteOccurrenceRequest, _ *emptypb.Empty) error + func (g *API) GetNote(ctx context.Context, req *gpb.GetNoteRequest, resp *gpb.Note) error + func (g *API) GetOccurrence(ctx context.Context, req *gpb.GetOccurrenceRequest, resp *gpb.Occurrence) error + func (g *API) GetOccurrenceNote(ctx context.Context, req *gpb.GetOccurrenceNoteRequest, resp *gpb.Note) error + func (g *API) ListNoteOccurrences(ctx context.Context, req *gpb.ListNoteOccurrencesRequest, ...) error + func (g *API) ListNotes(ctx context.Context, req *gpb.ListNotesRequest, resp *gpb.ListNotesResponse) error + func (g *API) ListOccurrences(ctx context.Context, req *gpb.ListOccurrencesRequest, ...) error + func (g *API) UpdateNote(ctx context.Context, req *gpb.UpdateNoteRequest, resp *gpb.Note) error + func (g *API) UpdateOccurrence(ctx context.Context, req *gpb.UpdateOccurrenceRequest, resp *gpb.Occurrence) error + type Auth interface + CheckAccessAndProject func(ctx context.Context, projectID string, entityID string, p iam.Permission) error + EndUserID func(ctx context.Context) (string, error) + PurgePolicy func(ctx context.Context, projectID string, entityID string, r iam.Resource) error + type Filter interface + Validate func(f string) error + type Logger interface + Error func(ctx context.Context, args ...interface{}) + Errorf func(ctx context.Context, format string, args ...interface{}) + Info func(ctx context.Context, args ...interface{}) + Infof func(ctx context.Context, format string, args ...interface{}) + PrepareCtx func(ctx context.Context, projectID string) context.Context + Warning func(ctx context.Context, args ...interface{}) + Warningf func(ctx context.Context, format string, args ...interface{}) + type Storage interface + BatchCreateNotes func(ctx context.Context, projectID string, userID string, ...) ([]*gpb.Note, []error) + BatchCreateOccurrences func(ctx context.Context, projectID string, userID string, occs []*gpb.Occurrence) ([]*gpb.Occurrence, []error) + CreateNote func(ctx context.Context, projectID, nID string, userID string, n *gpb.Note) (*gpb.Note, error) + CreateOccurrence func(ctx context.Context, projectID string, userID string, o *gpb.Occurrence) (*gpb.Occurrence, error) + DeleteNote func(ctx context.Context, projectID, nID string) error + DeleteOccurrence func(ctx context.Context, projectID, oID string) error + GetNote func(ctx context.Context, projectID, nID string) (*gpb.Note, error) + GetOccurrence func(ctx context.Context, projectID, oID string) (*gpb.Occurrence, error) + GetOccurrenceNote func(ctx context.Context, projectID, oID string) (*gpb.Note, error) + ListNoteOccurrences func(ctx context.Context, projectID, nID, filter, pageToken string, pageSize int32) ([]*gpb.Occurrence, string, error) + ListNotes func(ctx context.Context, projectID, filter, pageToken string, pageSize int32) ([]*gpb.Note, string, error) + ListOccurrences func(ctx context.Context, projectID string, filter, pageToken string, ...) ([]*gpb.Occurrence, string, error) + UpdateNote func(ctx context.Context, projectID, nID string, n *gpb.Note, ...) (*gpb.Note, error) + UpdateOccurrence func(ctx context.Context, projectID, oID string, o *gpb.Occurrence, ...) (*gpb.Occurrence, error)