...

Package goeasyops

import "golang.conradwood.net/apis/goeasyops"
Overview
Index

Overview ▾

Package goeasyops is a generated protocol buffer package.

It is generated from these files:

golang.conradwood.net/apis/goeasyops/goeasyops.proto

It has these top-level messages:

InContext
ImmutableContext
MutableContext
ServiceTrace
Experiment
CTXRoutingTags
GRPCErrorList
Config
GRPCError
PostgresConfig
StopUpdate

Index ▾

type CTXRoutingTags
    func (*CTXRoutingTags) Descriptor() ([]byte, []int)
    func (m *CTXRoutingTags) GetFallbackToPlain() bool
    func (m *CTXRoutingTags) GetPropagate() bool
    func (m *CTXRoutingTags) GetTags() map[string]string
    func (*CTXRoutingTags) ProtoMessage()
    func (m *CTXRoutingTags) Reset()
    func (m *CTXRoutingTags) String() string
type Config
    func (*Config) Descriptor() ([]byte, []int)
    func (m *Config) GetRegistry() string
    func (*Config) ProtoMessage()
    func (m *Config) Reset()
    func (m *Config) String() string
type Experiment
    func (*Experiment) Descriptor() ([]byte, []int)
    func (m *Experiment) GetEnabled() bool
    func (m *Experiment) GetName() string
    func (*Experiment) ProtoMessage()
    func (m *Experiment) Reset()
    func (m *Experiment) String() string
type GRPCError
    func (*GRPCError) Descriptor() ([]byte, []int)
    func (m *GRPCError) GetCallingServiceEmail() string
    func (m *GRPCError) GetCallingServiceID() string
    func (m *GRPCError) GetLogMessage() string
    func (m *GRPCError) GetMethodName() string
    func (m *GRPCError) GetServiceName() string
    func (m *GRPCError) GetUserMessage() string
    func (*GRPCError) ProtoMessage()
    func (m *GRPCError) Reset()
    func (m *GRPCError) String() string
type GRPCErrorList
    func (*GRPCErrorList) Descriptor() ([]byte, []int)
    func (m *GRPCErrorList) GetErrors() []*GRPCError
    func (*GRPCErrorList) ProtoMessage()
    func (m *GRPCErrorList) Reset()
    func (m *GRPCErrorList) String() string
type ImmutableContext
    func (*ImmutableContext) Descriptor() ([]byte, []int)
    func (m *ImmutableContext) GetAuthTags() []string
    func (m *ImmutableContext) GetCreatorService() *auth.SignedUser
    func (m *ImmutableContext) GetRequestID() string
    func (m *ImmutableContext) GetSession() *session.Session
    func (m *ImmutableContext) GetSudoUser() *auth.SignedUser
    func (m *ImmutableContext) GetUser() *auth.SignedUser
    func (*ImmutableContext) ProtoMessage()
    func (m *ImmutableContext) Reset()
    func (m *ImmutableContext) String() string
type InContext
    func (*InContext) Descriptor() ([]byte, []int)
    func (m *InContext) GetImCtx() *ImmutableContext
    func (m *InContext) GetMCtx() *MutableContext
    func (*InContext) ProtoMessage()
    func (m *InContext) Reset()
    func (m *InContext) String() string
type MutableContext
    func (*MutableContext) Descriptor() ([]byte, []int)
    func (m *MutableContext) GetCallingService() *auth.SignedUser
    func (m *MutableContext) GetDebug() bool
    func (m *MutableContext) GetExperiments() []*Experiment
    func (m *MutableContext) GetServiceIDs() []string
    func (m *MutableContext) GetServices() []*ServiceTrace
    func (m *MutableContext) GetTags() *CTXRoutingTags
    func (m *MutableContext) GetTrace() bool
    func (*MutableContext) ProtoMessage()
    func (m *MutableContext) Reset()
    func (m *MutableContext) String() string
type PostgresConfig
    func (*PostgresConfig) Descriptor() ([]byte, []int)
    func (m *PostgresConfig) GetDB() string
    func (m *PostgresConfig) GetHost() string
    func (m *PostgresConfig) GetMaxConnections() uint32
    func (m *PostgresConfig) GetMaxIdleSecs() uint32
    func (m *PostgresConfig) GetPW() string
    func (m *PostgresConfig) GetUser() string
    func (*PostgresConfig) ProtoMessage()
    func (m *PostgresConfig) Reset()
    func (m *PostgresConfig) String() string
