service

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor

Functions

func RegisterPDPServer

func RegisterPDPServer(s *grpc.Server, srv PDPServer)

Types

type Msg

type Msg struct {
	Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Msg) Descriptor deprecated

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetBody

func (x *Msg) GetBody() []byte

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect added in v0.0.4

func (x *Msg) ProtoReflect() protoreflect.Message

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

type PDPClient

type PDPClient interface {
	Validate(ctx context.Context, in *Msg, opts ...grpc.CallOption) (*Msg, error)
	NewValidationStream(ctx context.Context, opts ...grpc.CallOption) (PDP_NewValidationStreamClient, error)
}

PDPClient is the client API for PDP service.

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

func NewPDPClient

func NewPDPClient(cc grpc.ClientConnInterface) PDPClient

type PDPServer

type PDPServer interface {
	Validate(context.Context, *Msg) (*Msg, error)
	NewValidationStream(PDP_NewValidationStreamServer) error
}

PDPServer is the server API for PDP service.

type PDP_NewValidationStreamClient

type PDP_NewValidationStreamClient interface {
	Send(*Msg) error
	Recv() (*Msg, error)
	grpc.ClientStream
}

type PDP_NewValidationStreamServer

type PDP_NewValidationStreamServer interface {
	Send(*Msg) error
	Recv() (*Msg, error)
	grpc.ServerStream
}

type UnimplementedPDPServer added in v0.0.4

type UnimplementedPDPServer struct {
}

UnimplementedPDPServer can be embedded to have forward compatible implementations.

func (*UnimplementedPDPServer) NewValidationStream added in v0.0.4

func (*UnimplementedPDPServer) Validate added in v0.0.4

Jump to

Keyboard shortcuts

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