luci: Index | Files

package logdog

import ""

Package logdog contains Version 1 of the LogDog Coordinator service interface.

The package name here must match the protobuf package name, as the generated files will reside in the same directory.


Package Files

admin.pb.go adminserver_dec.go gen.go pb.discovery.go

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterAdminServer Uses

func RegisterAdminServer(s prpc.Registrar, srv AdminServer)

type AdminClient Uses

type AdminClient interface {
    // SetConfig loads the supplied configuration into a config.GlobalConfig
    // instance.
    SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error)

AdminClient is the client API for Admin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to

func NewAdminClient Uses

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

func NewAdminPRPCClient Uses

func NewAdminPRPCClient(client *prpc.Client) AdminClient

type AdminServer Uses

type AdminServer interface {
    // SetConfig loads the supplied configuration into a config.GlobalConfig
    // instance.
    SetConfig(context.Context, *SetConfigRequest) (*empty.Empty, error)

AdminServer is the server API for Admin service.

type DecoratedAdmin Uses

type DecoratedAdmin struct {
    // Service is the service to decorate.
    Service AdminServer
    // Prelude is called for each method before forwarding the call to Service.
    // If Prelude returns an error, then the call is skipped and the error is
    // processed via the Postlude (if one is defined), or it is returned directly.
    Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
    // Postlude is called for each method after Service has processed the call, or
    // after the Prelude has returned an error. This takes the the Service's
    // response proto (which may be nil) and/or any error. The decorated
    // service will return the response (possibly mutated) and error that Postlude
    // returns.
    Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error

func (*DecoratedAdmin) SetConfig Uses

func (s *DecoratedAdmin) SetConfig(ctx context.Context, req *SetConfigRequest) (rsp *empty.Empty, err error)

type SetConfigRequest Uses

type SetConfigRequest struct {
    // ConfigServiceURL is the API URL of the base "luci-config" service. If
    // empty, the default service URL will be used.
    ConfigServiceUrl string `protobuf:"bytes,1,opt,name=config_service_url,json=configServiceUrl,proto3" json:"config_service_url,omitempty"`
    // ConfigSet is the name of the configuration set to load from.
    ConfigSet string `protobuf:"bytes,2,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
    // ConfigPath is the path of the text-serialized configuration protobuf.
    ConfigPath string `protobuf:"bytes,3,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
    // If not empty, is the service account JSON file data that will be used for
    // Storage access.
    // TODO(dnj): Remove this option once Cloud BigTable has cross-project ACLs.
    StorageServiceAccountJson []byte   `protobuf:"bytes,100,opt,name=storage_service_account_json,json=storageServiceAccountJson,proto3" json:"storage_service_account_json,omitempty"`
    XXX_NoUnkeyedLiteral      struct{} `json:"-"`
    XXX_unrecognized          []byte   `json:"-"`
    XXX_sizecache             int32    `json:"-"`

GlobalConfig is the LogDog Coordinator global configuration.

This is intended to act as an entry point. The majority of the configuration will be stored in a "luci-config" service Config protobuf.

func (*SetConfigRequest) Descriptor Uses

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

func (*SetConfigRequest) GetConfigPath Uses

func (m *SetConfigRequest) GetConfigPath() string

func (*SetConfigRequest) GetConfigServiceUrl Uses

func (m *SetConfigRequest) GetConfigServiceUrl() string

func (*SetConfigRequest) GetConfigSet Uses

func (m *SetConfigRequest) GetConfigSet() string

func (*SetConfigRequest) GetStorageServiceAccountJson Uses

func (m *SetConfigRequest) GetStorageServiceAccountJson() []byte

func (*SetConfigRequest) ProtoMessage Uses

func (*SetConfigRequest) ProtoMessage()

func (*SetConfigRequest) Reset Uses

func (m *SetConfigRequest) Reset()

func (*SetConfigRequest) String Uses

func (m *SetConfigRequest) String() string

func (*SetConfigRequest) XXX_DiscardUnknown Uses

func (m *SetConfigRequest) XXX_DiscardUnknown()

func (*SetConfigRequest) XXX_Marshal Uses

func (m *SetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetConfigRequest) XXX_Merge Uses

func (m *SetConfigRequest) XXX_Merge(src proto.Message)

func (*SetConfigRequest) XXX_Size Uses

func (m *SetConfigRequest) XXX_Size() int

func (*SetConfigRequest) XXX_Unmarshal Uses

func (m *SetConfigRequest) XXX_Unmarshal(b []byte) error

type UnimplementedAdminServer Uses

type UnimplementedAdminServer struct {

UnimplementedAdminServer can be embedded to have forward compatible implementations.

func (*UnimplementedAdminServer) SetConfig Uses

func (*UnimplementedAdminServer) SetConfig(ctx context.Context, req *SetConfigRequest) (*empty.Empty, error)

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