temporal

package
v1.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 39 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

Services is the list of all valid temporal services

Functions

func InterruptCh

func InterruptCh() <-chan interface{}

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is temporal server.

func NewServer

func NewServer(opts ...ServerOption) *Server

NewServer returns a new instance of server that serves one or many services.

func (*Server) Start

func (s *Server) Start() error

Start temporal server.

func (*Server) Stop

func (s *Server) Stop()

Stops the server.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

func ForServices

func ForServices(names []string) ServerOption

func InterruptOn

func InterruptOn(interruptCh <-chan interface{}) ServerOption

InterruptOn interrupts server on the signal from server. If channel is nil Start() will block forever.

func WithAuthorizer

func WithAuthorizer(authorizer authorization.Authorizer) ServerOption

Sets low level authorizer to allow/deny all API calls

func WithClaimMapper added in v1.4.0

func WithClaimMapper(claimMapper func(cfg *config.Config) authorization.ClaimMapper) ServerOption

Configures a role mapper for authorization

func WithConfig

func WithConfig(cfg *config.Config) ServerOption

func WithConfigLoader

func WithConfigLoader(configDir string, env string, zone string) ServerOption

func WithCustomMetricsReporter added in v1.4.0

func WithCustomMetricsReporter(reporter tally.BaseStatsReporter) ServerOption

Set custom tally metric reporter

func WithPersistenceServiceResolver added in v1.5.7

func WithPersistenceServiceResolver(r resolver.ServiceResolver) ServerOption

Set custom persistence service resolver which will convert service name or address value from config to another a....

func WithTLSConfigFactory

func WithTLSConfigFactory(tlsConfigProvider encryption.TLSConfigProvider) ServerOption

Overrides default provider of TLS configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL