mygrpc

package
v0.0.0-...-b090141 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)

Types

type ExampleServiceClient

type ExampleServiceClient interface {
	// Send exception and returns true if successful
	Send(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*PayloadResponse, error)
}

ExampleServiceClient is the client API for ExampleService service.

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

func NewExampleServiceClient

func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient

type ExampleServiceServer

type ExampleServiceServer interface {
	// Send exception and returns true if successful
	Send(context.Context, *Payload) (*PayloadResponse, error)
}

ExampleServiceServer is the server API for ExampleService service.

type Payload

type Payload struct {
	CreatedAt            string   `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Payload) Descriptor

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

func (*Payload) GetCreatedAt

func (m *Payload) GetCreatedAt() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) String

func (m *Payload) String() string

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

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

func (*Payload) XXX_Merge

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

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

type PayloadResponse

type PayloadResponse struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PayloadResponse) Descriptor

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

func (*PayloadResponse) GetSuccess

func (m *PayloadResponse) GetSuccess() bool

func (*PayloadResponse) ProtoMessage

func (*PayloadResponse) ProtoMessage()

func (*PayloadResponse) Reset

func (m *PayloadResponse) Reset()

func (*PayloadResponse) String

func (m *PayloadResponse) String() string

func (*PayloadResponse) XXX_DiscardUnknown

func (m *PayloadResponse) XXX_DiscardUnknown()

func (*PayloadResponse) XXX_Marshal

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

func (*PayloadResponse) XXX_Merge

func (m *PayloadResponse) XXX_Merge(src proto.Message)

func (*PayloadResponse) XXX_Size

func (m *PayloadResponse) XXX_Size() int

func (*PayloadResponse) XXX_Unmarshal

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

type UnimplementedExampleServiceServer

type UnimplementedExampleServiceServer struct {
}

UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedExampleServiceServer) Send

Jump to

Keyboard shortcuts

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