Documentation
¶
Index ¶
Constants ¶
View Source
const PostgresStorageType = "postgres"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageInterface ¶
type StorageInterface interface {
Initialize() (shutdown func(), err error)
Ready() bool
UpsertHellos(ctx context.Context, request *sprinklesv1.UpsertHellosRequest) ([]*sprinklesv1.Hello, error)
DeleteHellos(ctx context.Context, ids []string) error
ListHellos(ctx context.Context, request *sprinklesv1.ListRequest) ([]*sprinklesv1.Hello, error)
GetHellos(ctx context.Context, request *sprinklesv1.GetRequest) ([]*sprinklesv1.Hello, error)
GetHello(ctx context.Context, id string) (*sprinklesv1.Hello, error)
}
var Storage StorageInterface
type StorageType ¶
type StorageType string
Click to show internal directories.
Click to hide internal directories.