proto

package
v0.0.0-...-23bf2d9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_service_proto_api_proto protoreflect.FileDescriptor

Functions

func NewAPIEndpoints

func NewAPIEndpoints() []*api.Endpoint

NewAPIEndpoints API Endpoints for API service

func RegisterAPIHandler

func RegisterAPIHandler(s server.Server, hdlr APIHandler, opts ...server.HandlerOption) error

Types

type APIHandler

type APIHandler interface {
	Register(context.Context, *Endpoint, *EmptyResponse) error
	Deregister(context.Context, *Endpoint, *EmptyResponse) error
}

APIHandler is the server API for API service.

type APIService

type APIService interface {
	Register(ctx context.Context, in *Endpoint, opts ...client.CallOption) (*EmptyResponse, error)
	Deregister(ctx context.Context, in *Endpoint, opts ...client.CallOption) (*EmptyResponse, error)
}

APIService is the client API for API service.

func NewAPIService

func NewAPIService(name string, c client.Client) APIService

type EmptyResponse

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

func (*EmptyResponse) Descriptor deprecated

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

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect

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

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

type Endpoint

type Endpoint struct {
	Name   string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Host   []string `protobuf:"bytes,2,rep,name=host,proto3" json:"host,omitempty"`
	Path   []string `protobuf:"bytes,3,rep,name=path,proto3" json:"path,omitempty"`
	Method []string `protobuf:"bytes,4,rep,name=method,proto3" json:"method,omitempty"`
	Stream bool     `protobuf:"varint,5,opt,name=stream,proto3" json:"stream,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetHost

func (x *Endpoint) GetHost() []string

func (*Endpoint) GetMethod

func (x *Endpoint) GetMethod() []string

func (*Endpoint) GetName

func (x *Endpoint) GetName() string

func (*Endpoint) GetPath

func (x *Endpoint) GetPath() []string

func (*Endpoint) GetStream

func (x *Endpoint) GetStream() bool

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

Jump to

Keyboard shortcuts

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