Documentation ¶
Index ¶
- Variables
- func LoadStreamingServices(bApp *baseapp.BaseApp, appOpts serverTypes.AppOptions, ...) ([]baseapp.StreamingService, *sync.WaitGroup, error)
- func NewFileStreamingService(opts serverTypes.AppOptions, keys []types.StoreKey, ...) (baseapp.StreamingService, error)
- type ServiceConstructor
- type ServiceType
Constants ¶
This section is empty.
Variables ¶
var ServiceConstructorLookupTable = map[ServiceType]ServiceConstructor{ File: NewFileStreamingService, }
ServiceConstructorLookupTable is a mapping of streaming.ServiceTypes to streaming.ServiceConstructors
Functions ¶
func LoadStreamingServices ¶
func LoadStreamingServices(bApp *baseapp.BaseApp, appOpts serverTypes.AppOptions, appCodec codec.BinaryCodec, keys map[string]*types.KVStoreKey) ([]baseapp.StreamingService, *sync.WaitGroup, error)
LoadStreamingServices is a function for loading StreamingServices onto the BaseApp using the provided AppOptions, codec, and keys It returns the WaitGroup and quit channel used to synchronize with the streaming services and any error that occurs during the setup
func NewFileStreamingService ¶
func NewFileStreamingService(opts serverTypes.AppOptions, keys []types.StoreKey, marshaller codec.BinaryCodec) (baseapp.StreamingService, error)
NewFileStreamingService is the streaming.ServiceConstructor function for creating a FileStreamingService
Types ¶
type ServiceConstructor ¶
type ServiceConstructor func(opts serverTypes.AppOptions, keys []types.StoreKey, marshaller codec.BinaryCodec) (baseapp.StreamingService, error)
ServiceConstructor is used to construct a streaming service
func NewServiceConstructor ¶
func NewServiceConstructor(name string) (ServiceConstructor, error)
NewServiceConstructor returns the streaming.ServiceConstructor corresponding to the provided name
type ServiceType ¶
type ServiceType int
ServiceType enum for specifying the type of StreamingService
const ( Unknown ServiceType = iota File )
func ServiceTypeFromString ¶
func ServiceTypeFromString(name string) ServiceType
ServiceTypeFromString returns the streaming.ServiceType corresponding to the provided name
func (ServiceType) String ¶
func (sst ServiceType) String() string
String returns the string name of a streaming.ServiceType