stories

package
v0.0.0-...-e47362a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stories = SafeStories{
	Stories: make(map[chan []*model.Story]int),
}

Stories chans

Functions

func Add

func Add() chan []*model.Story

Add Story to chans

func Update

func Update(data model.Story)

Update story Story

Types

type SafeStories

type SafeStories struct {
	Stories map[chan []*model.Story]int
	Mux     sync.Mutex
}

SafeStories safe with mutex

Jump to

Keyboard shortcuts

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