go-agent: github.com/newrelic/go-agent/v3/integrations/nrgrpc/testapp Index | Files

package testapp

import "github.com/newrelic/go-agent/v3/integrations/nrgrpc/testapp"


Package Files

server.go testapp.pb.go

func RegisterTestApplicationServer Uses

func RegisterTestApplicationServer(s *grpc.Server, srv TestApplicationServer)

type Message Uses

type Message struct {
    Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`

func (*Message) Descriptor Uses

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

func (*Message) GetText Uses

func (m *Message) GetText() string

func (*Message) ProtoMessage Uses

func (*Message) ProtoMessage()

func (*Message) Reset Uses

func (m *Message) Reset()

func (*Message) String Uses

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown Uses

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal Uses

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

func (*Message) XXX_Merge Uses

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

func (*Message) XXX_Size Uses

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal Uses

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

type Server Uses

type Server struct{}

Server is a gRPC server.

func (*Server) DoStreamStream Uses

func (s *Server) DoStreamStream(stream TestApplication_DoStreamStreamServer) error

DoStreamStream is a stream request, stream response method.

func (*Server) DoStreamUnary Uses

func (s *Server) DoStreamUnary(stream TestApplication_DoStreamUnaryServer) error

DoStreamUnary is a stream request, unary response method.

func (*Server) DoUnaryStream Uses

func (s *Server) DoUnaryStream(msg *Message, stream TestApplication_DoUnaryStreamServer) error

DoUnaryStream is a unary request, stream response method.

func (*Server) DoUnaryStreamError Uses

func (s *Server) DoUnaryStreamError(msg *Message, stream TestApplication_DoUnaryStreamErrorServer) error

DoUnaryStreamError is a unary request, unary response method that returns an error.

func (*Server) DoUnaryUnary Uses

func (s *Server) DoUnaryUnary(ctx context.Context, msg *Message) (*Message, error)

DoUnaryUnary is a unary request, unary response method.

func (*Server) DoUnaryUnaryError Uses

func (s *Server) DoUnaryUnaryError(ctx context.Context, msg *Message) (*Message, error)

DoUnaryUnaryError is a unary request, unary response method that returns an error.

type TestApplicationClient Uses

type TestApplicationClient interface {
    DoUnaryUnary(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
    DoUnaryStream(ctx context.Context, in *Message, opts ...grpc.CallOption) (TestApplication_DoUnaryStreamClient, error)
    DoStreamUnary(ctx context.Context, opts ...grpc.CallOption) (TestApplication_DoStreamUnaryClient, error)
    DoStreamStream(ctx context.Context, opts ...grpc.CallOption) (TestApplication_DoStreamStreamClient, error)
    DoUnaryUnaryError(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
    DoUnaryStreamError(ctx context.Context, in *Message, opts ...grpc.CallOption) (TestApplication_DoUnaryStreamErrorClient, error)

TestApplicationClient is the client API for TestApplication service.

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

func NewTestApplicationClient Uses

func NewTestApplicationClient(cc *grpc.ClientConn) TestApplicationClient

type TestApplicationServer Uses

type TestApplicationServer interface {
    DoUnaryUnary(context.Context, *Message) (*Message, error)
    DoUnaryStream(*Message, TestApplication_DoUnaryStreamServer) error
    DoStreamUnary(TestApplication_DoStreamUnaryServer) error
    DoStreamStream(TestApplication_DoStreamStreamServer) error
    DoUnaryUnaryError(context.Context, *Message) (*Message, error)
    DoUnaryStreamError(*Message, TestApplication_DoUnaryStreamErrorServer) error

TestApplicationServer is the server API for TestApplication service.

type TestApplication_DoStreamStreamClient Uses

type TestApplication_DoStreamStreamClient interface {
    Send(*Message) error
    Recv() (*Message, error)

type TestApplication_DoStreamStreamServer Uses

type TestApplication_DoStreamStreamServer interface {
    Send(*Message) error
    Recv() (*Message, error)

type TestApplication_DoStreamUnaryClient Uses

type TestApplication_DoStreamUnaryClient interface {
    Send(*Message) error
    CloseAndRecv() (*Message, error)

type TestApplication_DoStreamUnaryServer Uses

type TestApplication_DoStreamUnaryServer interface {
    SendAndClose(*Message) error
    Recv() (*Message, error)

type TestApplication_DoUnaryStreamClient Uses

type TestApplication_DoUnaryStreamClient interface {
    Recv() (*Message, error)

type TestApplication_DoUnaryStreamErrorClient Uses

type TestApplication_DoUnaryStreamErrorClient interface {
    Recv() (*Message, error)

type TestApplication_DoUnaryStreamErrorServer Uses

type TestApplication_DoUnaryStreamErrorServer interface {
    Send(*Message) error

type TestApplication_DoUnaryStreamServer Uses

type TestApplication_DoUnaryStreamServer interface {
    Send(*Message) error

Package testapp imports 11 packages (graph). Updated 2020-07-10. Refresh now. Tools for package owners.