models

package
v0.0.0-...-38b3eca Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdatedCounter uint64

Functions

func NewRedis

func NewRedis() store

Types

type Comment

type Comment struct {
	FullName    string `json:"full_name"`
	Description string `json:"description"`
}

func (*Comment) Create

func (c *Comment) Create(ctx context.Context)

type Comments

type Comments struct {
	Comments []Comment
}

func (*Comments) Get

func (c *Comments) Get(ctx context.Context)

type Counter

type Counter struct {
	Count uint64
}

func (*Counter) Get

func (c *Counter) Get(ctx context.Context)

func (*Counter) Incr

func (c *Counter) Incr(ctx context.Context)

Jump to

Keyboard shortcuts

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