monolith

package module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: MIT Imports: 6 Imported by: 0

README

monolith

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection added in v0.0.3

type Connection = IConnection[sqlx.DB]

type IAuthorizer

type IAuthorizer interface {
	Authorize(actor interface{}, action interface{}, resource interface{}) error
}

type ICache

type ICache interface {
	Get(ctx context.Context, key string, out protoreflect.ProtoMessage) error
	Set(ctx context.Context, key string, val protoreflect.ProtoMessage, expiration ...time.Duration) error
}

type IConnection

type IConnection[T any] interface {
	GetConnection(ctx context.Context) (T, bool)
}

type IObserver

type IObserver[T comparable] interface {
	Subscribe(t T, p observer.Processor[T]) observer.SourceID
	Unsubscribe(s observer.SourceID)
	Emit(e *observer.Event[T]) error
}

type ISession

type ISession interface {
	Claims(accessToken string) (*jwt.RegisteredClaims, error)
}

type Observer

type Observer = IObserver[string]

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL