convert

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

convert/convert.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventToProto

func EventToProto(e *types.Event) (*pb.Event, error)

EventToProto converts a types.Event to a protobuf Event

func FromValue

func FromValue(v *pb.Value) interface{}

FromValue converts a protobuf Value to a Go interface{}

func GroupToProto

func GroupToProto(g *types.GroupInfo) (*pb.Event, error)

GroupToProto converts a types.GroupInfo to a protobuf Event

func IdentityToProto

func IdentityToProto(i *types.Identity) (*pb.Event, error)

IdentityToProto converts a types.Identity to a protobuf Event

func ToProperties

func ToProperties(props map[string]interface{}) (map[string]*pb.Value, error)

ToProperties converts a map of Go values to protobuf Values

func ToValue

func ToValue(v interface{}) (*pb.Value, error)

ToValue converts a Go interface{} to a protobuf Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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