cloud

package
v0.0.0-...-e69eef7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package cloud contains functionality to write to a Cloud FHIR store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	// contains filtered or unexported fields
}

Output is a resource.Output that returns writers to a Cloud FHIR store.

func NewOutput

func NewOutput(ctx context.Context, projectID, location, dataset, datastore string, opts ...option.ClientOption) (*Output, error)

NewOutput creates a new healthcare service and returns an Ouput. If invalid details are given, no error will be returned until an actual attempt to write is made (in WriteCloser.Write()).

func (*Output) New

func (o *Output) New(_ string) (io.WriteCloser, error)

New creates a new cloud WriterCloser.

type WriterCloser

type WriterCloser struct {
	// contains filtered or unexported fields
}

WriterCloser is an io.WriterCloser that writes to a Cloud FHIR store.

func (*WriterCloser) Close

func (c *WriterCloser) Close() error

Close is a no-op.

func (*WriterCloser) Write

func (c *WriterCloser) Write(b []byte) (int, error)

Write writes to the specified Cloud FHIR store. All consecutive writes will persist, regardless of whether Close is called or not.

Jump to

Keyboard shortcuts

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