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: 0

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