Documentation ¶
Index ¶
- type PostgresStorage
- func (p PostgresStorage) DeleteHellos(ctx context.Context, ids []string) error
- func (p PostgresStorage) GetHello(ctx context.Context, id string) (*sprinklesv1.Hello, error)
- func (p PostgresStorage) GetHellos(ctx context.Context, request *sprinklesv1.GetRequest) ([]*sprinklesv1.Hello, error)
- func (p PostgresStorage) Initialize() (shutdown func(), err error)
- func (p PostgresStorage) ListHellos(ctx context.Context, request *sprinklesv1.ListRequest) ([]*sprinklesv1.Hello, error)
- func (p PostgresStorage) Ready() bool
- func (p PostgresStorage) UpsertHellos(ctx context.Context, request *sprinklesv1.UpsertHellosRequest) ([]*sprinklesv1.Hello, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStorage ¶
type PostgresStorage struct{}
func (PostgresStorage) DeleteHellos ¶
func (p PostgresStorage) DeleteHellos(ctx context.Context, ids []string) error
func (PostgresStorage) GetHello ¶
func (p PostgresStorage) GetHello(ctx context.Context, id string) (*sprinklesv1.Hello, error)
func (PostgresStorage) GetHellos ¶
func (p PostgresStorage) GetHellos(ctx context.Context, request *sprinklesv1.GetRequest) ([]*sprinklesv1.Hello, error)
func (PostgresStorage) Initialize ¶
func (p PostgresStorage) Initialize() (shutdown func(), err error)
func (PostgresStorage) ListHellos ¶
func (p PostgresStorage) ListHellos(ctx context.Context, request *sprinklesv1.ListRequest) ([]*sprinklesv1.Hello, error)
func (PostgresStorage) Ready ¶
func (p PostgresStorage) Ready() bool
func (PostgresStorage) UpsertHellos ¶
func (p PostgresStorage) UpsertHellos(ctx context.Context, request *sprinklesv1.UpsertHellosRequest) ([]*sprinklesv1.Hello, error)
Click to show internal directories.
Click to hide internal directories.