Documentation ¶
Index ¶
- type 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectServiceServer ¶
type ProjectServiceServer struct { auditumv1alpha1.UnimplementedProjectServiceServer // contains filtered or unexported fields }
func NewProjectServiceServer ¶
func NewProjectServiceServer( store Store, log *zap.Logger, ) *ProjectServiceServer
func (*ProjectServiceServer) CreateProject ¶
func (s *ProjectServiceServer) CreateProject( ctx context.Context, req *auditumv1alpha1.CreateProjectRequest, ) (*auditumv1alpha1.CreateProjectResponse, error)
func (*ProjectServiceServer) GetProject ¶
func (s *ProjectServiceServer) GetProject( ctx context.Context, req *auditumv1alpha1.GetProjectRequest, ) (*auditumv1alpha1.GetProjectResponse, error)
func (*ProjectServiceServer) ListProjects ¶
func (s *ProjectServiceServer) ListProjects( ctx context.Context, req *auditumv1alpha1.ListProjectsRequest, ) (*auditumv1alpha1.ListProjectsResponse, error)
func (*ProjectServiceServer) RegisterGateway ¶
func (s *ProjectServiceServer) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
func (*ProjectServiceServer) RegisterServer ¶
func (s *ProjectServiceServer) RegisterServer(srv *grpc.Server)
func (*ProjectServiceServer) UpdateProject ¶
func (s *ProjectServiceServer) UpdateProject( ctx context.Context, req *auditumv1alpha1.UpdateProjectRequest, ) (*auditumv1alpha1.UpdateProjectResponse, error)
type RecordServiceServer ¶
type RecordServiceServer struct { auditumv1alpha1.UnimplementedRecordServiceServer // contains filtered or unexported fields }
func NewRecordServiceServer ¶
func (*RecordServiceServer) BatchCreateRecords ¶
func (s *RecordServiceServer) BatchCreateRecords( ctx context.Context, req *auditumv1alpha1.BatchCreateRecordsRequest, ) (*auditumv1alpha1.BatchCreateRecordsResponse, error)
func (*RecordServiceServer) CreateRecord ¶
func (s *RecordServiceServer) CreateRecord( ctx context.Context, req *auditumv1alpha1.CreateRecordRequest, ) (*auditumv1alpha1.CreateRecordResponse, error)
func (*RecordServiceServer) DeleteRecord ¶
func (s *RecordServiceServer) DeleteRecord(ctx context.Context, req *auditumv1alpha1.DeleteRecordRequest) (*auditumv1alpha1.DeleteRecordResponse, error)
func (*RecordServiceServer) GetRecord ¶
func (s *RecordServiceServer) GetRecord( ctx context.Context, req *auditumv1alpha1.GetRecordRequest, ) (*auditumv1alpha1.GetRecordResponse, error)
func (*RecordServiceServer) ListRecords ¶
func (s *RecordServiceServer) ListRecords( ctx context.Context, req *auditumv1alpha1.ListRecordsRequest, ) (*auditumv1alpha1.ListRecordsResponse, error)
func (*RecordServiceServer) RegisterGateway ¶
func (s *RecordServiceServer) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
func (*RecordServiceServer) RegisterServer ¶
func (s *RecordServiceServer) RegisterServer(srv *grpc.Server)
func (*RecordServiceServer) UpdateRecord ¶
func (s *RecordServiceServer) UpdateRecord(ctx context.Context, req *auditumv1alpha1.UpdateRecordRequest) (*auditumv1alpha1.UpdateRecordResponse, error)
type Store ¶
type Store interface { CreateProject(ctx context.Context, project aud.Project) error GetProject(ctx context.Context, id aud.ID) (aud.Project, error) ListProjects( ctx context.Context, limit int32, cursor aud.ProjectCursor, ) ([]aud.Project, error) UpdateProject( ctx context.Context, projectID aud.ID, update aud.ProjectUpdate, ) (aud.Project, error) CreateRecord(ctx context.Context, record aud.Record) error CreateRecords(ctx context.Context, records []aud.Record) error GetRecord( ctx context.Context, projectID aud.ID, id aud.ID, ) (aud.Record, error) ListRecords( ctx context.Context, projectID aud.ID, filter aud.RecordFilter, limit int32, cursor aud.RecordCursor, ) ([]aud.Record, error) UpdateRecord( ctx context.Context, projectID aud.ID, id aud.ID, update aud.RecordUpdate, ) (aud.Record, error) DeleteRecord(ctx context.Context, projectID aud.ID, id aud.ID) error }
Click to show internal directories.
Click to hide internal directories.