ext

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExternalServer

func RegisterExternalServer(s *grpc.Server, srv ExternalServer)

Types

type ExternalClient

type ExternalClient interface {
	Echo(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
}

ExternalClient is the client API for External service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewExternalClient

func NewExternalClient(cc *grpc.ClientConn) ExternalClient

type ExternalServer

type ExternalServer interface {
	Echo(context.Context, *Ping) (*Pong, error)
}

ExternalServer is the server API for External service.

type Ping

type Ping struct {
	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ping) Descriptor

func (*Ping) Descriptor() ([]byte, []int)

func (*Ping) GetValue

func (m *Ping) GetValue() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown added in v1.0.1

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal added in v1.0.1

func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ping) XXX_Merge added in v1.0.1

func (dst *Ping) XXX_Merge(src proto.Message)

func (*Ping) XXX_Size added in v1.0.1

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal added in v1.0.1

func (m *Ping) XXX_Unmarshal(b []byte) error

type Pong

type Pong struct {
	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pong) Descriptor

func (*Pong) Descriptor() ([]byte, []int)

func (*Pong) GetValue

func (m *Pong) GetValue() int64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

func (*Pong) XXX_DiscardUnknown added in v1.0.1

func (m *Pong) XXX_DiscardUnknown()

func (*Pong) XXX_Marshal added in v1.0.1

func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pong) XXX_Merge added in v1.0.1

func (dst *Pong) XXX_Merge(src proto.Message)

func (*Pong) XXX_Size added in v1.0.1

func (m *Pong) XXX_Size() int

func (*Pong) XXX_Unmarshal added in v1.0.1

func (m *Pong) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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