data

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snippet

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

Snippet interacts with a GRPC service over REST for grabbing or saving content.

func NewSnippet

func NewSnippet(endpoint string) *Snippet

NewSnippet is the constructor for our proto service.

func (*Snippet) Fetch

func (s *Snippet) Fetch(ctx context.Context, day time.Time) (*pb.GetResp, error)

Fetch fetches content for a date from the server.

func (*Snippet) Save

func (s *Snippet) Save(ctx context.Context, day time.Time, content string) error

Save saves content for a date to the server.

Jump to

Keyboard shortcuts

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