backend

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_backend_backend_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig struct {

	// Types that are assignable to Backend:
	//
	//	*BackendConfig_Local
	//	*BackendConfig_HttpRpc
	//	*BackendConfig_Remote
	//	*BackendConfig_Rule
	Backend isBackendConfig_Backend `protobuf_oneof:"backend"`
	// contains filtered or unexported fields
}

func (*BackendConfig) Descriptor deprecated

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

Deprecated: Use BackendConfig.ProtoReflect.Descriptor instead.

func (*BackendConfig) GetBackend

func (m *BackendConfig) GetBackend() isBackendConfig_Backend

func (*BackendConfig) GetHttpRpc

func (x *BackendConfig) GetHttpRpc() *HttpRpcBackend

func (*BackendConfig) GetLocal

func (x *BackendConfig) GetLocal() *LocalBackend

func (*BackendConfig) GetRemote

func (x *BackendConfig) GetRemote() *RemoteBackend

func (*BackendConfig) GetRule

func (x *BackendConfig) GetRule() *BackendRule

func (*BackendConfig) ProtoMessage

func (*BackendConfig) ProtoMessage()

func (*BackendConfig) ProtoReflect added in v0.0.12

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

func (*BackendConfig) Reset

func (x *BackendConfig) Reset()

func (*BackendConfig) String

func (x *BackendConfig) String() string

type BackendConfig_HttpRpc

type BackendConfig_HttpRpc struct {
	// debug only.
	HttpRpc *HttpRpcBackend `protobuf:"bytes,2,opt,name=http_rpc,json=httpRpc,proto3,oneof"`
}

type BackendConfig_Local

type BackendConfig_Local struct {
	// for frontend in backend cluster.
	Local *LocalBackend `protobuf:"bytes,1,opt,name=local,proto3,oneof"`
}

type BackendConfig_Remote

type BackendConfig_Remote struct {
	Remote *RemoteBackend `protobuf:"bytes,3,opt,name=remote,proto3,oneof"`
}

type BackendConfig_Rule

type BackendConfig_Rule struct {
	// for frontend-mixer
	Rule *BackendRule `protobuf:"bytes,4,opt,name=rule,proto3,oneof"`
}

type BackendMapping

