fs_srv_services

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_services_services_proto protoreflect.FileDescriptor

Functions

func NewServicesEndpoints added in v1.2.0

func NewServicesEndpoints() []*api.Endpoint

func RegisterServicesHandler

func RegisterServicesHandler(s server.Server, hdlr ServicesHandler, opts ...server.HandlerOption) error

Types

type Ping

type Ping struct {
	Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"`
	// contains filtered or unexported fields
}

func (*Ping) Descriptor deprecated

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetStroke

func (x *Ping) GetStroke() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type Pong

type Pong struct {
	Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"`
	// contains filtered or unexported fields
}

func (*Pong) Descriptor deprecated

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetStroke

func (x *Pong) GetStroke() int64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

type ServicesHandler

type ServicesHandler interface {
	PingPong(context.Context, *Ping, *Pong) error
}

type ServicesService

type ServicesService interface {
	PingPong(ctx context.Context, in *Ping, opts ...client.CallOption) (*Pong, error)
}

func NewServicesService

func NewServicesService(name string, c client.Client) ServicesService

Jump to

Keyboard shortcuts

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