Documentation
¶
Index ¶
- type Config
- type Update
- type UpdateService
- func (s *UpdateService) Close() error
- func (s *UpdateService) DeleteRelationships(ctx context.Context, req *proto.DeleteRelationshipsRequest) (*proto.DeleteRelationshipsResponse, error)
- func (s *UpdateService) Health(ctx context.Context, in *proto.HealthRequest) (*proto.HealthResponse, error)
- func (s *UpdateService) WriteRelationships(ctx context.Context, req *proto.WriteRelationshipsRequest) (*proto.WriteRelationshipsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Update ¶
type Update struct {
*UpdateService
// contains filtered or unexported fields
}
func NewUpdateAPI ¶
type UpdateService ¶
type UpdateService struct {
proto.UnimplementedUpdateServiceServer
// contains filtered or unexported fields
}
UpdateService is the implementation of the Update service.
func NewUpdateService ¶
func NewUpdateService(ctx context.Context) (*UpdateService, error)
func NewUpdateServiceWithDB ¶ added in v1.26.0
func NewUpdateServiceWithDB(db storage.Database) *UpdateService
NewUpdateServiceWithDB builds an UpdateService from an already-connected db, so tests can exercise the real service with a stub database instead of a live one.
func (*UpdateService) Close ¶
func (s *UpdateService) Close() error
func (*UpdateService) DeleteRelationships ¶ added in v1.31.0
func (s *UpdateService) DeleteRelationships(ctx context.Context, req *proto.DeleteRelationshipsRequest) (*proto.DeleteRelationshipsResponse, error)
DeleteRelationships resolves and authorizes a key-based delete; the actual delete lands in a follow-up MR.
func (*UpdateService) Health ¶
func (s *UpdateService) Health(ctx context.Context, in *proto.HealthRequest) (*proto.HealthResponse, error)
Health checks the health of the Update service.
func (*UpdateService) WriteRelationships ¶ added in v1.11.0
func (s *UpdateService) WriteRelationships(ctx context.Context, req *proto.WriteRelationshipsRequest) (*proto.WriteRelationshipsResponse, error)
Click to show internal directories.
Click to hide internal directories.