2020-05-11 18:57:46 +00:00
|
|
|
# package invoke
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
`import "storj.io/drpc/drpcmetadata/invoke"`
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
Package invoke defines the proto messages exposed by drpc for sending metadata
|
|
|
|
across the wire.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### type Metadata
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
type Metadata struct {
|
|
|
|
Data map[string]string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2020-05-11 18:57:46 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) Descriptor
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (*Metadata) Descriptor() ([]byte, []int)
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) GetData
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) GetData() map[string]string
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) ProtoMessage
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (*Metadata) ProtoMessage()
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) Reset
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) Reset()
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) String
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) String() string
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) XXX_DiscardUnknown
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) XXX_DiscardUnknown()
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) XXX_Marshal
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) XXX_Merge
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) XXX_Merge(src proto.Message)
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) XXX_Size
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) XXX_Size() int
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|
|
|
|
|
2020-05-29 13:08:11 +00:00
|
|
|
#### func (*Metadata) XXX_Unmarshal
|
2020-05-11 18:57:46 +00:00
|
|
|
|
|
|
|
```go
|
2020-05-29 13:08:11 +00:00
|
|
|
func (m *Metadata) XXX_Unmarshal(b []byte) error
|
2020-05-11 18:57:46 +00:00
|
|
|
```
|