indice

package
v0.0.0-...-efebcd6 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConteudoData

type ConteudoData struct {
	Conteudo string
	Data     uint64
}

type HashData

type HashData struct {
	Hash crypto.Hash
	Data uint64
	Tipo string
}

type Indice

type Indice struct {
	ArrobaParaToken  map[string]crypto.Token
	TokenParaArroba  map[crypto.Token]string
	ArrobaParaJornal map[string]*Jornal
	HashToBytes      map[crypto.Hash][]byte
}

func NovoIndice

func NovoIndice() *Indice

func (*Indice) IncorporaAcao

func (i *Indice) IncorporaAcao(dados []byte)

func (*Indice) IncorporaAutor

func (i *Indice) IncorporaAutor(arroba string, token crypto.Token)

func (*Indice) IncorporaCauso

func (i *Indice) IncorporaCauso(causo *acoes.PostarCauso)

func (*Indice) IncorporaConteudo

func (i *Indice) IncorporaConteudo(conteudo []byte)

func (*Indice) IncorporaFofoca

func (i *Indice) IncorporaFofoca(causo *acoes.PostarFofoca)

func (*Indice) IncorporaIdeia

func (i *Indice) IncorporaIdeia(causo *acoes.PostarIdeia)

func (*Indice) IncorporaLivro

func (i *Indice) IncorporaLivro(causo *acoes.PostarLivro)

func (*Indice) IncorporaMeme

func (i *Indice) IncorporaMeme(causo *acoes.PostarMeme)

func (*Indice) IncorporaMusica

func (i *Indice) IncorporaMusica(causo *acoes.PostarMusica)

type Jornal

type Jornal struct {
	Ideias  []*ConteudoData
	Memes   []*HashData
	Musicas []*ConteudoData
	Fofocas []*ConteudoData
	Causos  []*ConteudoData
	Livros  []*HashData
}

Jump to

Keyboard shortcuts

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