Documentation ¶
Index ¶
- func GetBrokerService(ctx context.Context, collectionName, region string) (srv *brokers.ServiceBrokerClient, err error)
- func GetCQRSService(ctx context.Context, collectionName, region string) (srv *cqrs.ServiceCQRSClient, err error)
- func GetDatastoreService(ctx context.Context, collectionName, region string) (srv *datastores.ServiceDatastoreClient, err error)
- type Collection
- func (c *Collection) Delete(ctx context.Context, id, body string, params map[string]string) (result string, httpStatusCode int, err error)
- func (c *Collection) Find(ctx context.Context, id, body string, params map[string][]string) (result interface{}, httpStatusCode int, err error)
- func (c *Collection) FindById(ctx context.Context, id, body string, params map[string]string) (result interface{}, httpStatusCode int, err error)
- func (c *Collection) Insert(ctx context.Context, id, body string, params map[string]string) (result string, httpStatusCode int, err error)
- func (c *Collection) Update(ctx context.Context, id, body string, params map[string]string) (result string, httpStatusCode int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBrokerService ¶
func GetCQRSService ¶
func GetDatastoreService ¶
func GetDatastoreService(ctx context.Context, collectionName, region string) (srv *datastores.ServiceDatastoreClient, err error)
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewCollection ¶
func NewCollection(ctx context.Context, collectionName, region string, mrc *configV2.MultiRegionConfig) (c *Collection, err error)
func (*Collection) Delete ¶
func (c *Collection) Delete(ctx context.Context, id, body string, params map[string]string) (result string, httpStatusCode int, err error)
params and body ignored
func (*Collection) FindById ¶
func (c *Collection) FindById(ctx context.Context, id, body string, params map[string]string) (result interface{}, httpStatusCode int, err error)
params and body ignored
Click to show internal directories.
Click to hide internal directories.