Documentation ¶
Index ¶
- Constants
- func GetIdentifier(m proto.Message) string
- func GetName(m proto.Message) string
- func IsValidator(v interface{}) bool
- func LoadListProtoFromFile[T proto.Message](path string) ([]T, error)
- func LoadProtoFromFile(path string, v proto.Message) error
- func MarshalListProtoMessage[T proto.Message](opts protojson.MarshalOptions, messages []T) ([]byte, error)
- func MessageSignature(m proto.Message) (string, error)
- func RecursiveValidate(v interface{}) error
- func SetIdentifier(m proto.Message, identifier string)
- func StoreListProtoToFile[T proto.Message](path string, messages []T) error
- func StoreProtoToFile(path string, v proto.Message) error
- func TypeUrl[T proto.Message]() string
- func TypeUrlFromMessage(m proto.Message) string
- func Validate(message proto.Message) error
- type Identifiable
- type Named
- type Validator
Constants ¶
View Source
const UrlPrefix = "type.googleapis.com/"
Variables ¶
This section is empty.
Functions ¶
func GetIdentifier ¶
func IsValidator ¶
func IsValidator(v interface{}) bool
func MarshalListProtoMessage ¶
func RecursiveValidate ¶
func RecursiveValidate(v interface{}) error
func SetIdentifier ¶
func StoreListProtoToFile ¶
func TypeUrlFromMessage ¶
Types ¶
type Identifiable ¶
Click to show internal directories.
Click to hide internal directories.