converter

package
v0.0.0-...-a78adbb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentConverter

type DocumentConverter struct{}

func (DocumentConverter) ConvertDocument

func (c DocumentConverter) ConvertDocument(d *proto.Document) *model.Document

func (DocumentConverter) ConvertDocuments

func (c DocumentConverter) ConvertDocuments(items []*proto.Document) []*model.Document

func (DocumentConverter) ConvertSignedDocument

func (c DocumentConverter) ConvertSignedDocument(d *proto.SignedDocument) *model.Document

func (DocumentConverter) ConvertSignedDocuments

func (c DocumentConverter) ConvertSignedDocuments(items []*proto.SignedDocument) []*model.Document

type GameConverter

type GameConverter struct{}

func (GameConverter) ConvertFeatures

func (c GameConverter) ConvertFeatures(items []*proto.Feature) []*model.Feature

func (GameConverter) ConvertGame

func (c GameConverter) ConvertGame(g *proto.Game) *model.Game

func (GameConverter) ConvertGames

func (c GameConverter) ConvertGames(items []*proto.Game) []*model.Game

func (GameConverter) ConvertGenres

func (c GameConverter) ConvertGenres(items []*proto.Genre) []*model.Genre

type PostConverter

type PostConverter struct{}

func (PostConverter) ConvertPost

func (c PostConverter) ConvertPost(p *proto.Post) *model.Post

func (PostConverter) ConvertPosts

func (c PostConverter) ConvertPosts(items []*proto.Post) []*model.Post

type StoreFrontConverter

type StoreFrontConverter struct {
	GameServiceClient proto.GameServiceClient
	GameConverter     GameConverter
}

func (StoreFrontConverter) Convert

func (c StoreFrontConverter) Convert(ctx context.Context, storefront *proto.Storefront) (*model.Storefront, error)

Jump to

Keyboard shortcuts

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