dogsvscats

package
v0.0.0-...-61cd4c6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idl_dogsvscats_dogs_vs_cats_proto protoreflect.FileDescriptor

Functions

func NewDogsVsCatsServiceEndpoints

func NewDogsVsCatsServiceEndpoints() []*api.Endpoint

func RegisterDogsVsCatsServiceHandler

func RegisterDogsVsCatsServiceHandler(s server.Server, hdlr DogsVsCatsServiceHandler, opts ...server.HandlerOption) error

Types

type ClassifyInput

type ClassifyInput struct {
	ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ClassifyInput) Descriptor deprecated

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

Deprecated: Use ClassifyInput.ProtoReflect.Descriptor instead.

func (*ClassifyInput) GetObjectKey

func (x *ClassifyInput) GetObjectKey() string

func (*ClassifyInput) ProtoMessage

func (*ClassifyInput) ProtoMessage()

func (*ClassifyInput) ProtoReflect

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

func (*ClassifyInput) Reset

func (x *ClassifyInput) Reset()

func (*ClassifyInput) String

func (x *ClassifyInput) String() string

type ClassifyOutput

type ClassifyOutput struct {
	Result   string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	ImageUrl string `protobuf:"bytes,2,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// contains filtered or unexported fields
}

func (*ClassifyOutput) Descriptor deprecated

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

Deprecated: Use ClassifyOutput.ProtoReflect.Descriptor instead.

func (*ClassifyOutput) GetImageUrl

func (x *ClassifyOutput) GetImageUrl() string

func (*ClassifyOutput) GetResult

func (x *ClassifyOutput) GetResult() string

func (*ClassifyOutput) ProtoMessage

func (*ClassifyOutput) ProtoMessage()

func (*ClassifyOutput) ProtoReflect

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

func (*ClassifyOutput) Reset

func (x *ClassifyOutput) Reset()

func (*ClassifyOutput) String

func (x *ClassifyOutput) String() string

type DogsVsCatsService

type DogsVsCatsService interface {
	GetUploadParam(ctx context.Context, in *GetUploadParamInput, opts ...client.CallOption) (*GetUploadParamOutput, error)
	Classify(ctx context.Context, in *ClassifyInput, opts ...client.CallOption) (*ClassifyOutput, error)
}

func NewDogsVsCatsService

func NewDogsVsCatsService(name string, c client.Client) DogsVsCatsService

type DogsVsCatsServiceHandler

type DogsVsCatsServiceHandler interface {
	GetUploadParam(context.Context, *GetUploadParamInput, *GetUploadParamOutput) error
	Classify(context.Context, *ClassifyInput, *ClassifyOutput) error
}

type GetUploadParamInput

type GetUploadParamInput struct {
	// contains filtered or unexported fields
}

func (*GetUploadParamInput) Descriptor deprecated

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

Deprecated: Use GetUploadParamInput.ProtoReflect.Descriptor instead.

func (*GetUploadParamInput) ProtoMessage

func (*GetUploadParamInput) ProtoMessage()

func (*GetUploadParamInput) ProtoReflect

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

func (*GetUploadParamInput) Reset

func (x *GetUploadParamInput) Reset()

func (*GetUploadParamInput) String

func (x *GetUploadParamInput) String() string

type GetUploadParamOutput

type GetUploadParamOutput struct {
	RegionId        string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	Bucket          string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	AccessKeyId     string `protobuf:"bytes,3,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
	AccessKeySecret string `protobuf:"bytes,4,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
	SecurityToken   string `protobuf:"bytes,5,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"`
	Expiration      string `protobuf:"bytes,6,opt,name=expiration,proto3" json:"expiration,omitempty"`
	ObjectKey       string `protobuf:"bytes,7,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUploadParamOutput) Descriptor deprecated

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

Deprecated: Use GetUploadParamOutput.ProtoReflect.Descriptor instead.

func (*GetUploadParamOutput) GetAccessKeyId

func (x *GetUploadParamOutput) GetAccessKeyId() string

func (*GetUploadParamOutput) GetAccessKeySecret

func (x *GetUploadParamOutput) GetAccessKeySecret() string

func (*GetUploadParamOutput) GetBucket

func (x *GetUploadParamOutput) GetBucket() string

func (*GetUploadParamOutput) GetExpiration

func (x *GetUploadParamOutput) GetExpiration() string

func (*GetUploadParamOutput) GetObjectKey

func (x *GetUploadParamOutput) GetObjectKey() string

func (*GetUploadParamOutput) GetRegionId

func (x *GetUploadParamOutput) GetRegionId() string

func (*GetUploadParamOutput) GetSecurityToken

func (x *GetUploadParamOutput) GetSecurityToken() string

func (*GetUploadParamOutput) ProtoMessage

func (*GetUploadParamOutput) ProtoMessage()

func (*GetUploadParamOutput) ProtoReflect

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

func (*GetUploadParamOutput) Reset

func (x *GetUploadParamOutput) Reset()

func (*GetUploadParamOutput) String

func (x *GetUploadParamOutput) String() string

Jump to

Keyboard shortcuts

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