cloudprovider_apis_ai

package
v0.0.0-...-14e6c00 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAiServer

func RegisterAiServer(s *grpc.Server, srv AiServer)

Types

type AiClient

type AiClient interface {
	Ask(ctx context.Context, in *Question, opts ...grpc.CallOption) (*Answer, error)
}

AiClient is the client API for Ai service.

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

func NewAiClient

func NewAiClient(cc *grpc.ClientConn) AiClient

type AiServer

type AiServer interface {
	Ask(context.Context, *Question) (*Answer, error)
}

AiServer is the server API for Ai service.

type Answer

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

func (*Answer) Descriptor

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

func (*Answer) GetAnswer

func (m *Answer) GetAnswer() string

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) Reset

func (m *Answer) Reset()

func (*Answer) String

func (m *Answer) String() string

func (*Answer) XXX_DiscardUnknown

func (m *Answer) XXX_DiscardUnknown()

func (*Answer) XXX_Marshal

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

func (*Answer) XXX_Merge

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

func (*Answer) XXX_Size

func (m *Answer) XXX_Size() int

func (*Answer) XXX_Unmarshal

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

type Question

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

func (*Question) Descriptor

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

func (*Question) GetQuestion

func (m *Question) GetQuestion() string

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) Reset

func (m *Question) Reset()

func (*Question) String

func (m *Question) String() string

func (*Question) XXX_DiscardUnknown

func (m *Question) XXX_DiscardUnknown()

func (*Question) XXX_Marshal

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

func (*Question) XXX_Merge

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

func (*Question) XXX_Size

func (m *Question) XXX_Size() int

func (*Question) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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