Documentation ¶
Overview ¶
* Copyright 2018 Yuji Ito <llamerada.jp@gmail.com> * * 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 2018 Yuji Ito <llamerada.jp@gmail.com> * * 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 ¶
- type Colonio
- func (impl *Colonio) Connect(url, token string) error
- func (impl *Colonio) DeleteKVSAll()
- func (impl *Colonio) Disconnect() error
- func (impl *Colonio) GetLastPosition() (float64, float64)
- func (impl *Colonio) GetLocalNid() string
- func (impl *Colonio) IsConnected() bool
- func (impl *Colonio) KvsGet(key string) (colonio.Value, error)
- func (impl *Colonio) KvsGetLocalData() colonio.KvsLocalData
- func (impl *Colonio) KvsSet(key string, val interface{}, opt uint32) error
- func (impl *Colonio) MessagingPost(dst, name string, val interface{}, opt uint32) (colonio.Value, error)
- func (impl *Colonio) MessagingSetHandler(name string, ...)
- func (impl *Colonio) MessagingUnsetHandler(name string)
- func (impl *Colonio) SetPosition(x, y float64) (float64, float64, error)
- func (impl *Colonio) SpreadPost(x, y, r float64, name string, message interface{}, opt uint32) error
- func (impl *Colonio) SpreadSetHandler(name string, handler func(*colonio.SpreadRequest))
- func (impl *Colonio) SpreadUnsetHandler(name string)
- type MessagingDriver
- type MessagingRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colonio ¶
type Colonio struct { PositionX float64 PositionY float64 // contains filtered or unexported fields }
func (*Colonio) DeleteKVSAll ¶
func (impl *Colonio) DeleteKVSAll()
func (*Colonio) Disconnect ¶
func (*Colonio) GetLastPosition ¶
func (*Colonio) GetLocalNid ¶
func (*Colonio) IsConnected ¶
func (*Colonio) KvsGetLocalData ¶
func (impl *Colonio) KvsGetLocalData() colonio.KvsLocalData
func (*Colonio) MessagingPost ¶
func (*Colonio) MessagingSetHandler ¶
func (impl *Colonio) MessagingSetHandler(name string, handler func(*colonio.MessagingRequest, colonio.MessagingResponseWriter))
func (*Colonio) MessagingUnsetHandler ¶
func (*Colonio) SetPosition ¶
func (*Colonio) SpreadPost ¶
func (*Colonio) SpreadSetHandler ¶
func (impl *Colonio) SpreadSetHandler(name string, handler func(*colonio.SpreadRequest))
func (*Colonio) SpreadUnsetHandler ¶
type MessagingDriver ¶
type MessagingDriver struct { Records []*MessagingRecord // contains filtered or unexported fields }
func NewMessagingDriverMock ¶
func NewMessagingDriverMock() *MessagingDriver
func (*MessagingDriver) PublishNode ¶
func (*MessagingDriver) ReconcileContainer ¶
func (md *MessagingDriver) ReconcileContainer(nid, podUuid string) error
func (*MessagingDriver) ResetRecord ¶
func (md *MessagingDriver) ResetRecord()
type MessagingRecord ¶
type MessagingRecord struct { DestNodeID string DestR float64 DestPosition core.Vector3 PublishNode *messaging.PublishNode ReconcileContainer *messaging.ReconcileContainer }