Documentation
¶
Index ¶
- func ChorusHandlers(credsSvc objstore.CredsService, proxyClient rpc.Proxy, appInfo *dom.AppInfo) pb.ChorusServer
- func DiffHandlers(credsSvc objstore.CredsService, queueSvc tasks.QueueService, ...) pb.DiffServer
- func ErrorInterceptor() grpc.UnaryServerInterceptor
- func ErrorStreamInterceptor() grpc.StreamServerInterceptor
- func GRPCGateway(ctx context.Context, conf *Config, register RegisterHandlersFunc) (start func(context.Context) error, stop func(context.Context) error, err error)
- func NewGrpcServer(port int, register RegisterServicesFunc, tracer otel_trace.TracerProvider, ...) (start func(context.Context) error, stop func(context.Context) error, err error)
- func PolicyHandlers(credsSvc objstore.CredsService, clients objstore.Clients, ...) pb.PolicyServer
- func WebhookHandlers(credsSvc objstore.CredsService, policySvc policy.Service, ...) pb.WebhookServer
- type Config
- type RegisterHandlersFunc
- type RegisterServicesFunc
- type WebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChorusHandlers ¶ added in v0.7.0
func ChorusHandlers( credsSvc objstore.CredsService, proxyClient rpc.Proxy, appInfo *dom.AppInfo, ) pb.ChorusServer
func DiffHandlers ¶ added in v0.7.0
func DiffHandlers( credsSvc objstore.CredsService, queueSvc tasks.QueueService, checkSvc *handler.ConsistencyCheckSvc, ) pb.DiffServer
func ErrorInterceptor ¶
func ErrorInterceptor() grpc.UnaryServerInterceptor
func ErrorStreamInterceptor ¶
func ErrorStreamInterceptor() grpc.StreamServerInterceptor
func GRPCGateway ¶
func NewGrpcServer ¶
func NewGrpcServer(port int, register RegisterServicesFunc, tracer otel_trace.TracerProvider, logConf *log.Config, version dom.AppInfo) (start func(context.Context) error, stop func(context.Context) error, err error)
func PolicyHandlers ¶ added in v0.7.0
func PolicyHandlers( credsSvc objstore.CredsService, clients objstore.Clients, queueSvc tasks.QueueService, policySvc policy.Service, versionSvc meta.VersionService, objectListStateStore *store.MigrationObjectListStateStore, bucketListStateStore *store.MigrationBucketListStateStore, notificationSvc *notifications.Service, replicationStatusLocker *store.ReplicationStatusLocker, userLocker *store.UserLocker, webhookConf *WebhookConfig, ) pb.PolicyServer
func WebhookHandlers ¶ added in v0.7.2
func WebhookHandlers( credsSvc objstore.CredsService, policySvc policy.Service, swiftReplSvc replication.Service, s3ReplSvc replication.Service, ) pb.WebhookServer
Types ¶
type Config ¶
type Config struct {
Webhook WebhookConfig `yaml:"webhook"`
GrpcPort int `yaml:"grpcPort"`
HttpPort int `yaml:"httpPort"`
Enabled bool `yaml:"enabled"`
Secure bool `yaml:"secure"`
}
type RegisterHandlersFunc ¶
type RegisterServicesFunc ¶ added in v0.7.0
type WebhookConfig ¶ added in v0.7.2
type WebhookConfig struct {
BaseURL string `yaml:"baseUrl"`
GrpcPort int `yaml:"grpcPort"`
HttpPort int `yaml:"httpPort"`
Enabled bool `yaml:"enabled"`
}
func (*WebhookConfig) S3NotificationURL ¶ added in v0.7.2
func (c *WebhookConfig) S3NotificationURL(storage string) (string, error)
func (*WebhookConfig) SwiftWebhookURL ¶ added in v0.7.2
func (c *WebhookConfig) SwiftWebhookURL(storage string) (string, error)
func (*WebhookConfig) Validate ¶ added in v0.7.2
func (c *WebhookConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.