server: go.chromium.org/goma/server/proto/backend Index | Files

package backend

import "go.chromium.org/goma/server/proto/backend"

Index

Package Files

backend.pb.go

Variables

var File_backend_backend_proto protoreflect.FileDescriptor

type BackendConfig Uses

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 Uses

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

Deprecated: Use BackendConfig.ProtoReflect.Descriptor instead.

func (*BackendConfig) GetBackend Uses

func (m *BackendConfig) GetBackend() isBackendConfig_Backend

func (*BackendConfig) GetHttpRpc Uses

func (x *BackendConfig) GetHttpRpc() *HttpRpcBackend

func (*BackendConfig) GetLocal Uses

func (x *BackendConfig) GetLocal() *LocalBackend

func (*BackendConfig) GetRemote Uses

func (x *BackendConfig) GetRemote() *RemoteBackend

func (*BackendConfig) GetRule Uses

func (x *BackendConfig) GetRule() *BackendRule

func (*BackendConfig) ProtoMessage Uses

func (*BackendConfig) ProtoMessage()

func (*BackendConfig) ProtoReflect Uses

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

func (*BackendConfig) Reset Uses

func (x *BackendConfig) Reset()

func (*BackendConfig) String Uses

func (x *BackendConfig) String() string

type BackendConfig_HttpRpc Uses

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

type BackendConfig_Local Uses

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

type BackendConfig_Remote Uses

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

type BackendConfig_Rule Uses

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

type BackendMapping Uses

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 Uses

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

Deprecated: Use BackendMapping.ProtoReflect.Descriptor instead.

func (*BackendMapping) GetBackend Uses

func (m *BackendMapping) GetBackend() isBackendMapping_Backend

func (*BackendMapping) GetGroupId Uses

func (x *BackendMapping) GetGroupId() string

func (*BackendMapping) GetHttpRpc Uses

func (x *BackendMapping) GetHttpRpc() *HttpRpcBackend

func (*BackendMapping) GetQueryParams Uses

func (x *BackendMapping) GetQueryParams() string

func (*BackendMapping) GetRemote Uses

func (x *BackendMapping) GetRemote() *RemoteBackend

func (*BackendMapping) ProtoMessage Uses

func (*BackendMapping) ProtoMessage()

func (*BackendMapping) ProtoReflect Uses

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

func (*BackendMapping) Reset Uses

func (x *BackendMapping) Reset()

func (*BackendMapping) String Uses

func (x *BackendMapping) String() string

type BackendMapping_HttpRpc Uses

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

type BackendMapping_Remote Uses

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

type BackendRule Uses

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

func (*BackendRule) Descriptor Uses

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

Deprecated: Use BackendRule.ProtoReflect.Descriptor instead.

func (*BackendRule) GetBackends Uses

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

func (*BackendRule) ProtoMessage Uses

func (*BackendRule) ProtoMessage()

func (*BackendRule) ProtoReflect Uses

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

func (*BackendRule) Reset Uses

func (x *BackendRule) Reset()

func (*BackendRule) String Uses

func (x *BackendRule) String() string

type HttpRpcBackend Uses

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 Uses

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

Deprecated: Use HttpRpcBackend.ProtoReflect.Descriptor instead.

func (*HttpRpcBackend) GetTarget Uses

func (x *HttpRpcBackend) GetTarget() string

func (*HttpRpcBackend) ProtoMessage Uses

func (*HttpRpcBackend) ProtoMessage()

func (*HttpRpcBackend) ProtoReflect Uses

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

func (*HttpRpcBackend) Reset Uses

func (x *HttpRpcBackend) Reset()

func (*HttpRpcBackend) String Uses

func (x *HttpRpcBackend) String() string

type LocalBackend Uses

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 Uses

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

Deprecated: Use LocalBackend.ProtoReflect.Descriptor instead.

func (*LocalBackend) GetEnableBytestream Uses

func (x *LocalBackend) GetEnableBytestream() bool

func (*LocalBackend) GetExecAddr Uses

func (x *LocalBackend) GetExecAddr() string

func (*LocalBackend) GetExeclogAddr Uses

func (x *LocalBackend) GetExeclogAddr() string

func (*LocalBackend) GetFileAddr Uses

func (x *LocalBackend) GetFileAddr() string

func (*LocalBackend) GetTraceOption Uses

func (x *LocalBackend) GetTraceOption() *LocalBackend_TraceOption

func (*LocalBackend) ProtoMessage Uses

func (*LocalBackend) ProtoMessage()

func (*LocalBackend) ProtoReflect Uses

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

func (*LocalBackend) Reset Uses

func (x *LocalBackend) Reset()

func (*LocalBackend) String Uses

func (x *LocalBackend) String() string

type LocalBackend_TraceOption Uses

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 Uses

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

Deprecated: Use LocalBackend_TraceOption.ProtoReflect.Descriptor instead.

func (*LocalBackend_TraceOption) GetCluster Uses

func (x *LocalBackend_TraceOption) GetCluster() string

func (*LocalBackend_TraceOption) GetNamespace Uses

func (x *LocalBackend_TraceOption) GetNamespace() string

func (*LocalBackend_TraceOption) ProtoMessage Uses

func (*LocalBackend_TraceOption) ProtoMessage()

func (*LocalBackend_TraceOption) ProtoReflect Uses

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

func (*LocalBackend_TraceOption) Reset Uses

func (x *LocalBackend_TraceOption) Reset()

func (*LocalBackend_TraceOption) String Uses

func (x *LocalBackend_TraceOption) String() string

type RemoteBackend Uses

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 Uses

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

Deprecated: Use RemoteBackend.ProtoReflect.Descriptor instead.

func (*RemoteBackend) GetAddress Uses

func (x *RemoteBackend) GetAddress() string

func (*RemoteBackend) GetApiKeyName Uses

func (x *RemoteBackend) GetApiKeyName() string

func (*RemoteBackend) ProtoMessage Uses

func (*RemoteBackend) ProtoMessage()

func (*RemoteBackend) ProtoReflect Uses

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

func (*RemoteBackend) Reset Uses

func (x *RemoteBackend) Reset()

func (*RemoteBackend) String Uses

func (x *RemoteBackend) String() string

Package backend imports 5 packages (graph) and is imported by 2 packages. Updated 2020-05-29. Refresh now. Tools for package owners.