converison

package
v0.0.0-...-9a360bd Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMapToStruct

func ConvertMapToStruct(m map[string]interface{}) (*structpb.Struct, error)

Convert map[string]interface{} to *structpb.Struct

func ConvertModelToProto

func ConvertModelToProto(modelDef *jsonSchema.Definition) *pb.Definition

ConvertModelToProto converts your Go model Definition to a protobuf Definition

func ConvertModelToProtoChoices

func ConvertModelToProtoChoices(modelChoices *jsonSchema.Choices) *pb.Choices

ConvertModelToProtoChoices converts a Go model Choices to a protobuf Choices

func ConvertModelToProtoFocus

func ConvertModelToProtoFocus(modelFocus *jsonSchema.Focus) *pb.Focus

ConvertModelToProtoFocus converts a Go model Focus to a protobuf Focus

func ConvertModelToProtoHashMap

func ConvertModelToProtoHashMap(modelHashMap *jsonSchema.HashMap) *pb.HashMap

ConvertModelToProtoHashMap converts a Go model HashMap to a protobuf HashMap

func ConvertModelToProtoRequestFormat

func ConvertModelToProtoRequestFormat(modelReq *jsonSchema.RequestFormat) *pb.RequestFormat

ConvertModelToProtoRequestFormat converts a Go model RequestFormat to a protobuf RequestFormat

func ConvertProtoToChoices

func ConvertProtoToChoices(protoChoices *pb.Choices) *jsonSchema.Choices

ConvertProtoToChoices converts a protobuf Choices to the Go model Choices

func ConvertProtoToFocus

func ConvertProtoToFocus(protoFocus *pb.Focus) *jsonSchema.Focus

ConvertProtoToFocus converts a protobuf Focus to the Go model Focus

func ConvertProtoToHashMap

func ConvertProtoToHashMap(protoHashMap *pb.HashMap) *jsonSchema.HashMap

ConvertProtoToHashMap converts a protobuf HashMap to the Go model HashMap

func ConvertProtoToModel

func ConvertProtoToModel(protoDef *pb.Definition) *jsonSchema.Definition

ConvertProtoToModel converts a protobuf Definition to your Go model Definition

func ConvertProtoToRequestFormat

func ConvertProtoToRequestFormat(protoReq *pb.RequestFormat) *jsonSchema.RequestFormat

ConvertProtoToRequestFormat converts a protobuf RequestFormat to the Go model RequestFormat

func ConvertStructToMap

func ConvertStructToMap(s *structpb.Struct) (map[string]interface{}, error)

Convert *structpb.Struct to map[string]interface{}

func ConvertStructpbToMap

func ConvertStructpbToMap(s *structpb.Struct) (map[string]any, error)

ConvertStructpbToMap converts *structpb.Struct to map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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