type BackendMapping struct {

	// id of group that uses the backend.
	// group id matches with group id in ACL if not empty.
	// empty group id will be used as default backend.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// backend selection by query parameters, encoded form sorted by key
	// as same as https://golang.org/pkg/net/url/#Values.Encode
	// if specified, this backend will be used if all query parameters
	// matches with query_params.
	// if query_params is empty, any requests will match.
	//
	// it is not used for default backend (empty group id). i.e.
	// if group_id is empty, query_params must be empty.
	QueryParams string `protobuf:"bytes,4,opt,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
	// backend for the group.
	//
	// Types that are assignable to Backend:
	//
	//	*BackendMapping_HttpRpc
	//	*BackendMapping_Remote
	Backend isBackendMapping_Backend `protobuf_oneof:"backend"`
	// contains filtered or unexported fields
}

func (*BackendMapping) Descriptor deprecated

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

Deprecated: Use BackendMapping.ProtoReflect.Descriptor instead.

func (*BackendMapping) GetBackend

func (m *BackendMapping) GetBackend() isBackendMapping_Backend

func (*BackendMapping) GetGroupId

func (x *BackendMapping) GetGroupId() string

func (*BackendMapping) GetHttpRpc

func (x *BackendMapping) GetHttpRpc() *HttpRpcBackend

func (*BackendMapping) GetQueryParams

func (x *BackendMapping) GetQueryParams() string

func (*BackendMapping) GetRemote

func (x *BackendMapping) GetRemote() *RemoteBackend

func (*BackendMapping) ProtoMessage

func (*BackendMapping) ProtoMessage()

func (*BackendMapping) ProtoReflect added in v0.0.12

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

func (*BackendMapping) Reset

func (x *BackendMapping) Reset()

func (*BackendMapping) String

func (x *BackendMapping) String() string

type BackendMapping_HttpRpc

type BackendMapping_HttpRpc struct {
	HttpRpc *HttpRpcBackend `protobuf:"bytes,2,opt,name=http_rpc,json=httpRpc,proto3,oneof"`
}

type BackendMapping_Remote

type BackendMapping_Remote struct {
	Remote *RemoteBackend `protobuf:"bytes,3,opt,name=remote,proto3,oneof"`
}

type BackendRule

type BackendRule struct {
	Backends []*BackendMapping `protobuf:"bytes,1,rep,name=backends,proto3" json:"backends,omitempty"`
	// contains filtered or unexported fields
}

func (*BackendRule) Descriptor deprecated

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

Deprecated: Use BackendRule.ProtoReflect.Descriptor instead.

func (*BackendRule) GetBackends

func (x *BackendRule) GetBackends() []*BackendMapping

func (*BackendRule) ProtoMessage

func (*BackendRule) ProtoMessage()

func (*BackendRule) ProtoReflect added in v0.0.12

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

func (*BackendRule) Reset

func (x *BackendRule) Reset()

func (*BackendRule) String

func (x *BackendRule) String() string

type HttpRpcBackend

type HttpRpcBackend struct {

	// target URL (scheme + host).
	// request query will be preserved.
	// e.g. "https://clients5.google.com/cxx-compiler-service"
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpRpcBackend) Descriptor deprecated

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

Deprecated: Use HttpRpcBackend.ProtoReflect.Descriptor instead.

func (*HttpRpcBackend) GetTarget

func (x *HttpRpcBackend) GetTarget() string

func (*HttpRpcBackend) ProtoMessage

func (*HttpRpcBackend) ProtoMessage()

func (*HttpRpcBackend) ProtoReflect added in v0.0.12

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

func (*HttpRpcBackend) Reset

func (x *HttpRpcBackend) Reset()

func (*HttpRpcBackend) String

func (x *HttpRpcBackend) String() string

type LocalBackend

type LocalBackend struct {

	// address of exec server. default "exec-server:5050"
	ExecAddr string `protobuf:"bytes,1,opt,name=exec_addr,json=execAddr,proto3" json:"exec_addr,omitempty"`
	// address of file server. default "file-server:5050"
	FileAddr string `protobuf:"bytes,2,opt,name=file_addr,json=fileAddr,proto3" json:"file_addr,omitempty"`
	// address of execlog server. default "execlog-server:5050"
	ExeclogAddr      string                    `protobuf:"bytes,3,opt,name=execlog_addr,json=execlogAddr,proto3" json:"execlog_addr,omitempty"`
	EnableBytestream bool                      `protobuf:"varint,4,opt,name=enable_bytestream,json=enableBytestream,proto3" json:"enable_bytestream,omitempty"`
	TraceOption      *LocalBackend_TraceOption `protobuf:"bytes,5,opt,name=trace_option,json=traceOption,proto3" json:"trace_option,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalBackend) Descriptor deprecated

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

Deprecated: Use LocalBackend.ProtoReflect.Descriptor instead.

func (*LocalBackend) GetEnableBytestream

func (x *LocalBackend) GetEnableBytestream() bool

func (*LocalBackend) GetExecAddr

func (x *LocalBackend) GetExecAddr() string

func (*LocalBackend) GetExeclogAddr

func (x *LocalBackend) GetExeclogAddr() string

func (*LocalBackend) GetFileAddr

func (x *LocalBackend) GetFileAddr() string

func (*LocalBackend) GetTraceOption

func (x *LocalBackend) GetTraceOption() *LocalBackend_TraceOption

func (*LocalBackend) ProtoMessage

func (*LocalBackend) ProtoMessage()

func (*LocalBackend) ProtoReflect added in v0.0.12

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

func (*LocalBackend) Reset

func (x *LocalBackend) Reset()

func (*LocalBackend) String

func (x *LocalBackend) String() string

type LocalBackend_TraceOption

type LocalBackend_TraceOption struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Cluster   string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// contains filtered or unexported fields
}

attributes for cloud tracing when handling this backend request.

func (*LocalBackend_TraceOption) Descriptor deprecated

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

Deprecated: Use LocalBackend_TraceOption.ProtoReflect.Descriptor instead.

func (*LocalBackend_TraceOption) GetCluster

func (x *LocalBackend_TraceOption) GetCluster() string

func (*LocalBackend_TraceOption) GetNamespace

func (x *LocalBackend_TraceOption) GetNamespace() string

func (*LocalBackend_TraceOption) ProtoMessage

func (*LocalBackend_TraceOption) ProtoMessage()

func (*LocalBackend_TraceOption) ProtoReflect added in v0.0.12

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

func (*LocalBackend_TraceOption) Reset

func (x *LocalBackend_TraceOption) Reset()

func (*LocalBackend_TraceOption) String

func (x *LocalBackend_TraceOption) String() string

type RemoteBackend

type RemoteBackend struct {

	// target address.
	// e.g. "goma.endpoints.goma-dev.cloud.goog:443"
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// api_key to access the backend.
	// it is used to read api_key value in api-keys volume.
	ApiKeyName string `protobuf:"bytes,2,opt,name=api_key_name,json=apiKeyName,proto3" json:"api_key_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteBackend) Descriptor deprecated

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

Deprecated: Use RemoteBackend.ProtoReflect.Descriptor instead.

func (*RemoteBackend) GetAddress

func (x *RemoteBackend) GetAddress() string

func (*RemoteBackend) GetApiKeyName

func (x *RemoteBackend) GetApiKeyName() string

func (*RemoteBackend) ProtoMessage

func (*RemoteBackend) ProtoMessage()

func (*RemoteBackend) ProtoReflect added in v0.0.12

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

func (*RemoteBackend) Reset

func (x *RemoteBackend) Reset()

func (*RemoteBackend) String

func (x *RemoteBackend) String() string

Jump to

Keyboard shortcuts

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