options

package
v0.0.0-...-94d0c95 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional go.service.protoc_gen_go_service.options.RegistryTag registry_tag = 72295730;
	E_RegistryTag = &file_annotations_proto_extTypes[0]
)

Extension fields to descriptor.ServiceOptions.

View Source
var File_annotations_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RegistryTag

type RegistryTag struct {

	// A unique name for your service
	// The string will be checked as a key for env vars and if there is no value set, the string will be used as the value.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Same as the previous one, the value will be checked against env vars, if there is no env var, then the value will be used as is.
	Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	// The complete path of your service with the prefix
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// Path to strip by the proxy before redirecting the request
	Stripprefix string `protobuf:"bytes,4,opt,name=stripprefix,proto3" json:"stripprefix,omitempty"`
	// contains filtered or unexported fields
}

RegistryTag is used to define the tag for the proxy to check against a service registry and redirect the request accordingly to the correct server.

func (*RegistryTag) Descriptor deprecated

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

Deprecated: Use RegistryTag.ProtoReflect.Descriptor instead.

func (*RegistryTag) GetHost

func (x *RegistryTag) GetHost() string

func (*RegistryTag) GetName

func (x *RegistryTag) GetName() string

func (*RegistryTag) GetPath

func (x *RegistryTag) GetPath() string

func (*RegistryTag) GetStripprefix

func (x *RegistryTag) GetStripprefix() string

func (*RegistryTag) ProtoMessage

func (*RegistryTag) ProtoMessage()

func (*RegistryTag) ProtoReflect

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

func (*RegistryTag) Reset

func (x *RegistryTag) Reset()

func (*RegistryTag) String

func (x *RegistryTag) String() string

Jump to

Keyboard shortcuts

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