protocol

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandFromProto

func CommandFromProto(pbCmd *pb.Command) event.Command

CommandFromProto converts a protobuf message to a command.

func CommandToProto

func CommandToProto(command event.Command) *pb.Command

CommandToProto converts a command to a protobuf message.

func ContainerFromProto

func ContainerFromProto(pbContainer *pb.Container) domain.Container

ContainerFromProto converts a protobuf Container to a domain.Container.

func ContainerToProto

func ContainerToProto(c domain.Container) *pb.Container

ContainerToProto converts a domain.Container to a protobuf Container.

func DestinationStatusToProto

func DestinationStatusToProto(s domain.DestinationStatus) pb.Destination_Status

DestinationStatusToProto converts a domain.DestinationStatus to a pb.Destination_Status.

func DestinationToProto

func DestinationToProto(d domain.Destination) *pb.Destination

DestinationToProto converts a domain.Destination to a protobuf Destination.

func DestinationsToProto

func DestinationsToProto(inDests []domain.Destination) []*pb.Destination

DestinationsToProto converts a slice of domain.Destinations to a slice of protobuf Destinations.

func EventFromProto

func EventFromProto(pbEv *pb.Event) event.Event

EventFromProto converts a protobuf message to an event.

func EventToProto

func EventToProto(ev event.Event) *pb.Event

EventToProto converts an event to a protobuf message.

func ProtoToDestinations

func ProtoToDestinations(pbDests []*pb.Destination) []domain.Destination

ProtoToDestinations converts a slice of protobuf Destinations to a slice of domain.Destinations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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