store

package
v0.0.0-...-6c645be Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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