Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultConsumerErrHandler(c *Consumer, err error)
- func DefaultErrHandler(nc *nats.Conn)
- type Conn
- func (c *Conn) AttachSchema(name string, stationName string) error
- func (c *Conn) Close()
- func (c *Conn) CreateConsumer(stationName, consumerName string, opts ...ConsumerOpt) (*Consumer, error)
- func (c *Conn) CreateProducer(stationName interface{}, name string, opts ...ProducerOpt) (*Producer, error)
- func (c *Conn) CreateSchema(name, schemaType, path string, options ...RequestOpt) error
- func (c *Conn) CreateStation(Name string, opts ...StationOpt) (*Station, error)
- func (c *Conn) DetachSchema(stationName string, options ...RequestOpt) error
- func (c *Conn) EnforceSchema(name string, stationName string, options ...RequestOpt) error
- func (c *Conn) FetchMessages(stationName string, consumerName string, opts ...FetchOpt) ([]*Msg, error)
- func (c *Conn) GetPartitionFromKey(key string, stationName string) (int, error)
- func (c *Conn) IsConnected() bool
- func (c *Conn) Produce(stationName interface{}, name string, message any, opts []ProducerOpt, ...) error
- func (c *Conn) ValidatePartitionNumber(partitionNumber int, stationName string) error
- type ConsumeHandler
- type Consumer
- func (c *Consumer) Consume(handlerFunc ConsumeHandler, opts ...ConsumingOpt) error
- func (c *Consumer) Destroy(options ...RequestOpt) error
- func (c *Consumer) Fetch(batchSize int, prefetch bool, opts ...ConsumingOpt) ([]*Msg, error)
- func (c *Consumer) SetContext(ctx context.Context)
- func (c *Consumer) StopConsume()
- type ConsumerErrHandler
- type ConsumerOpt
- func BatchMaxWaitTime(batchMaxWaitTime time.Duration) ConsumerOpt
- func BatchSize(batchSize int) ConsumerOpt
- func ConsumerErrorHandler(ceh ConsumerErrHandler) ConsumerOpt
- func ConsumerGenUniqueSuffix() ConsumerOptdeprecated
- func ConsumerGroup(cg string) ConsumerOpt
- func ConsumerTimeoutRetry(timeoutRetry int) ConsumerOpt
- func LastMessages(lastMessages int64) ConsumerOpt
- func MaxAckTime(maxAckTime time.Duration) ConsumerOpt
- func MaxMsgDeliveries(maxMsgDeliveries int) ConsumerOpt
- func PullInterval(pullInterval time.Duration) ConsumerOpt
- func StartConsumeFromSequence(startConsumeFromSequence uint64) ConsumerOpt
- type ConsumerOpts
- type ConsumersMap
- type ConsumingOpt
- type ConsumingOpts
- type DlsMessage
- type FetchOpt
- func FetchBatchMaxWaitTime(batchMaxWaitTime time.Duration) FetchOpt
- func FetchBatchSize(batchSize int) FetchOpt
- func FetchConsumerErrorHandler(ceh ConsumerErrHandler) FetchOpt
- func FetchConsumerGenUniqueSuffix() FetchOptdeprecated
- func FetchConsumerGroup(cg string) FetchOpt
- func FetchMaxAckTime(maxAckTime time.Duration) FetchOpt
- func FetchMaxMsgDeliveries(maxMsgDeliveries int) FetchOpt
- func FetchPartitionKey(partitionKey string) FetchOpt
- func FetchPartitionNumber(partitionNumber int) FetchOpt
- func FetchPrefetch() FetchOpt
- type FetchOpts
- type FunctionsUpdate
- type Headers
- type MessagePayloadDls
- type Msg
- func (m *Msg) Ack() error
- func (m *Msg) Data() []byte
- func (m *Msg) DataDeserialized() (any, error)
- func (m *Msg) DeadLetter(reason string) error
- func (m *Msg) Delay(duration time.Duration) error
- func (m *Msg) GetHeaders() map[string]string
- func (m *Msg) GetSequenceNumber() (uint64, error)
- func (m *Msg) GetTimeSent() (time.Time, error)
- func (m *Msg) Nack() error
- type NackedDlsMessage
- type Notification
- type Option
- func AccountId(accountId int) Option
- func ConnectionToken(connectionToken string) Option
- func MaxReconnect(maxReconnect int) Option
- func Password(password string) Option
- func Port(port int) Option
- func Reconnect(reconnect bool) Option
- func ReconnectInterval(reconnectInterval time.Duration) Option
- func Timeout(timeout time.Duration) Option
- func Tls(TlsCert string, TlsKey string, CaFile string) Option
- type Options
- type PMsgToAck
- type PartitionsUpdate
- type PrefetchedMsgs
- type ProduceOpt
- type ProduceOpts
- type Producer
- type ProducerDetails
- type ProducerOpt
- type ProducerOpts
- type ProducersMap
- type RequestOpt
- type RequestOpts
- type RetentionType
- type RoundRobinProducerConsumerGenerator
- type Schema
- type SchemaUpdate
- type SchemaUpdateInit
- type SchemaUpdateType
- type SchemaVersion
- type SdkClientsUpdate
- type Station
- type StationName
- type StationOpt
- func DlsStation(name string) StationOpt
- func IdempotencyWindow(idempotencyWindow time.Duration) StationOpt
- func Name(name string) StationOpt
- func PartitionsNumber(partitionsNumber int) StationOpt
- func Replicas(replicas int) StationOpt
- func RetentionTypeOpt(retentionType RetentionType) StationOpt
- func RetentionVal(retentionVal int) StationOpt
- func SchemaName(schemaName string) StationOpt
- func SendPoisonMsgToDls(sendPoisonMsgToDls bool) StationOpt
- func SendSchemaFailedMsgToDls(sendSchemaFailedMsgToDls bool) StationOpt
- func StationTimeoutRetry(timeoutRetry int) StationOpt
- func StorageTypeOpt(storageType StorageType) StationOpt
- func TieredStorageEnabled(tieredStorageEnabled bool) StationOpt
- type StationOpts
- type StorageType
- type TLSOpts
Constants ¶
const ( SEED = 31 JetstreamOperationTimeout = 30 )
Variables ¶
Functions ¶
func DefaultConsumerErrHandler ¶ added in v0.1.5
func DefaultErrHandler ¶ added in v1.1.2
func DefaultErrHandler(nc *nats.Conn)
Types ¶
type Conn ¶
type Conn struct { ConnId string // contains filtered or unexported fields }
Conn - holds the connection with memphis.
func (*Conn) AttachSchema ¶ added in v0.1.8
Depreciated - use EnforceSchema instead
func (*Conn) CreateConsumer ¶
func (c *Conn) CreateConsumer(stationName, consumerName string, opts ...ConsumerOpt) (*Consumer, error)
CreateConsumer - creates a consumer.
func (*Conn) CreateProducer ¶
func (c *Conn) CreateProducer(stationName interface{}, name string, opts ...ProducerOpt) (*Producer, error)
CreateProducer - creates a producer.
func (*Conn) CreateSchema ¶ added in v1.0.3
func (c *Conn) CreateSchema(name, schemaType, path string, options ...RequestOpt) error
CreateSchema - validates and uploads a new schema to the Broker. In case schema is already exist a new version will be created
func (*Conn) CreateStation ¶
func (c *Conn) CreateStation(Name string, opts ...StationOpt) (*Station, error)
func (*Conn) DetachSchema ¶ added in v0.1.8
func (c *Conn) DetachSchema(stationName string, options ...RequestOpt) error
func (*Conn) EnforceSchema ¶ added in v1.0.3
func (c *Conn) EnforceSchema(name string, stationName string, options ...RequestOpt) error
EnforceSchema - -Enforcing a schema on a chosen station
func (*Conn) FetchMessages ¶ added in v0.2.2
func (c *Conn) FetchMessages(stationName string, consumerName string, opts ...FetchOpt) ([]*Msg, error)
FetchMessages - Consume a batch of messages.
func (*Conn) GetPartitionFromKey ¶ added in v1.1.3
func (*Conn) IsConnected ¶ added in v0.1.0
IsConnected - check if connected to broker - returns boolean
func (*Conn) Produce ¶ added in v0.2.1
func (c *Conn) Produce(stationName interface{}, name string, message any, opts []ProducerOpt, pOpts []ProduceOpt) error
Produce - produce a message without creating a new producer, using connection only, in cases where extra performance is needed the recommended way is to create a producer first and produce messages by using the produce receiver function of it
type ConsumeHandler ¶ added in v0.1.0
ConsumeHandler - handler for consumed messages
type Consumer ¶
type Consumer struct { Name string ConsumerGroup string PullInterval time.Duration BatchSize int BatchMaxTimeToWait time.Duration MaxAckTime time.Duration MaxMsgDeliveries int StartConsumeFromSequence uint64 LastMessages int64 PartitionGenerator *RoundRobinProducerConsumerGenerator // contains filtered or unexported fields }
Consumer - memphis consumer object.
func (*Consumer) Consume ¶ added in v0.1.0
func (c *Consumer) Consume(handlerFunc ConsumeHandler, opts ...ConsumingOpt) error
Consumer.Consume - start consuming messages according to the interval configured in the consumer object. When a batch is consumed the handlerFunc will be called.
func (*Consumer) Destroy ¶ added in v0.0.6
func (c *Consumer) Destroy(options ...RequestOpt) error
Destroy - destroy this consumer.
func (*Consumer) SetContext ¶ added in v0.2.0
Consumer.SetContext - set a context that will be passed to each message handler function call
func (*Consumer) StopConsume ¶ added in v0.1.0
func (c *Consumer) StopConsume()
StopConsume - stops the continuous consume operation.
type ConsumerErrHandler ¶ added in v0.1.5
ConsumerErrHandler is used to process asynchronous errors.
type ConsumerOpt ¶
type ConsumerOpt func(*ConsumerOpts) error
ConsumerOpt - a function on the options for consumers.
func BatchMaxWaitTime ¶ added in v0.1.0
func BatchMaxWaitTime(batchMaxWaitTime time.Duration) ConsumerOpt
BatchMaxWaitTime - max time to wait between pulls, defauls is 5 seconds.
func ConsumerErrorHandler ¶ added in v0.1.5
func ConsumerErrorHandler(ceh ConsumerErrHandler) ConsumerOpt
ConsumerErrorHandler - handler for consumer errors.
func ConsumerGenUniqueSuffix
deprecated
added in
v0.1.5
func ConsumerGenUniqueSuffix() ConsumerOpt
Deprecated: will be stopped to be supported after November 1'st, 2023. ConsumerGenUniqueSuffix - whether to generate a unique suffix for this consumer.
func ConsumerGroup ¶
func ConsumerGroup(cg string) ConsumerOpt
ConsumerGroup - consumer group name, default is "".
func ConsumerTimeoutRetry ¶ added in v1.2.0
func ConsumerTimeoutRetry(timeoutRetry int) ConsumerOpt
ConsumerTimeoutRetry - number of retries for consumer timeout. the default value is 5
func LastMessages ¶ added in v0.1.9
func LastMessages(lastMessages int64) ConsumerOpt
func MaxAckTime ¶ added in v0.1.0
func MaxAckTime(maxAckTime time.Duration) ConsumerOpt
MaxAckTime - max time for ack a message, in case a message not acked within this time period memphis will resend it.
func MaxMsgDeliveries ¶
func MaxMsgDeliveries(maxMsgDeliveries int) ConsumerOpt
MaxMsgDeliveries - max number of message deliveries, by default is 2.
func PullInterval ¶ added in v0.1.0
func PullInterval(pullInterval time.Duration) ConsumerOpt
PullInterval - interval between pulls, default is 1 second.
func StartConsumeFromSequence ¶ added in v0.1.9
func StartConsumeFromSequence(startConsumeFromSequence uint64) ConsumerOpt
type ConsumerOpts ¶
type ConsumerOpts struct { Name string StationName string ConsumerGroup string PullInterval time.Duration BatchSize int BatchMaxTimeToWait time.Duration MaxAckTime time.Duration MaxMsgDeliveries int GenUniqueSuffix bool ErrHandler ConsumerErrHandler StartConsumeFromSequence uint64 LastMessages int64 TimeoutRetry int }
ConsumerOpts - configuration options for a consumer.
type ConsumersMap ¶ added in v0.2.2
type ConsumingOpt ¶ added in v1.1.3
type ConsumingOpt func(*ConsumingOpts) error
func ConsumerPartitionKey ¶ added in v1.1.3
func ConsumerPartitionKey(ConsumerPartitionKey string) ConsumingOpt
ConsumerPartitionKey - Partition key for the consumer to consume from
func ConsumerPartitionNumber ¶ added in v1.1.4
func ConsumerPartitionNumber(ConsumerPartitionNumber int) ConsumingOpt
ConsumerPartitionNumber - Partition number for the consumer to consume from
type ConsumingOpts ¶ added in v1.1.3
ConsumingOpts - configuration options for consuming messages
type DlsMessage ¶ added in v0.1.8
type DlsMessage struct { StationName string `json:"station_name"` Producer ProducerDetails `json:"producer"` Message MessagePayloadDls `json:"message"` ValidationError string `json:"validation_error"` }
type FetchOpt ¶ added in v0.2.2
FetchOpt - a function on the options fetch.
func FetchBatchMaxWaitTime ¶ added in v0.2.2
BatchMaxWaitTime - max time to wait between pulls, defauls is 5 seconds.
func FetchBatchSize ¶ added in v0.2.2
BatchSize - pull batch size.
func FetchConsumerErrorHandler ¶ added in v0.2.2
func FetchConsumerErrorHandler(ceh ConsumerErrHandler) FetchOpt
FetchConsumerErrorHandler - handler for consumer errors.
func FetchConsumerGenUniqueSuffix
deprecated
added in
v0.2.2
func FetchConsumerGenUniqueSuffix() FetchOpt
Deprecated: will be stopped to be supported after November 1'st, 2023. ConsumerGenUniqueSuffix - whether to generate a unique suffix for this consumer.
func FetchConsumerGroup ¶ added in v0.2.2
ConsumerGroup - consumer group name, default is "".
func FetchMaxAckTime ¶ added in v0.2.2
MaxAckTime - max time for ack a message, in case a message not acked within this time period memphis will resend it.
func FetchMaxMsgDeliveries ¶ added in v0.2.2
MaxMsgDeliveries - max number of message deliveries, by default is 2.
func FetchPartitionKey ¶ added in v1.1.3
PartitionKey - partition key to consume from.
func FetchPartitionNumber ¶ added in v1.3.0
PartitionNumber - partition number to consume from.
func FetchPrefetch ¶ added in v1.0.2
func FetchPrefetch() FetchOpt
FetchPrefetch - whether to prefetch next batch for consumption
type FetchOpts ¶ added in v0.2.2
type FetchOpts struct { ConsumerName string StationName string ConsumerGroup string BatchSize int BatchMaxTimeToWait time.Duration MaxAckTime time.Duration MaxMsgDeliveries int GenUniqueSuffix bool ErrHandler ConsumerErrHandler StartConsumeFromSequence uint64 LastMessages int64 Prefetch bool FetchPartitionKey string FetchPartitionNumber int }
FetchOpts - configuration options for fetch.
type FunctionsUpdate ¶ added in v1.2.0
type MessagePayloadDls ¶ added in v0.1.8
type Msg ¶ added in v0.0.7
type Msg struct {
// contains filtered or unexported fields
}
Msg - a received message, can be acked.
func (*Msg) DataDeserialized ¶ added in v1.1.4
Msg.DataDeserialized - get message's deserialized data.
func (*Msg) DeadLetter ¶ added in v1.3.1
Msg.DeadLetter - Sending the message to the dead-letter station (DLS). the broker won't resend the message again to the same consumers group and will place the message inside the dead-letter station (DLS) with the given reason. The message will still be available to other consumer groups
func (*Msg) GetHeaders ¶ added in v0.1.5
Msg.GetHeaders - get headers per message
func (*Msg) GetSequenceNumber ¶ added in v0.1.9
Msg.GetSequenceNumber - get message's sequence number
func (*Msg) GetTimeSent ¶ added in v1.3.2
Msg.GetTimeSent - get message's time sent
type NackedDlsMessage ¶ added in v1.3.1
type Notification ¶ added in v0.1.7
type Option ¶
Option is a function on the options for a connection.
func ConnectionToken ¶
ConnectionToken - string connection token.
func MaxReconnect ¶
MaxReconnect - the amount of reconnect attempts.
func ReconnectInterval ¶ added in v0.1.0
ReconnectInterval - interval in miliseconds between reconnect attempts.
type Options ¶
type Options struct { Host string Port int Username string AccountId int ConnectionToken string Reconnect bool MaxReconnect int // MaxReconnect is the maximum number of reconnection attempts. The default value is -1 which means reconnect indefinitely. ReconnectInterval time.Duration Timeout time.Duration TLSOpts TLSOpts Password string }
type PartitionsUpdate ¶ added in v1.1.0
type PartitionsUpdate struct {
PartitionsList []int `json:"partitions_list"`
}
type PrefetchedMsgs ¶ added in v1.0.2
type PrefetchedMsgs struct {
// contains filtered or unexported fields
}
type ProduceOpt ¶
type ProduceOpt func(*ProduceOpts) error
ProduceOpt - a function on the options for produce operations.
func AckWaitSec ¶
func AckWaitSec(ackWaitSec int) ProduceOpt
AckWaitSec - max time in seconds to wait for an ack from memphis.
func AsyncProduce ¶ added in v0.1.5
func AsyncProduce() ProduceOpt
AsyncProduce - produce operation won't wait for broker acknowledgement
func MsgHeaders ¶ added in v0.1.5
func MsgHeaders(hdrs Headers) ProduceOpt
MsgHeaders - set headers to a message
func MsgId ¶ added in v0.1.7
func MsgId(id string) ProduceOpt
MsgId - set an id for a message for idempotent producer
func ProducerPartitionKey ¶ added in v1.1.3
func ProducerPartitionKey(partitionKey string) ProduceOpt
ProducerPartitionKey - set a partition key for a message
func ProducerPartitionNumber ¶ added in v1.1.4
func ProducerPartitionNumber(partitionNumber int) ProduceOpt
ProducerPartitionNumber - set a specific partition number for a message
func SyncProduce ¶ added in v1.1.2
func SyncProduce() ProduceOpt
SyncProduce - produce operation will wait for broker acknowledgement
type ProduceOpts ¶
type ProduceOpts struct { Message any AckWaitSec int MsgHeaders Headers AsyncProduce bool ProducerPartitionKey string ProducerPartitionNumber int }
ProduceOpts - configuration options for produce operations.
type Producer ¶
type Producer struct { Name string PartitionGenerator *RoundRobinProducerConsumerGenerator // contains filtered or unexported fields }
Producer - memphis producer object.
func (*Producer) Destroy ¶ added in v0.0.6
func (p *Producer) Destroy(options ...RequestOpt) error
Destroy - destoy this producer.
type ProducerDetails ¶ added in v0.1.8
type ProducerOpt ¶ added in v0.1.5
type ProducerOpt func(*ProducerOpts) error
ProducerOpt - a function on the options for producer creation.
func ProducerGenUniqueSuffix
deprecated
added in
v0.1.5
func ProducerGenUniqueSuffix() ProducerOpt
Deprecated: will be stopped to be supported after November 1'st, 2023. ProducerGenUniqueSuffix - whether to generate a unique suffix for this producer.
func ProducerTimeoutRetry ¶ added in v1.2.0
func ProducerTimeoutRetry(timeoutRetry int) ProducerOpt
ProducerTimeoutRetry - set the number of retries for timeout requests
type ProducerOpts ¶ added in v0.1.5
ProducerOpts - configuration options for producer creation.
type ProducersMap ¶ added in v0.2.1
type RequestOpt ¶ added in v1.2.0
type RequestOpt func(*RequestOpts) error
RequestOpt - a function on the options request.
func TimeoutRetry ¶ added in v1.2.0
func TimeoutRetry(retries int) RequestOpt
TimeoutRetry - number of retries in case of timeout. default is 5.
type RequestOpts ¶ added in v1.2.0
type RequestOpts struct {
TimeoutRetries int
}
type RetentionType ¶
type RetentionType int
RetentionType - station's message retention type
const ( MaxMessageAgeSeconds RetentionType = iota Messages Bytes AckBased )
func (RetentionType) String ¶
func (r RetentionType) String() string
type RoundRobinProducerConsumerGenerator ¶ added in v1.1.0
type RoundRobinProducerConsumerGenerator struct { NumberOfPartitions int Partitions []int Current int // contains filtered or unexported fields }
func (*RoundRobinProducerConsumerGenerator) Next ¶ added in v1.1.0
func (rr *RoundRobinProducerConsumerGenerator) Next() int
type SchemaUpdate ¶ added in v0.1.5
type SchemaUpdate struct { UpdateType SchemaUpdateType Init SchemaUpdateInit `json:"init,omitempty"` }
type SchemaUpdateInit ¶ added in v0.1.5
type SchemaUpdateInit struct { SchemaName string `json:"schema_name"` ActiveVersion SchemaVersion `json:"active_version"` SchemaType string `json:"type"` }
type SchemaUpdateType ¶ added in v0.1.5
type SchemaUpdateType int
const ( SchemaUpdateTypeInit SchemaUpdateType = iota + 1 SchemaUpdateTypeDrop )
type SchemaVersion ¶ added in v0.1.5
type SdkClientsUpdate ¶ added in v0.2.2
type Station ¶
type Station struct { Name string RetentionType RetentionType RetentionValue int StorageType StorageType Replicas int IdempotencyWindow time.Duration SchemaName string DlsConfiguration dlsConfiguration TieredStorageEnabled bool PartitionsNumber int DlsStation string // contains filtered or unexported fields }
Station - memphis station object.
func (*Station) CreateConsumer ¶
func (s *Station) CreateConsumer(name string, opts ...ConsumerOpt) (*Consumer, error)
Station.CreateConsumer - creates a producer attached to this station.
func (*Station) CreateProducer ¶
func (s *Station) CreateProducer(name string, opts ...ProducerOpt) (*Producer, error)
Station.CreateProducer - creates a producer attached to this station.
func (*Station) Destroy ¶ added in v0.1.0
func (s *Station) Destroy(options ...RequestOpt) error
type StationName ¶
type StationName string
type StationOpt ¶
type StationOpt func(*StationOpts) error
StationOpt - a function on the options for a station.
func DlsStation ¶ added in v1.1.4
func DlsStation(name string) StationOpt
DlsStation - If selected DLS events will be sent to selected station as well
func IdempotencyWindow ¶ added in v0.1.7
func IdempotencyWindow(idempotencyWindow time.Duration) StationOpt
IdempotencyWindow - time frame in which idempotency track messages, default is 2 minutes. This feature is enabled only for messages contain Msg Id
func PartitionsNumber ¶ added in v1.1.0
func PartitionsNumber(partitionsNumber int) StationOpt
func Replicas ¶
func Replicas(replicas int) StationOpt
Replicas - number of replicas for the messages of the data, default is 1.
func RetentionTypeOpt ¶
func RetentionTypeOpt(retentionType RetentionType) StationOpt
RetentionTypeOpt - retention type, default is MaxMessageAgeSeconds.
func RetentionVal ¶
func RetentionVal(retentionVal int) StationOpt
RetentionVal - number which represents the retention based on the retentionType, default is 604800.
func SchemaName ¶ added in v0.1.8
func SchemaName(schemaName string) StationOpt
SchemaName - shcema's name to attach
func SendPoisonMsgToDls ¶ added in v0.1.8
func SendPoisonMsgToDls(sendPoisonMsgToDls bool) StationOpt
SendPoisonMsgToDls - send poison message to dls, default is true
func SendSchemaFailedMsgToDls ¶ added in v0.1.8
func SendSchemaFailedMsgToDls(sendSchemaFailedMsgToDls bool) StationOpt
SendSchemaFailedMsgToDls - send message to dls after schema validation fail, default is true
func StationTimeoutRetry ¶ added in v1.2.0
func StationTimeoutRetry(timeoutRetry int) StationOpt
TimeoutRetry - number of retries for timeout errors, default is 5
func StorageTypeOpt ¶
func StorageTypeOpt(storageType StorageType) StationOpt
StorageTypeOpt - persistance storage for messages of the station, default is storageTypes.FILE.
func TieredStorageEnabled ¶ added in v0.2.1
func TieredStorageEnabled(tieredStorageEnabled bool) StationOpt
TieredStorageEnabled - enable tiered storage, default is false
type StationOpts ¶
type StationOpts struct { Name string RetentionType RetentionType RetentionVal int StorageType StorageType Replicas int IdempotencyWindow time.Duration SchemaName string SendPoisonMsgToDls bool SendSchemaFailedMsgToDls bool TieredStorageEnabled bool PartitionsNumber int DlsStation string TimeoutRetry int }
StationsOpts - configuration options for a station.
func GetStationDefaultOptions ¶
func GetStationDefaultOptions() StationOpts
GetStationDefaultOptions - returns default configuration options for the station.
type StorageType ¶
type StorageType int
StorageType - station's message storage type
const ( Disk StorageType = iota Memory )
func (StorageType) String ¶
func (s StorageType) String() string