firestore

package
v0.0.0-...-1656ce5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiredSecrets

func RequiredSecrets() go_secrets.Required

Types

type Client

type Client interface {
	Close()

	CreateGreeting(ctx context.Context, d dto.CreateGreeting) (location string, err error)
	ReadGreeting(ctx context.Context, d dto.ReadGreeting) (*Greeting, error)
	DeleteGreeting(ctx context.Context, d dto.DeleteGreeting) error
	RenderGreeting(g Greeting) ([]byte, error)
}

func NewClient

func NewClient(ctx context.Context, logClient go_log.Client, secretsClient go_secrets.Client) (Client, error)

type Greeting

type Greeting struct {
	ID      string `json:"id,omitempty"`
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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