metadata

package
v0.6.30-beta-2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata map[string]any

Metadata is a structure to store dynamic values in shield. it could be use as an additional information of a specific entity

func Build

func Build(m map[string]interface{}) (Metadata, error)

Build transforms a Metadata from map[string]interface{}

func (Metadata) ToStructPB

func (m Metadata) ToStructPB() (*structpb.Struct, error)

ToStructPB transforms Metadata to *structpb.Struct

Jump to

Keyboard shortcuts

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