Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DBName string `mapstructure:"database_name"`
GRPCAddress string `mapstructure:"grpc_address"`
}
func (Config) DatabaseName ¶
type Update ¶
type Update struct {
*UpdateService
// contains filtered or unexported fields
}
func NewUpdateAPI ¶
type UpdateService ¶
type UpdateService struct {
proto.UnimplementedUpdateServer
}
UpdateService is the implementation of the Update service.
func NewUpdateService ¶
func NewUpdateService(cfg Config) (*UpdateService, error)
NewUpdateService creates a new Update service.
func (*UpdateService) Close ¶ added in v1.1.0
func (s *UpdateService) Close() error
Close releases any resources held by the Update service. Currently a no-op since Update has no backing connection, but kept symmetric with `lookup.LookupService.Close()` so callers that embed both into a composite (e.g. `dataaccess`) can iterate uniformly. When Update grows a backing connection, this should close it and remain idempotent — the storage driver's Close is already idempotent (see pkg/storage/internal/driver/sql.go).
func (*UpdateService) Health ¶
func (s *UpdateService) Health(ctx context.Context, in *proto.HealthRequest) (*proto.HealthResponse, error)
Health checks the health of the Update service.
Click to show internal directories.
Click to hide internal directories.