Documentation
¶
Index ¶
- Constants
- func ComparePassword(hashedPassword string, password string) error
- func GetCurrentUser(r *http.Request) *orisun.User
- func HashPassword(password string) (string, error)
- type DB
- type GetEventsType
- type GetProjectorLastPositionType
- type IndexCondition
- type IndexField
- type PublishRequest
- type PublishToPubSubType
- type SaveEventsType
- type SubscribeToEventStoreType
- type UpdateProjectorPositionType
Constants ¶
View Source
const CombinatorAND = orisun.IndexCombinatorAND
View Source
const CombinatorOR = orisun.IndexCombinatorOR
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func HashPassword ¶
Types ¶
type DB ¶
type DB interface {
ListAdminUsers() ([]*orisun.User, error)
GetProjectorLastPosition(projectorName string) (*orisun.Position, error)
UpdateProjectorPosition(name string, position *orisun.Position) error
UpsertUser(user orisun.User) error
DeleteUser(id string) error
GetUserByUsername(username string) (orisun.User, error)
GetUserById(username string) (orisun.User, error)
GetUsersCount() (uint32, error)
SaveUsersCount(uint32) error
GetEventsCount(boundary string) (int, error)
SaveEventCount(int, string) error
orisun.BoundaryIndexManager
}
type GetEventsType ¶
type GetEventsType = func(ctx context.Context, in *orisun.GetEventsRequest) (*orisun.GetEventsResponse, error)
type IndexCondition ¶ added in v0.2.0
type IndexCondition = orisun.BoundaryIndexCondition
type IndexField ¶ added in v0.2.0
type IndexField = orisun.BoundaryIndexField
type PublishRequest ¶
type PublishToPubSubType ¶
type PublishToPubSubType = func(ctx context.Context, req *PublishRequest) error
type SaveEventsType ¶
type SaveEventsType = func(ctx context.Context, in *orisun.SaveEventsRequest) (resp *orisun.WriteResult, err error)
Click to show internal directories.
Click to hide internal directories.