Documentation ¶
Overview ¶
define toda a base de dados. implementação de armazenamento para eventos
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUniqueId ¶
func GenerateUniqueId() string
Irá retornar um id exclusivel classificado com base no tempo
Types ¶
type IEventStore ¶
type IEventStore interface { Get(ctx context.Context, in *objects.GetRequest) (*objects.Event, error) List(ctx context.Context, in *objects.ListRequest) ([]*objects.Event, error) Create(ctx context.Context, in *objects.CreateRequest) error UpDateDetails(ctx context.Context, in *objects.UpDateDetailsRequest) error Cancel(ctx context.Context, in *objects.CancelRequest) error Remarca(ctx context.Context, in *objects.RemarcaRequest) error Delete(ctx context.Context, in *objects.DeletRequest) error }
Interface do banco para armazenar eventos
func NewPostgresEventStore ¶
func NewPostgresEventStore(conn string) IEventStore
Retorna a postgre implementaçao do evento store
Click to show internal directories.
Click to hide internal directories.