Documentation
¶
Index ¶
- func NewModule(resolver protodesc.Resolver) *starlarkstruct.Module
- type Descriptor
- func (d *Descriptor) Attr(name string) (starlark.Value, error)
- func (d *Descriptor) AttrNames() []string
- func (d *Descriptor) CallInternal(thread *starlark.Thread, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
- func (d *Descriptor) Descriptor() protoreflect.Descriptor
- func (d *Descriptor) Freeze()
- func (d *Descriptor) Hash() (uint32, error)
- func (d *Descriptor) Name() string
- func (d *Descriptor) String() string
- func (d *Descriptor) Truth() starlark.Bool
- func (d *Descriptor) Type() string
- type Enum
- type List
- func (l *List) Append(v starlark.Value) error
- func (l *List) Attr(name string) (starlark.Value, error)
- func (l *List) AttrNames() []string
- func (l *List) Clear() error
- func (l *List) Freeze()
- func (l *List) Hash() (uint32, error)
- func (l *List) Index(i int) starlark.Value
- func (l *List) Iterate() starlark.Iterator
- func (l *List) Len() int
- func (l *List) Pop(i int) (starlark.Value, error)
- func (l *List) SetIndex(i int, v starlark.Value) error
- func (l *List) Slice(start, end, step int) starlark.Value
- func (l *List) String() string
- func (l *List) Truth() starlark.Bool
- func (l *List) Type() string
- type Map
- func (m *Map) Attr(name string) (starlark.Value, error)
- func (m *Map) AttrNames() []string
- func (m *Map) Clear() error
- func (m *Map) Delete(k starlark.Value) (v starlark.Value, found bool, err error)
- func (m *Map) Freeze()
- func (m *Map) Get(k starlark.Value) (v starlark.Value, found bool, err error)
- func (m *Map) Hash() (uint32, error)
- func (m *Map) Items() []starlark.Tuple
- func (m *Map) Iterate() starlark.Iterator
- func (m *Map) Keys() []starlark.Value
- func (m *Map) Len() int
- func (m *Map) SetKey(k, v starlark.Value) error
- func (m *Map) String() string
- func (m *Map) Truth() starlark.Bool
- func (m *Map) Type() string
- type Message
- func (m *Message) Attr(name string) (starlark.Value, error)
- func (m *Message) AttrNames() []string
- func (x *Message) Binary(op syntax.Token, y starlark.Value, side starlark.Side) (starlark.Value, error)
- func (x *Message) CompareSameType(op syntax.Token, y_ starlark.Value, depth int) (bool, error)
- func (m *Message) Freeze()
- func (m *Message) Hash() (uint32, error)
- func (m *Message) ProtoReflect() protoreflect.Message
- func (m *Message) SetField(name string, val starlark.Value) error
- func (m *Message) String() string
- func (m *Message) Truth() starlark.Bool
- func (m *Message) Type() string
- type Proto
- func (p *Proto) File(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) Marshal(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) MarshalJSON(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) MarshalText(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) New(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) Unmarshal(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) UnmarshalJSON(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (p *Proto) UnmarshalText(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Descriptor ¶
type Descriptor struct {
// contains filtered or unexported fields
}
func NewDescriptor ¶
func NewDescriptor(desc protoreflect.Descriptor) *Descriptor
func (*Descriptor) AttrNames ¶
func (d *Descriptor) AttrNames() []string
func (*Descriptor) CallInternal ¶
func (*Descriptor) Descriptor ¶
func (d *Descriptor) Descriptor() protoreflect.Descriptor
Descriptor exports proto.Descriptor
func (*Descriptor) Freeze ¶
func (d *Descriptor) Freeze()
func (*Descriptor) Hash ¶
func (d *Descriptor) Hash() (uint32, error)
func (*Descriptor) Name ¶
func (d *Descriptor) Name() string
func (*Descriptor) String ¶
func (d *Descriptor) String() string
func (*Descriptor) Truth ¶
func (d *Descriptor) Truth() starlark.Bool
func (*Descriptor) Type ¶
func (d *Descriptor) Type() string
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
Enum is the type of a protobuf enum.
func NewEnum ¶
func NewEnum(enum protoreflect.EnumValueDescriptors, arg starlark.Value) (Enum, error)
func (Enum) CompareSameType ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List represents a repeated field as a starlark.List.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message represents a proto.Message as a starlark.Value.
func NewMessage ¶
func (*Message) CompareSameType ¶
func (*Message) ProtoReflect ¶
func (m *Message) ProtoReflect() protoreflect.Message
ProtoReflect implements proto.Message
Directories
¶
Path | Synopsis |
---|---|
Pacakge starlarkgrpc provides a grpc client implementation based on server reflection.
|
Pacakge starlarkgrpc provides a grpc client implementation based on server reflection. |
Click to show internal directories.
Click to hide internal directories.