collections

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBrokerService

func GetBrokerService(ctx context.Context, collectionName, region string) (srv *brokers.ServiceBrokerClient, err error)

func GetCQRSService

func GetCQRSService(ctx context.Context, collectionName, region string) (srv *cqrs.ServiceCQRSClient, err error)

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) Find

func (c *Collection) Find(ctx context.Context, id, body string, params map[string][]string) (result interface{}, httpStatusCode int, err error)

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

func (*Collection) Insert

func (c *Collection) Insert(ctx context.Context, id, body string, params map[string]string) (result string, httpStatusCode int, err error)

params ignored

func (*Collection) Update

func (c *Collection) Update(ctx context.Context, id, body string, params map[string]string) (result string, httpStatusCode int, err error)

params ignored

Jump to

Keyboard shortcuts

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