server

package
v0.0.0-...-c5aa15a Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

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

func NewDataStore

func NewDataStore(ctx context.Context, projectId, kind string) (*DataStore, error)
func (d *DataStore) GetListOfLinks(ctx context.Context) ([]*Golink, error)

func (*DataStore) GetURL

func (d *DataStore) GetURL(ctx context.Context, name string) (string, error)

func (*DataStore) IncrementCount

func (d *DataStore) IncrementCount(ctx context.Context, name string) error
func (d *DataStore) UpdateLink(ctx context.Context, golink Golink) error
type Golink struct {
	Name  string
	Url   string
	Count int64
}

Jump to

Keyboard shortcuts

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