Documentation ¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetClient() *Client
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetLog() *Log
- func (x *Bootstrap) GetName() string
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetTask() map[string]*Task
- func (x *Bootstrap) GetTracer() *Tracer
- func (x *Bootstrap) GetVersion() string
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetAuth() string
- func (x *Client) GetHealth() bool
- func (x *Client) GetTimeout() *durationpb.Duration
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetDriver() string
- func (x *Data_Database) GetDsn() string
- func (x *Data_Database) GetEndpoint() string
- func (x *Data_Database) GetPassword() string
- func (x *Data_Database) GetQuery() string
- func (x *Data_Database) GetSchema() string
- func (x *Data_Database) GetTenants() map[string]string
- func (x *Data_Database) GetUsername() string
- func (*Data_Database) ProtoMessage()
- func (x *Data_Database) ProtoReflect() protoreflect.Message
- func (x *Data_Database) Reset()
- func (x *Data_Database) String() string
- type Data_Redis
- type Log
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (x *Server) GetIdempotent() bool
- func (x *Server) GetLanguage() string
- func (x *Server) GetMachineId() string
- func (x *Server) GetNocache() bool
- func (x *Server) GetProd() bool
- func (x *Server) GetValidate() bool
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type Server_GRPC
- func (*Server_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *Server_GRPC) GetAddr() string
- func (x *Server_GRPC) GetNetwork() string
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration
- func (*Server_GRPC) ProtoMessage()
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message
- func (x *Server_GRPC) Reset()
- func (x *Server_GRPC) String() string
- type Server_HTTP
- func (*Server_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *Server_HTTP) GetAddr() string
- func (x *Server_HTTP) GetNetwork() string
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration
- func (*Server_HTTP) ProtoMessage()
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message
- func (x *Server_HTTP) Reset()
- func (x *Server_HTTP) String() string
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetExpr() string
- func (x *Task) GetName() string
- func (x *Task) GetRetry() int64
- func (x *Task) GetTimeout() int64
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type Tracer
- func (*Tracer) Descriptor() ([]byte, []int)deprecated
- func (x *Tracer) GetEnable() bool
- func (x *Tracer) GetOtlp() *Tracer_Otlp
- func (x *Tracer) GetRatio() float32
- func (x *Tracer) GetStdout() *Tracer_Stdout
- func (*Tracer) ProtoMessage()
- func (x *Tracer) ProtoReflect() protoreflect.Message
- func (x *Tracer) Reset()
- func (x *Tracer) String() string
- type Tracer_Otlp
- func (*Tracer_Otlp) Descriptor() ([]byte, []int)deprecated
- func (x *Tracer_Otlp) GetEndpoint() string
- func (x *Tracer_Otlp) GetInsecure() bool
- func (*Tracer_Otlp) ProtoMessage()
- func (x *Tracer_Otlp) ProtoReflect() protoreflect.Message
- func (x *Tracer_Otlp) Reset()
- func (x *Tracer_Otlp) String() string
- type Tracer_Stdout
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Server *Server `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"` Data *Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Tracer *Tracer `protobuf:"bytes,5,opt,name=tracer,proto3" json:"tracer,omitempty"` Task map[string]*Task `` /* 149-byte string literal not displayed */ Client *Client `protobuf:"bytes,7,opt,name=client,proto3" json:"client,omitempty"` Log *Log `protobuf:"bytes,8,opt,name=log,proto3" json:"log,omitempty"` // contains filtered or unexported fields }
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetVersion ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type Client ¶
type Client struct { Health bool `protobuf:"varint,1,opt,name=health,proto3" json:"health,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` Auth string `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*Client) Descriptor
deprecated
func (*Client) GetTimeout ¶ added in v1.1.0
func (x *Client) GetTimeout() *durationpb.Duration
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Redis *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetDatabase ¶
func (x *Data) GetDatabase() *Data_Database
func (*Data) GetRedis ¶
func (x *Data) GetRedis() *Data_Redis
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Data_Database ¶
type Data_Database struct { Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` Driver string `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Schema string `protobuf:"bytes,6,opt,name=schema,proto3" json:"schema,omitempty"` Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"` Tenants map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Data_Database) Descriptor
deprecated
func (*Data_Database) Descriptor() ([]byte, []int)
Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.
func (*Data_Database) GetDriver ¶
func (x *Data_Database) GetDriver() string
func (*Data_Database) GetDsn ¶
func (x *Data_Database) GetDsn() string
func (*Data_Database) GetEndpoint ¶ added in v1.1.0
func (x *Data_Database) GetEndpoint() string
func (*Data_Database) GetPassword ¶ added in v1.1.0
func (x *Data_Database) GetPassword() string
func (*Data_Database) GetQuery ¶ added in v1.1.0
func (x *Data_Database) GetQuery() string
func (*Data_Database) GetSchema ¶ added in v1.1.0
func (x *Data_Database) GetSchema() string
func (*Data_Database) GetTenants ¶ added in v1.0.3
func (x *Data_Database) GetTenants() map[string]string
func (*Data_Database) GetUsername ¶ added in v1.1.0
func (x *Data_Database) GetUsername() string
func (*Data_Database) ProtoMessage ¶
func (*Data_Database) ProtoMessage()
func (*Data_Database) ProtoReflect ¶
func (x *Data_Database) ProtoReflect() protoreflect.Message
func (*Data_Database) Reset ¶
func (x *Data_Database) Reset()
func (*Data_Database) String ¶
func (x *Data_Database) String() string
type Data_Redis ¶
type Data_Redis struct { Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` // contains filtered or unexported fields }
func (*Data_Redis) Descriptor
deprecated
func (*Data_Redis) Descriptor() ([]byte, []int)
Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.
func (*Data_Redis) GetDsn ¶
func (x *Data_Redis) GetDsn() string
func (*Data_Redis) ProtoMessage ¶
func (*Data_Redis) ProtoMessage()
func (*Data_Redis) ProtoReflect ¶
func (x *Data_Redis) ProtoReflect() protoreflect.Message
func (*Data_Redis) Reset ¶
func (x *Data_Redis) Reset()
func (*Data_Redis) String ¶
func (x *Data_Redis) String() string
type Log ¶ added in v1.1.1
type Log struct { Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` JSON bool `protobuf:"varint,2,opt,name=JSON,proto3" json:"JSON,omitempty"` ShowSQL bool `protobuf:"varint,3,opt,name=showSQL,proto3" json:"showSQL,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
added in
v1.1.1
func (*Log) GetShowSQL ¶ added in v1.1.1
func (*Log) ProtoMessage ¶ added in v1.1.1
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶ added in v1.1.1
func (x *Log) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct { Prod bool `protobuf:"varint,1,opt,name=prod,proto3" json:"prod,omitempty"` MachineId string `protobuf:"bytes,2,opt,name=machineId,proto3" json:"machineId,omitempty"` Http *Server_HTTP `protobuf:"bytes,3,opt,name=http,proto3" json:"http,omitempty"` Grpc *Server_GRPC `protobuf:"bytes,4,opt,name=grpc,proto3" json:"grpc,omitempty"` Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` Idempotent bool `protobuf:"varint,6,opt,name=idempotent,proto3" json:"idempotent,omitempty"` Validate bool `protobuf:"varint,7,opt,name=validate,proto3" json:"validate,omitempty"` Nocache bool `protobuf:"varint,8,opt,name=nocache,proto3" json:"nocache,omitempty"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_GRPC
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_HTTP
func (*Server) GetIdempotent ¶ added in v1.0.2
func (*Server) GetLanguage ¶ added in v1.0.1
func (*Server) GetMachineId ¶
func (*Server) GetNocache ¶ added in v1.1.0
func (*Server) GetValidate ¶ added in v1.0.2
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Server_GRPC ¶
type Server_GRPC struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Server_GRPC) Descriptor
deprecated
func (*Server_GRPC) Descriptor() ([]byte, []int)
Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
func (*Server_GRPC) GetAddr ¶
func (x *Server_GRPC) GetAddr() string
func (*Server_GRPC) GetNetwork ¶
func (x *Server_GRPC) GetNetwork() string
func (*Server_GRPC) GetTimeout ¶
func (x *Server_GRPC) GetTimeout() *durationpb.Duration
func (*Server_GRPC) ProtoMessage ¶
func (*Server_GRPC) ProtoMessage()
func (*Server_GRPC) ProtoReflect ¶
func (x *Server_GRPC) ProtoReflect() protoreflect.Message
func (*Server_GRPC) Reset ¶
func (x *Server_GRPC) Reset()
func (*Server_GRPC) String ¶
func (x *Server_GRPC) String() string
type Server_HTTP ¶
type Server_HTTP struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Server_HTTP) Descriptor
deprecated
func (*Server_HTTP) Descriptor() ([]byte, []int)
Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
func (*Server_HTTP) GetAddr ¶
func (x *Server_HTTP) GetAddr() string
func (*Server_HTTP) GetNetwork ¶
func (x *Server_HTTP) GetNetwork() string
func (*Server_HTTP) GetTimeout ¶
func (x *Server_HTTP) GetTimeout() *durationpb.Duration
func (*Server_HTTP) ProtoMessage ¶
func (*Server_HTTP) ProtoMessage()
func (*Server_HTTP) ProtoReflect ¶
func (x *Server_HTTP) ProtoReflect() protoreflect.Message
func (*Server_HTTP) Reset ¶
func (x *Server_HTTP) Reset()
func (*Server_HTTP) String ¶
func (x *Server_HTTP) String() string
type Task ¶
type Task struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Expr string `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` Retry int64 `protobuf:"varint,4,opt,name=retry,proto3" json:"retry,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetTimeout ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type Tracer ¶
type Tracer struct { Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` Ratio float32 `protobuf:"fixed32,2,opt,name=ratio,proto3" json:"ratio,omitempty"` Otlp *Tracer_Otlp `protobuf:"bytes,3,opt,name=otlp,proto3" json:"otlp,omitempty"` Stdout *Tracer_Stdout `protobuf:"bytes,4,opt,name=stdout,proto3" json:"stdout,omitempty"` // contains filtered or unexported fields }
func (*Tracer) Descriptor
deprecated
func (*Tracer) GetOtlp ¶
func (x *Tracer) GetOtlp() *Tracer_Otlp
func (*Tracer) GetStdout ¶
func (x *Tracer) GetStdout() *Tracer_Stdout
func (*Tracer) ProtoMessage ¶
func (*Tracer) ProtoMessage()
func (*Tracer) ProtoReflect ¶
func (x *Tracer) ProtoReflect() protoreflect.Message
type Tracer_Otlp ¶
type Tracer_Otlp struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Insecure bool `protobuf:"varint,2,opt,name=insecure,proto3" json:"insecure,omitempty"` // contains filtered or unexported fields }
func (*Tracer_Otlp) Descriptor
deprecated
func (*Tracer_Otlp) Descriptor() ([]byte, []int)
Deprecated: Use Tracer_Otlp.ProtoReflect.Descriptor instead.
func (*Tracer_Otlp) GetEndpoint ¶
func (x *Tracer_Otlp) GetEndpoint() string
func (*Tracer_Otlp) GetInsecure ¶
func (x *Tracer_Otlp) GetInsecure() bool
func (*Tracer_Otlp) ProtoMessage ¶
func (*Tracer_Otlp) ProtoMessage()
func (*Tracer_Otlp) ProtoReflect ¶
func (x *Tracer_Otlp) ProtoReflect() protoreflect.Message
func (*Tracer_Otlp) Reset ¶
func (x *Tracer_Otlp) Reset()
func (*Tracer_Otlp) String ¶
func (x *Tracer_Otlp) String() string
type Tracer_Stdout ¶
type Tracer_Stdout struct { PrettyPrint bool `protobuf:"varint,1,opt,name=prettyPrint,proto3" json:"prettyPrint,omitempty"` // contains filtered or unexported fields }
func (*Tracer_Stdout) Descriptor
deprecated
func (*Tracer_Stdout) Descriptor() ([]byte, []int)
Deprecated: Use Tracer_Stdout.ProtoReflect.Descriptor instead.
func (*Tracer_Stdout) GetPrettyPrint ¶
func (x *Tracer_Stdout) GetPrettyPrint() bool
func (*Tracer_Stdout) ProtoMessage ¶
func (*Tracer_Stdout) ProtoMessage()
func (*Tracer_Stdout) ProtoReflect ¶
func (x *Tracer_Stdout) ProtoReflect() protoreflect.Message
func (*Tracer_Stdout) Reset ¶
func (x *Tracer_Stdout) Reset()
func (*Tracer_Stdout) String ¶
func (x *Tracer_Stdout) String() string
Click to show internal directories.
Click to hide internal directories.