diff --git a/service/README.md b/service/README.md index 87e97ce1c6..74947142c9 100644 --- a/service/README.md +++ b/service/README.md @@ -96,8 +96,8 @@ contain any special characters. It should be the same as the directory name for ### Registration -Services are registered with the platform using the `service.RegisterService` function. This function expects to be -be given a `serviceregistry.Registration` object. +Services are registered with the platform using the `serviceregistry.RegisterService` function. This function expects to be +given a `serviceregistry.IService` object. https://github.com/opentdf/platform/blob/459e82aa3c1d278f5ac5f4835f94d9f3fe90727e/service/pkg/serviceregistry/serviceregistry.go#L48-L55 diff --git a/service/pkg/server/options.go b/service/pkg/server/options.go index 1bf33612f7..737e1c1348 100644 --- a/service/pkg/server/options.go +++ b/service/pkg/server/options.go @@ -88,7 +88,7 @@ func WithBuiltinAuthZPolicy(policy string) StartOptions { } // WithCoreServices option adds additional core services to the platform -// It takes a variadic parameter of type serviceregistry.Registration, which represents the core services to be added. +// It takes a variadic parameter of type serviceregistry.IService, which represents the core services to be added. func WithCoreServices(services ...serviceregistry.IService) StartOptions { return func(c StartConfig) StartConfig { c.extraCoreServices = append(c.extraCoreServices, services...) @@ -98,7 +98,7 @@ func WithCoreServices(services ...serviceregistry.IService) StartOptions { // WithServices option adds additional services to the platform. // This will set the mode for these services to the namespace name. -// It takes a variadic parameter of type serviceregistry.Registration, which represents the services to be added. +// It takes a variadic parameter of type serviceregistry.IService, which represents the services to be added. func WithServices(services ...serviceregistry.IService) StartOptions { return func(c StartConfig) StartConfig { c.extraServices = append(c.extraServices, services...)