Versions in this module Expand all Collapse all v1 v1.0.15 Nov 24, 2026 v1.0.14 Nov 18, 2026 Changes in this version + func CreateConfigFromOptions(opts *Options) (*genericserver.APIServerConfig[ServiceFactory, StoreFactory], error) + func GetMiddlewares() httpmwv1.Middlewares[ServiceFactory] + func NewBizHooks() *bizHooks + func NewServer(ctx context.Context, ...) *genericserver.GenericAPIServer[ServiceFactory, StoreFactory] + func Run(opts *Options) error + type Options struct + APIServerRunOptions *genericoptions.APIServerRunOptions[ServiceFactory, StoreFactory] + InsecureServingOptions *genericoptions.InsecureServingOptions[ServiceFactory, StoreFactory] + func NewOptions() *Options + type ServiceFactory interface + Users func() UserService + func NewServiceFactory(store StoreFactory) ServiceFactory + type StoreFactory interface + Users func() UserStore + func NewStoreFactory() StoreFactory + type UserController struct + func NewUserController(svc UserService) *UserController + func (ctl *UserController) Create(c *gin.Context) + func (ctl *UserController) Get(c *gin.Context) + func (ctl *UserController) List(c *gin.Context) + type UserService interface + Create func(ctx context.Context, name string) (*apiv1.User, error) + Get func(ctx context.Context, id string) (*apiv1.User, error) + List func(ctx context.Context) ([]*apiv1.User, error) + func NewUserService(store UserStore) UserService + type UserStore interface + Create func(name string) (*apiv1.User, error) + Get func(id string) (*apiv1.User, error) + List func() ([]*apiv1.User, error)