type ServiceTrace
    func (*ServiceTrace) Descriptor() ([]byte, []int)
    func (m *ServiceTrace) GetID() string
    func (*ServiceTrace) ProtoMessage()
    func (m *ServiceTrace) Reset()
    func (m *ServiceTrace) String() string
type StopUpdate
    func (*StopUpdate) Descriptor() ([]byte, []int)
    func (m *StopUpdate) GetActiveRPCs() uint32
    func (m *StopUpdate) GetStopping() bool
    func (*StopUpdate) ProtoMessage()
    func (m *StopUpdate) Reset()
    func (m *StopUpdate) String() string

Package files

goeasyops.pb.go

type CTXRoutingTags

Routing tags are part of a context. Rules to match tags when looking for a suitable target service instance are as follows:

If FallbackToPlain == false then:

- if context has no tags - use any instance

- if context has tags - only use instance that matches exactly (with all tags)

If FallbackToPlain == true then:

- if context has no tags - use any instance

- if context has tags - if at least one instance matches exactly (with all tags), use only that. if none matches, but at least one instance has no tags, use that.

Propagate: If it is true, the routing tags are kept as-is, otherwise the first target service will strip routing tags out

type CTXRoutingTags struct {
    Tags            map[string]string `protobuf:"bytes,1,rep,name=Tags" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
    FallbackToPlain bool              `protobuf:"varint,2,opt,name=FallbackToPlain" json:"FallbackToPlain,omitempty"`
    Propagate       bool              `protobuf:"varint,3,opt,name=Propagate" json:"Propagate,omitempty"`
}

func (*CTXRoutingTags) Descriptor

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

func (*CTXRoutingTags) GetFallbackToPlain

func (m *CTXRoutingTags) GetFallbackToPlain() bool

func (*CTXRoutingTags) GetPropagate

func (m *CTXRoutingTags) GetPropagate() bool

func (*CTXRoutingTags) GetTags

func (m *CTXRoutingTags) GetTags() map[string]string

func (*CTXRoutingTags) ProtoMessage

func (*CTXRoutingTags) ProtoMessage()

func (*CTXRoutingTags) Reset

func (m *CTXRoutingTags) Reset()

func (*CTXRoutingTags) String

func (m *CTXRoutingTags) String() string

type Config

parsed on boot

type Config struct {
    Registry string `protobuf:"bytes,1,opt,name=Registry" json:"Registry,omitempty"`
}

func (*Config) Descriptor

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

func (*Config) GetRegistry

func (m *Config) GetRegistry() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type Experiment

type Experiment struct {
    Name    string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
    Enabled bool   `protobuf:"varint,2,opt,name=Enabled" json:"Enabled,omitempty"`
}

func (*Experiment) Descriptor

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

func (*Experiment) GetEnabled

func (m *Experiment) GetEnabled() bool

func (*Experiment) GetName

func (m *Experiment) GetName() string

func (*Experiment) ProtoMessage

func (*Experiment) ProtoMessage()

func (*Experiment) Reset

func (m *Experiment) Reset()

func (*Experiment) String

func (m *Experiment) String() string

type GRPCError

type GRPCError struct {
    UserMessage         string `protobuf:"bytes,1,opt,name=UserMessage" json:"UserMessage,omitempty"`
    LogMessage          string `protobuf:"bytes,2,opt,name=LogMessage" json:"LogMessage,omitempty"`
    MethodName          string `protobuf:"bytes,3,opt,name=MethodName" json:"MethodName,omitempty"`
    ServiceName         string `protobuf:"bytes,4,opt,name=ServiceName" json:"ServiceName,omitempty"`
    CallingServiceID    string `protobuf:"bytes,5,opt,name=CallingServiceID" json:"CallingServiceID,omitempty"`
    CallingServiceEmail string `protobuf:"bytes,6,opt,name=CallingServiceEmail" json:"CallingServiceEmail,omitempty"`
}

func (*GRPCError) Descriptor

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

func (*GRPCError) GetCallingServiceEmail

func (m *GRPCError) GetCallingServiceEmail() string

func (*GRPCError) GetCallingServiceID

func (m *GRPCError) GetCallingServiceID() string

func (*GRPCError) GetLogMessage

func (m *GRPCError) GetLogMessage() string

func (*GRPCError) GetMethodName

func (m *GRPCError) GetMethodName() string

func (*GRPCError) GetServiceName

func (m *GRPCError) GetServiceName() string

func (*GRPCError) GetUserMessage

func (m *GRPCError) GetUserMessage() string

func (*GRPCError) ProtoMessage

func (*GRPCError) ProtoMessage()

func (*GRPCError) Reset

func (m *GRPCError) Reset()

func (*GRPCError) String

func (m *GRPCError) String() string

type GRPCErrorList

a single error can only hold a single proto

type GRPCErrorList struct {
    Errors []*GRPCError `protobuf:"bytes,1,rep,name=Errors" json:"Errors,omitempty"`
}

func (*GRPCErrorList) Descriptor

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

func (*GRPCErrorList) GetErrors

func (m *GRPCErrorList) GetErrors() []*GRPCError

func (*GRPCErrorList) ProtoMessage

func (*GRPCErrorList) ProtoMessage()

func (*GRPCErrorList) Reset

func (m *GRPCErrorList) Reset()

func (*GRPCErrorList) String

func (m *GRPCErrorList) String() string

type ImmutableContext

this must not be changed throughout its lifetime. furthermore, go-easyops _must_ transport this as-is (preserving unknown fields)

type ImmutableContext struct {
    RequestID      string           `protobuf:"bytes,1,opt,name=RequestID" json:"RequestID,omitempty"`
    CreatorService *auth.SignedUser `protobuf:"bytes,2,opt,name=CreatorService" json:"CreatorService,omitempty"`
    User           *auth.SignedUser `protobuf:"bytes,3,opt,name=User" json:"User,omitempty"`
    SudoUser       *auth.SignedUser `protobuf:"bytes,4,opt,name=SudoUser" json:"SudoUser,omitempty"`
    Session        *session.Session `protobuf:"bytes,5,opt,name=Session" json:"Session,omitempty"`
    AuthTags       []string         `protobuf:"bytes,6,rep,name=AuthTags" json:"AuthTags,omitempty"`
}

func (*ImmutableContext) Descriptor

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

func (*ImmutableContext) GetAuthTags

func (m *ImmutableContext) GetAuthTags() []string

func (*ImmutableContext) GetCreatorService

func (m *ImmutableContext) GetCreatorService() *auth.SignedUser

func (*ImmutableContext) GetRequestID

func (m *ImmutableContext) GetRequestID() string

func (*ImmutableContext) GetSession

func (m *ImmutableContext) GetSession() *session.Session

func (*ImmutableContext) GetSudoUser

func (m *ImmutableContext) GetSudoUser() *auth.SignedUser

func (*ImmutableContext) GetUser

func (m *ImmutableContext) GetUser() *auth.SignedUser

func (*ImmutableContext) ProtoMessage

func (*ImmutableContext) ProtoMessage()

func (*ImmutableContext) Reset

func (m *ImmutableContext) Reset()

func (*ImmutableContext) String

func (m *ImmutableContext) String() string

type InContext

this is transported within the Context of a call. This proto is on-purpose very brief and static so that old versions of go-easyops can handle it

type InContext struct {
    ImCtx *ImmutableContext `protobuf:"bytes,1,opt,name=ImCtx" json:"ImCtx,omitempty"`
    MCtx  *MutableContext   `protobuf:"bytes,2,opt,name=MCtx" json:"MCtx,omitempty"`
}

func (*InContext) Descriptor

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

func (*InContext) GetImCtx

func (m *InContext) GetImCtx() *ImmutableContext

func (*InContext) GetMCtx

func (m *InContext) GetMCtx() *MutableContext

func (*InContext) ProtoMessage

func (*InContext) ProtoMessage()

func (*InContext) Reset

func (m *InContext) Reset()

func (*InContext) String

func (m *InContext) String() string

type MutableContext

this may change. fields are not guaranteed to be preserved

type MutableContext struct {
    CallingService *auth.SignedUser `protobuf:"bytes,1,opt,name=CallingService" json:"CallingService,omitempty"`
    Debug          bool             `protobuf:"varint,2,opt,name=Debug" json:"Debug,omitempty"`
    Trace          bool             `protobuf:"varint,3,opt,name=Trace" json:"Trace,omitempty"`
    Tags           *CTXRoutingTags  `protobuf:"bytes,4,opt,name=Tags" json:"Tags,omitempty"`
    ServiceIDs     []string         `protobuf:"bytes,5,rep,name=ServiceIDs" json:"ServiceIDs,omitempty"`
    Experiments    []*Experiment    `protobuf:"bytes,6,rep,name=Experiments" json:"Experiments,omitempty"`
    Services       []*ServiceTrace  `protobuf:"bytes,7,rep,name=Services" json:"Services,omitempty"`
}

func (*MutableContext) Descriptor

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

func (*MutableContext) GetCallingService

func (m *MutableContext) GetCallingService() *auth.SignedUser

func (*MutableContext) GetDebug

func (m *MutableContext) GetDebug() bool

func (*MutableContext) GetExperiments

func (m *MutableContext) GetExperiments() []*Experiment

func (*MutableContext) GetServiceIDs

func (m *MutableContext) GetServiceIDs() []string

func (*MutableContext) GetServices

func (m *MutableContext) GetServices() []*ServiceTrace

func (*MutableContext) GetTags

func (m *MutableContext) GetTags() *CTXRoutingTags

func (*MutableContext) GetTrace

func (m *MutableContext) GetTrace() bool

func (*MutableContext) ProtoMessage

func (*MutableContext) ProtoMessage()

func (*MutableContext) Reset

func (m *MutableContext) Reset()

func (*MutableContext) String

func (m *MutableContext) String() string

type PostgresConfig

a postgres configuration

type PostgresConfig struct {
    Host           string `protobuf:"bytes,1,opt,name=Host" json:"Host,omitempty"`
    DB             string `protobuf:"bytes,2,opt,name=DB" json:"DB,omitempty"`
    User           string `protobuf:"bytes,3,opt,name=User" json:"User,omitempty"`
    PW             string `protobuf:"bytes,4,opt,name=PW" json:"PW,omitempty"`
    MaxConnections uint32 `protobuf:"varint,5,opt,name=MaxConnections" json:"MaxConnections,omitempty"`
    MaxIdleSecs    uint32 `protobuf:"varint,6,opt,name=MaxIdleSecs" json:"MaxIdleSecs,omitempty"`
}

func (*PostgresConfig) Descriptor

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

func (*PostgresConfig) GetDB

func (m *PostgresConfig) GetDB() string

func (*PostgresConfig) GetHost

func (m *PostgresConfig) GetHost() string

func (*PostgresConfig) GetMaxConnections

func (m *PostgresConfig) GetMaxConnections() uint32

func (*PostgresConfig) GetMaxIdleSecs

func (m *PostgresConfig) GetMaxIdleSecs() uint32

func (*PostgresConfig) GetPW

func (m *PostgresConfig) GetPW() string

func (*PostgresConfig) GetUser

func (m *PostgresConfig) GetUser() string

func (*PostgresConfig) ProtoMessage

func (*PostgresConfig) ProtoMessage()

func (*PostgresConfig) Reset

func (m *PostgresConfig) Reset()

func (*PostgresConfig) String

func (m *PostgresConfig) String() string

type ServiceTrace

each service that receives an RPC adds itself to the servicetrace, potentially with a stacktrace or so

type ServiceTrace struct {
    ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}

func (*ServiceTrace) Descriptor

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

func (*ServiceTrace) GetID

func (m *ServiceTrace) GetID() string

func (*ServiceTrace) ProtoMessage

func (*ServiceTrace) ProtoMessage()

func (*ServiceTrace) Reset

func (m *ServiceTrace) Reset()

func (*ServiceTrace) String

func (m *ServiceTrace) String() string

type StopUpdate

send in response to unixipc STOPREQUEST

type StopUpdate struct {
    Stopping   bool   `protobuf:"varint,1,opt,name=Stopping" json:"Stopping,omitempty"`
    ActiveRPCs uint32 `protobuf:"varint,2,opt,name=ActiveRPCs" json:"ActiveRPCs,omitempty"`
}

func (*StopUpdate) Descriptor

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

func (*StopUpdate) GetActiveRPCs

func (m *StopUpdate) GetActiveRPCs() uint32

func (*StopUpdate) GetStopping

func (m *StopUpdate) GetStopping() bool

func (*StopUpdate) ProtoMessage

func (*StopUpdate) ProtoMessage()

func (*StopUpdate) Reset

func (m *StopUpdate) Reset()

func (*StopUpdate) String

func (m *StopUpdate) String() string