Documentation
¶
Overview ¶
Package biz is the place where you can implements more complex business logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ProviderSet is a Wire provider set used to declare dependency injection rules. Includes the NewBiz constructor to create a biz instance. wire.Bind binds the IBiz interface to the concrete implementation *biz, so places that depend on IBiz will automatically inject a *biz instance.
Functions ¶
func NewBiz ¶
func NewBiz(store store.IStore, authn authn.Authenticator, auth auth.AuthProvider) *biz
NewBiz creates an instance of IBiz.
Types ¶
type IBiz ¶
type IBiz interface {
// UserV1 returns the UserBiz business interface.
UserV1() userv1.UserBiz
// SecretV1 returns the SecretBiz business interface.
SecretV1() secretv1.SecretBiz
// AuthV1 returns the AuthBiz business interface.
AuthV1() authv1.AuthBiz
}
IBiz defines the methods that must be implemented by the business layer.
Click to show internal directories.
Click to hide internal directories.