infrastructure

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogData

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

LogData is a struct that represents the ebus mapper of a log.

func NewLogData

func NewLogData(pb *pb.LogData) *LogData

NewLogData creates a new *LogData.

func NewLogDataFromEntity

func NewLogDataFromEntity(entity *me.LogData) *LogData

NewLogDataFromEntity creates a new *LogData from entity.

func NewLogDataFromPb deprecated

func NewLogDataFromPb(pb *pb.LogData) *LogData

NewLogDataFromPb creates a new *LogData from protobuf.

Deprecated: This struct is converted for decorator Use NewLogData instead.

func (*LogData) String

func (s *LogData) String() string

String returns a string representation of the LogData.

func (*LogData) ToEntity

func (s *LogData) ToEntity() *me.LogData

ToEntity returns a entity representation of the LogData.

func (*LogData) ToPb

func (s *LogData) ToPb() *pb.LogData

ToPb returns a protobuf representation of the LogData.

type LogDatas

type LogDatas []*LogData

func NewLogDataFromEntities

func NewLogDataFromEntities(entities []me.LogData) LogDatas

NewLogDatasFromEntities creates a new []*LogData from entities.

func (LogDatas) ToPbs

func (s LogDatas) ToPbs() *pb.LogDatas

ToPbs returns a protobuf representation of the LogDatas.

Jump to

Keyboard shortcuts

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