empty

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package empty is a generated protocol buffer package.

It is generated from these files:

empty/empty.proto

It has these top-level messages:

Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct {
	*js.Object
}

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

service Foo {
  rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
}

The JSON representation for `Empty` is empty JSON object `{}`.

func (*Empty) Deserialize

func (m *Empty) Deserialize(rawBytes []byte) (*Empty, error)

Deserialize unmarshals a Empty from a slice of bytes.

func (*Empty) New

func (m *Empty) New() *Empty

New creates a new Empty.

func (*Empty) Serialize

func (m *Empty) Serialize() ([]byte, error)

Serialize marshals Empty to a slice of bytes.

Jump to

Keyboard shortcuts

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