Documentation ¶
Overview ¶
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
************************************************** Copyright 2016 https://github.com/AsynkronIT/protoactor-go
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ****************************************************
Index ¶
- func NewBroadcastGroup(routees ...*actor.PID) *actor.Props
- func NewBroadcastPool(size int) *actor.Props
- func NewConsistentHashGroup(routees ...*actor.PID) *actor.Props
- func NewConsistentHashPool(size int) *actor.Props
- func NewRandomGroup(routees ...*actor.PID) *actor.Props
- func NewRandomPool(size int) *actor.Props
- func NewRoundRobinGroup(routees ...*actor.PID) *actor.Props
- func NewRoundRobinPool(size int) *actor.Props
- type AddRoutee
- type AdjustPoolSize
- type BroadcastMessage
- type GetRoutees
- type GroupRouter
- type Hasher
- type Interface
- type ManagementMessage
- type PoolRouter
- type RemoveRoutee
- type Routees
- type RouterConfig
- type RouterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBroadcastPool ¶
func NewConsistentHashPool ¶
func NewRandomPool ¶
func NewRoundRobinPool ¶
Types ¶
type AddRoutee ¶
func (*AddRoutee) ManagementMessage ¶
func (*AddRoutee) ManagementMessage()
type AdjustPoolSize ¶
type AdjustPoolSize struct {
Change int32
}
func (*AdjustPoolSize) ManagementMessage ¶
func (*AdjustPoolSize) ManagementMessage()
type BroadcastMessage ¶
type BroadcastMessage struct {
Message interface{}
}
func (*BroadcastMessage) ManagementMessage ¶
func (*BroadcastMessage) ManagementMessage()
type GetRoutees ¶
type GetRoutees struct { }
func (*GetRoutees) ManagementMessage ¶
func (*GetRoutees) ManagementMessage()
type GroupRouter ¶
func (*GroupRouter) RouterType ¶
func (config *GroupRouter) RouterType() RouterType
type Interface ¶
type Interface interface { RouteMessage(message interface{}) SetRoutees(routees *actor.PIDSet) GetRoutees() *actor.PIDSet }
A type that satisfies router.Interface can be used as a router
type ManagementMessage ¶
type ManagementMessage interface {
ManagementMessage()
}
type PoolRouter ¶
type PoolRouter struct {
PoolSize int
}
func (*PoolRouter) RouterType ¶
func (config *PoolRouter) RouterType() RouterType
type RemoveRoutee ¶
func (*RemoveRoutee) ManagementMessage ¶
func (*RemoveRoutee) ManagementMessage()