Versions in this module Expand all Collapse all v0 v0.2.0 Aug 30, 2023 Changes in this version + type ProjectServiceServer struct + func NewProjectServiceServer(store Store, log *zap.Logger) *ProjectServiceServer + func (s *ProjectServiceServer) CreateProject(ctx context.Context, req *auditumv1alpha1.CreateProjectRequest) (*auditumv1alpha1.CreateProjectResponse, error) + func (s *ProjectServiceServer) GetProject(ctx context.Context, req *auditumv1alpha1.GetProjectRequest) (*auditumv1alpha1.GetProjectResponse, error) + func (s *ProjectServiceServer) ListProjects(ctx context.Context, req *auditumv1alpha1.ListProjectsRequest) (*auditumv1alpha1.ListProjectsResponse, error) + func (s *ProjectServiceServer) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func (s *ProjectServiceServer) RegisterServer(srv *grpc.Server) + func (s *ProjectServiceServer) UpdateProject(ctx context.Context, req *auditumv1alpha1.UpdateProjectRequest) (*auditumv1alpha1.UpdateProjectResponse, error) + type RecordServiceServer struct + func NewRecordServiceServer(store Store, log *zap.Logger, settings aud.Settings) *RecordServiceServer + func (s *RecordServiceServer) BatchCreateRecords(ctx context.Context, req *auditumv1alpha1.BatchCreateRecordsRequest) (*auditumv1alpha1.BatchCreateRecordsResponse, error) + func (s *RecordServiceServer) CreateRecord(ctx context.Context, req *auditumv1alpha1.CreateRecordRequest) (*auditumv1alpha1.CreateRecordResponse, error) + func (s *RecordServiceServer) DeleteRecord(ctx context.Context, req *auditumv1alpha1.DeleteRecordRequest) (*auditumv1alpha1.DeleteRecordResponse, error) + func (s *RecordServiceServer) GetRecord(ctx context.Context, req *auditumv1alpha1.GetRecordRequest) (*auditumv1alpha1.GetRecordResponse, error) + func (s *RecordServiceServer) ListRecords(ctx context.Context, req *auditumv1alpha1.ListRecordsRequest) (*auditumv1alpha1.ListRecordsResponse, error) + func (s *RecordServiceServer) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func (s *RecordServiceServer) RegisterServer(srv *grpc.Server) + func (s *RecordServiceServer) UpdateRecord(ctx context.Context, req *auditumv1alpha1.UpdateRecordRequest) (*auditumv1alpha1.UpdateRecordResponse, error) + type Store interface + CreateProject func(ctx context.Context, project aud.Project) error + CreateRecord func(ctx context.Context, record aud.Record) error + CreateRecords func(ctx context.Context, records []aud.Record) error + DeleteRecord func(ctx context.Context, projectID aud.ID, id aud.ID) error + GetProject func(ctx context.Context, id aud.ID) (aud.Project, error) + GetRecord func(ctx context.Context, projectID aud.ID, id aud.ID) (aud.Record, error) + ListProjects func(ctx context.Context, limit int32, cursor aud.ProjectCursor) ([]aud.Project, error) + ListRecords func(ctx context.Context, projectID aud.ID, filter aud.RecordFilter, limit int32, ...) ([]aud.Record, error) + UpdateProject func(ctx context.Context, projectID aud.ID, update aud.ProjectUpdate) (aud.Project, error) + UpdateRecord func(ctx context.Context, projectID aud.ID, id aud.ID, update aud.RecordUpdate) (aud.Record, error)