Documentation ¶
Index ¶
- func NewDiffer() *differ.Service
- func NewMBus(messageBusses map[string]*mbus.Resource) *xmbus.Service
- func NewValidator() *validator.Service
- type Differ
- type HttpFn
- type MBus
- type Manager
- type Option
- type RedirectFn
- type RouterFn
- type Session
- func (s *Session) Db(opts ...sqlx.Option) (*sqlx.Service, error)
- func (s *Session) Differ() *differ.Service
- func (s *Session) FlushTemplate(ctx context.Context) error
- func (s *Session) Http() http.Http
- func (s *Session) MessageBus() *xmbus.Service
- func (s *Session) Redirect(ctx context.Context, route *http.Route) (handler.Session, error)
- func (s *Session) Route(ctx context.Context, route *http.Route) (handler.Session, error)
- func (s *Session) Stater() *state.Service
- func (s *Session) Validator() *validator.Service
- type SqlServiceFn
- type SqlxValidator
- type TemplateFlushFn
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidator ¶
Types ¶
type Manager ¶
type Option ¶
type Option func(s *Session)
Option represen session option
func WithMessageBus ¶ added in v0.8.10
func WithRedirect ¶
func WithRedirect(fn RedirectFn) Option
func WithSql ¶
func WithSql(sql SqlServiceFn) Option
func WithStater ¶
func WithTemplateFlush ¶
func WithTemplateFlush(fn TemplateFlushFn) Option
type RedirectFn ¶
type Session ¶
func NewSession ¶
func (*Session) MessageBus ¶
type SqlxValidator ¶
type SqlxValidator struct {
// contains filtered or unexported fields
}
func (*SqlxValidator) Validate ¶
func (v *SqlxValidator) Validate(ctx context.Context, any interface{}, opts ...validator.Option) (*validator.Validation, error)
type TemplateFlushFn ¶
Click to show internal directories.
Click to hide internal directories.