Documentation ¶
Index ¶
- Variables
- func MessageTypeName(val starlark.Value) (string, bool)
- func NewBuiltin(msg protoiface.MessageV1, callbacks ...NewBuiltinCallback) *starlark.Builtin
- func NewEnumType(desc *desc.EnumDescriptor) starlark.Value
- func NewMessageType(desc *desc.MessageDescriptor) starlark.Value
- func NewStarProtoMessage(msg *dynamic.Message) *starProtoMessage
- func ToDynamicPb(msg *dynamic.Message) *dynamicpb.Message
- func ToProtoMessage(val starlark.Value) (*dynamic.Message, bool)
- type NewBuiltinCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var AnyModule = &starlarkstruct.Module{ Name: "any", Members: starlark.StringDict{ "new": starlark.NewBuiltin("new", newAny), "unpack": starlark.NewBuiltin("unpack", unpackAny), }, }
Functions ¶
func NewBuiltin ¶
func NewBuiltin(msg protoiface.MessageV1, callbacks ...NewBuiltinCallback) *starlark.Builtin
func NewEnumType ¶
func NewEnumType(desc *desc.EnumDescriptor) starlark.Value
func NewMessageType ¶
func NewMessageType(desc *desc.MessageDescriptor) starlark.Value
func NewStarProtoMessage ¶
Types ¶
type NewBuiltinCallback ¶
Click to show internal directories.
Click to hide internal directories.