mns

package module
v0.0.0-...-d7061da Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mns

worker: FBP

config

include "secret.conf"

components.mns.endpoint {

	access-key-id = ${aliyun.access-key-id}
	access-key-secret = ${aliyun.access-key-secret}
	endpoint = ${aliyun.endpoint}

	# listen queues, receive message and send to mailbox
	queues {
		todo-task-new {}
		todo-task-get {}
	}
}

secret.conf

aliyun {
	access-key-id = ""
	access-key-secret = ""
	endpoint = "https://xxx.mns.cn-beijing.aliyuncs.com/"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMNSComponent

func NewMNSComponent(alias string, opts ...component.Option) (comp component.Component, err error)

Types

type CacheMetadata

type CacheMetadata struct {
	Md5   string   `json:"md5"`
	Parts []string `json:"parts"`
}

type MNSComponent

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

func (*MNSComponent) Alias

func (p *MNSComponent) Alias() string

func (*MNSComponent) Document

func (p *MNSComponent) Document() doc.Document

func (*MNSComponent) Route

func (*MNSComponent) Start

func (p *MNSComponent) Start() error

func (*MNSComponent) Stop

func (p *MNSComponent) Stop() error

Jump to

Keyboard shortcuts

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