owlapi

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package owlapi is a generated protocol buffer package.

It is generated from these files:

proto/owlquery/owlapi.proto

It has these top-level messages:

QueryInput
QueryReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOwlQueryServer

func RegisterOwlQueryServer(s *grpc.Server, srv OwlQueryServer)

Types

type OwlQueryClient

type OwlQueryClient interface {
	// Sends a query to server
	Query(ctx context.Context, in *QueryInput, opts ...grpc.CallOption) (*QueryReply, error)
}

func NewOwlQueryClient

func NewOwlQueryClient(cc *grpc.ClientConn) OwlQueryClient

type OwlQueryServer

type OwlQueryServer interface {
	// Sends a query to server
	Query(context.Context, *QueryInput) (*QueryReply, error)
}

type QueryInput

type QueryInput struct {
	StartTs       int32  `protobuf:"varint,1,opt,name=startTs" json:"startTs,omitempty"`
	EndTs         int32  `protobuf:"varint,2,opt,name=endTs" json:"endTs,omitempty"`
	ComputeMethod string `protobuf:"bytes,3,opt,name=computeMethod" json:"computeMethod,omitempty"`
	Endpoint      string `protobuf:"bytes,4,opt,name=endpoint" json:"endpoint,omitempty"`
	Counter       string `protobuf:"bytes,5,opt,name=counter" json:"counter,omitempty"`
}

query string that will send to server

func (*QueryInput) Descriptor

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

func (*QueryInput) ProtoMessage

func (*QueryInput) ProtoMessage()

func (*QueryInput) Reset

func (m *QueryInput) Reset()

func (*QueryInput) String

func (m *QueryInput) String() string

type QueryReply

type QueryReply struct {
	Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}

The response message from server

func (*QueryReply) Descriptor

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

func (*QueryReply) ProtoMessage

func (*QueryReply) ProtoMessage()

func (*QueryReply) Reset

func (m *QueryReply) Reset()

func (*QueryReply) String

func (m *QueryReply) String() string

Jump to

Keyboard shortcuts

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