Пример #1
0
func (self *jsonWebsocketStruct) configure() {
	jsonClientTypeData := new(caprica.ClientTypeData)
	jsonClientTypeData.Converter = caprica.Converter{}

	notificationConverter := notifications.New(&jsonClientTypeData.Converter)
	jsonClientTypeData.NotificationConverter = notificationConverter.Convert

	self.caprica.RegisterClientTypeData(jsonWebsocketConnectionType, *jsonClientTypeData)
}
Пример #2
0
func (self *restServer) configure() {
	restClientTypeData := new(caprica.ClientTypeData)
	restClientTypeData.Converter = caprica.Converter{
		TypeIdAsBinary:         true,
		ValueAsBinary:          true,
		KeyElementsAsBinary:    true,
		HashAsBinary:           true,
		SubscriptionIdAsBinary: true,
		BlobAsBinary:           true,
	}

	self.caprica.RegisterClientTypeData(restClientType, *restClientTypeData)
}