hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
708fc04af63ec1581a27cf8883b3babcc0255c0d | 5,920 | h | C | libMachO/MachO_ABI/string_table.h | darlinghq/MachO-Kit | ef5272fc3a6fe8b612df534ca1150f9733cd6c66 | [
"MIT"
] | 469 | 2015-02-12T07:06:28.000Z | 2022-03-17T12:51:53.000Z | libMachO/MachO_ABI/string_table.h | darlinghq/MachO-Kit | ef5272fc3a6fe8b612df534ca1150f9733cd6c66 | [
"MIT"
] | 22 | 2015-07-23T07:46:17.000Z | 2021-12-06T04:24:12.000Z | libMachO/MachO_ABI/string_table.h | darlinghq/MachO-Kit | ef5272fc3a6fe8b612df534ca1150f9733cd6c66 | [
"MIT"
] | 59 | 2015-02-12T07:06:30.000Z | 2022-03-29T16:22:42.000Z | //----------------------------------------------------------------------------//
//|
//| MachOKit - A Lightweight Mach-O Parsing Library
//! @file string_table.h
//!
//! @author D.V.
//! @copyright Copyright (c) 2014-2015 D.V. All rights reserved.
//|
//| Permission is hereby granted, free of charge, to any person obtaining a
//| copy of this software and associated documentation files (the "Software"),
//| to deal in the Software without restriction, including without limitation
//| the rights to use, copy, modify, merge, publish, distribute, sublicense,
//| and/or sell copies of the Software, and to permit persons to whom the
//| Software is furnished to do so, subject to the following conditions:
//|
//| The above copyright notice and this permission notice shall be included
//| in all copies or substantial portions of the Software.
//|
//| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
//| OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//| IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
//| CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
//| TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//| SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//----------------------------------------------------------------------------//
#ifndef _string_table_h
#define _string_table_h
//! @addtogroup MACH
//! @{
//!
//----------------------------------------------------------------------------//
#pragma mark - Types
//! @name Types
//----------------------------------------------------------------------------//
//◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦//
//! @internal
//
typedef struct mk_string_table_s {
__MK_RUNTIME_BASE
//! Link edit segment
mk_segment_ref link_edit;
//! The range of the string table in the target.
mk_vm_range_t target_range;
} mk_string_table_t;
//◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦//
//! The String Table type.
//
typedef union {
mk_type_ref type;
struct mk_string_table_s *string_table;
} mk_string_table_ref _mk_transparent_union;
//! The identifier for the String Table type.
_mk_export intptr_t mk_string_table_type;
//----------------------------------------------------------------------------//
#pragma mark - Working With The String Table
//! @name Working With The String Table
//----------------------------------------------------------------------------//
//! Initializes a String Table object.
//!
//! @param link_edit_segment
//! The LINKEDIT segment. Must remain valid for the lifetime of the
//! string table object.
//! @param load_command
//! The LC_SYMTAB load command that defines the string table.
//! @param string_table
//! A valid \ref mk_string_table_t structure.
_mk_export mk_error_t
mk_string_table_init(mk_segment_ref segment, mk_load_command_ref load_command, mk_string_table_t *string_table);
//! Initializes a String Table object with the specified Mach-O LC_SYMTAB
//! load command.
_mk_export mk_error_t
mk_string_table_init_with_mach_load_command(mk_segment_ref segment, struct symtab_command *lc, mk_string_table_t *string_table);
//! Initializes a String Table object.
_mk_export mk_error_t
mk_string_table_init_with_segment(mk_segment_ref segment, mk_string_table_t *string_table);
//! Cleans up any resources held by \a string_table. It is no longer safe to
//! use \a string_table after calling this function.
_mk_export void
mk_string_table_free(mk_string_table_ref string_table);
//! Returns the Mach-O image that the specified string table resides within.
_mk_export mk_macho_ref
mk_string_table_get_macho(mk_string_table_ref string_table);
//! Returns the LINKEDIT segment that the specified string table resides
//! within.
_mk_export mk_segment_ref
mk_string_table_get_segment(mk_string_table_ref string_table);
//! Returns range of memory (in the target address space) that the specified
//! string table occupies.
_mk_export mk_vm_range_t
mk_string_table_get_target_range(mk_string_table_ref string_table);
//----------------------------------------------------------------------------//
#pragma mark - Looking Up Strings
//! @name Looking Up Strings
//----------------------------------------------------------------------------//
//! Returns a pointer to the start of the string at \a offset in the specified
//! string table. The returned pointer should only be considered valid for the
//! lifetime of \a string_table.
_mk_export const char*
mk_string_table_get_string_at_offset(mk_string_table_ref string_table, uint32_t offset, mk_vm_address_t* target_address);
//! Copies the string at \a offset in the specified string table into \a buffer,
//! returning the number of bytes copied, not counting the terminating
//! null character. If \a buffer is \c NULL, returns the length of the string,
//! not including terminating \c NULL byte.
//!
//! @note
//! The string copied to \a buffer is *not* \c NULL terminated.
_mk_export size_t
mk_string_table_copy_string_at_offset(mk_string_table_ref string_table, uint32_t offset, char buffer[], size_t max_len);
//! Iterate over strings in the specified string table.
_mk_export const char*
mk_string_table_next_string(mk_string_table_ref string_table, const char* previous, uint32_t *offset, mk_vm_address_t* target_address);
#if __BLOCKS__
//! Iterate over the strings in the specified string table using a block.
_mk_export void
mk_string_table_enumerate_strings(mk_string_table_ref string_table, uint32_t offset,
void (^enumerator)(const char* string, uint32_t offset, mk_vm_address_t target_address));
#endif
//! @} MACH !//
#endif /* _string_table_h */
| 40.547945 | 135 | 0.655743 |
0a2aaae2a515baf6f28e3aa18dcd6951902646a1 | 1,354 | lua | Lua | ceryx/nginx/lualib/ceryx/certificates.lua | insilica/ceryx | 0bb997d36a56b2ecaa936611c0e460cb3b5b95cc | [
"MIT"
] | 791 | 2015-06-23T08:15:24.000Z | 2022-03-18T14:34:51.000Z | ceryx/nginx/lualib/ceryx/certificates.lua | insilica/ceryx | 0bb997d36a56b2ecaa936611c0e460cb3b5b95cc | [
"MIT"
] | 54 | 2015-06-23T08:11:25.000Z | 2021-09-04T02:40:34.000Z | ceryx/nginx/lualib/ceryx/certificates.lua | insilica/ceryx | 0bb997d36a56b2ecaa936611c0e460cb3b5b95cc | [
"MIT"
] | 169 | 2015-06-23T08:15:15.000Z | 2022-03-11T19:40:14.000Z | local redis = require "ceryx.redis"
local ssl = require "ngx.ssl"
local utils = require "ceryx.utils"
local exports = {}
function getRedisKeyForHost(host)
return redis.prefix .. ":settings:" .. host
end
function getCertificatesForHost(host)
ngx.log(ngx.DEBUG, "Looking for SSL sertificate for " .. host)
local redisClient = redis:client()
local certificates_redis_key = getRedisKeyForHost(host)
local certificate_path, certificate_err = redisClient:hget(certificates_redis_key, "certificate_path")
local key_path, key_err = redisClient:hget(certificates_redis_key, "key_path")
if certificate_path == ngx.null then
ngx.log(ngx.ERR, "Could not retrieve SSL certificate path for " .. host .. " from Redis: " .. (certificate_err or "N/A"))
return nil
end
if key_path == ngx.null then
ngx.log(ngx.ERR, "Could not retrieve SSL key path for " .. host .. " from Redis: " .. (key_err or "N/A"))
return nil
end
ngx.log(ngx.DEBUG, "Found SSL certificates for " .. host .. " in Redis.")
local certificate_data = utils.read_file(certificate_path)
local key_data = utils.read_file(key_path)
local data = {}
data["certificate"] = certificate_data
data["key"] = key_data
return data
end
exports.getCertificatesForHost = getCertificatesForHost
return exports
| 30.772727 | 129 | 0.697194 |
16b6ce151353addf4176aa0f7fbeb3f2f65a8776 | 1,770 | h | C | Filters/PlotPropertiesOverTime/pqLabelFormatter.h | ObjectivitySRC/PVGPlugins | 5e24150262af751159d719cc810620d1770f2872 | [
"BSD-2-Clause"
] | 4 | 2016-01-21T21:45:43.000Z | 2021-07-31T19:24:09.000Z | Filters/PlotPropertiesOverTime/pqLabelFormatter.h | ObjectivitySRC/PVGPlugins | 5e24150262af751159d719cc810620d1770f2872 | [
"BSD-2-Clause"
] | null | null | null | Filters/PlotPropertiesOverTime/pqLabelFormatter.h | ObjectivitySRC/PVGPlugins | 5e24150262af751159d719cc810620d1770f2872 | [
"BSD-2-Clause"
] | 6 | 2015-08-31T06:21:03.000Z | 2021-07-31T19:24:10.000Z | /*
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView license version 1.2.
See License_v1.2.txt for the full ParaView license.
A copy of this license can be obtained by contacting
Kitware Inc.
28 Corporate Drive
Clifton Park, NY 12065
USA
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*=========================================================================
MIRARCO MINING INNOVATION
Author: Nehme Bilal (nehmebilal@gmail.com)
===========================================================================*/
#ifndef __pqLabelFormatter_h
#define __pqLabelFormatter_h
#include <QObject>
#include "pqChartValueFormatter.h"
class pqChartValue;
class QString;
class pqLabelFormatter : public pqChartValueFormatter
{
Q_OBJECT
public:
virtual ~pqLabelFormatter(){}
pqLabelFormatter(QObject* parent=0);
/// Formate the value to formatted_value.
virtual QString format(const pqChartValue& value,
int precision, pqChartValue::NotationType type) const;
protected:
};
#endif | 30.517241 | 77 | 0.714689 |
d3d4136a34692a080503dfde14d7c7266ed46860 | 539 | swift | Swift | Frameworks/InAppServices/Sources/Features/NetworkMocking/MixboxUrlProtocol/Dependencies/FoundationNetworkModelsBridgingFactory/FoundationNetworkModelsBridgingFactory.swift | Chupik/Mixbox | 00284542b42125b101ce923c35e93b3ba9f08ff6 | [
"MIT"
] | 121 | 2018-08-06T19:14:05.000Z | 2022-03-29T05:10:57.000Z | Frameworks/InAppServices/Sources/Features/NetworkMocking/MixboxUrlProtocol/Dependencies/FoundationNetworkModelsBridgingFactory/FoundationNetworkModelsBridgingFactory.swift | Chupik/Mixbox | 00284542b42125b101ce923c35e93b3ba9f08ff6 | [
"MIT"
] | 14 | 2018-07-27T17:13:09.000Z | 2022-03-30T06:37:33.000Z | Frameworks/InAppServices/Sources/Features/NetworkMocking/MixboxUrlProtocol/Dependencies/FoundationNetworkModelsBridgingFactory/FoundationNetworkModelsBridgingFactory.swift | Chupik/Mixbox | 00284542b42125b101ce923c35e93b3ba9f08ff6 | [
"MIT"
] | 23 | 2018-08-16T18:11:50.000Z | 2022-03-29T10:46:44.000Z | #if MIXBOX_ENABLE_IN_APP_SERVICES
public protocol FoundationNetworkModelsBridgingFactory: AnyObject {
var urlRequestBridging: UrlRequestBridging { get }
var urlRequestCachePolicyBridging: UrlRequestCachePolicyBridging { get }
var urlRequestNetworkServiceTypeBridging: UrlRequestNetworkServiceTypeBridging { get }
var urlResponseBridging: UrlResponseBridging { get }
var urlCacheStoragePolicyBridging: UrlCacheStoragePolicyBridging { get }
var cachedUrlResponseBridging: CachedUrlResponseBridging { get }
}
#endif
| 41.461538 | 90 | 0.825603 |
275677f6b542fb6058cb560769158bab952cb5d1 | 491 | kt | Kotlin | algorithms/src/main/kotlin/com/kotlinground/algorithms/sorting/mergeintervals/mergeintervals.kt | BrianLusina/KotlinGround | 8c6dd7ab84714ccb10859beee962a6e574fa9de7 | [
"MIT"
] | 1 | 2018-12-14T09:48:38.000Z | 2018-12-14T09:48:38.000Z | algorithms/src/main/kotlin/com/kotlinground/algorithms/sorting/mergeintervals/mergeintervals.kt | BrianLusina/KotlinGround | 8c6dd7ab84714ccb10859beee962a6e574fa9de7 | [
"MIT"
] | null | null | null | algorithms/src/main/kotlin/com/kotlinground/algorithms/sorting/mergeintervals/mergeintervals.kt | BrianLusina/KotlinGround | 8c6dd7ab84714ccb10859beee962a6e574fa9de7 | [
"MIT"
] | null | null | null | package com.kotlinground.algorithms.sorting.mergeintervals
import kotlin.math.max
fun mergeintervals(intervals: Array<IntArray>): Array<IntArray> {
intervals.sortBy { it[0] }
val merged = arrayListOf<IntArray>()
for (interval in intervals) {
if (merged.size == 0 || merged.last()[1] < interval[0]) {
merged.add(interval)
} else {
merged.last()[1] = max(merged.last()[1], interval[1])
}
}
return merged.toTypedArray()
}
| 25.842105 | 65 | 0.619145 |
14d5e81602902fdf336cb1dfb4ca3aba70626d62 | 11,349 | asm | Assembly | libtool/src/gmp-6.1.2/mpn/ia64/mode1o.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 1,602 | 2015-01-06T11:26:31.000Z | 2022-03-30T06:17:21.000Z | libtool/src/gmp-6.1.2/mpn/ia64/mode1o.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 11,789 | 2015-01-05T04:50:15.000Z | 2022-03-31T23:39:19.000Z | libtool/src/gmp-6.1.2/mpn/ia64/mode1o.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 498 | 2015-01-08T18:58:18.000Z | 2022-03-20T15:37:45.000Z | dnl Itanium-2 mpn_modexact_1c_odd -- mpn by 1 exact remainder.
dnl Contributed to the GNU project by Kevin Ryde.
dnl Copyright 2003-2005 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C Itanium: 15
C Itanium 2: 8
dnl Usage: ABI32(`code')
dnl
dnl Emit the given code only under HAVE_ABI_32.
dnl
define(ABI32,
m4_assert_onearg()
`ifdef(`HAVE_ABI_32',`$1')')
C mp_limb_t mpn_modexact_1c_odd (mp_srcptr src, mp_size_t size,
C mp_limb_t divisor, mp_limb_t carry);
C
C The modexact algorithm is usually conceived as a dependent chain
C
C l = src[i] - c
C q = low(l * inverse)
C c = high(q*divisor) + (src[i]<c)
C
C but we can work the src[i]-c into an xma by calculating si=src[i]*inverse
C separately (off the dependent chain) and using
C
C q = low(c * inverse + si)
C c = high(q*divisor + c)
C
C This means the dependent chain is simply xma.l followed by xma.hu, for a
C total 8 cycles/limb on itanium-2.
C
C The reason xma.hu works for the new c is that the low of q*divisor is
C src[i]-c (being the whole purpose of the q generated, and it can be
C verified algebraically). If there was an underflow from src[i]-c, then
C there will be an overflow from (src-c)+c, thereby adding 1 to the new c
C the same as the borrow bit (src[i]<c) gives in the first style shown.
C
C Incidentally, fcmp is not an option for treating src[i]-c, since it
C apparently traps to the kernel for unnormalized operands like those used
C and generated by ldf8 and xma. On one GNU/Linux system it took about 1200
C cycles.
C
C
C First Limb:
C
C The first limb uses q = (src[0]-c) * inverse shown in the first style.
C This lets us get the first q as soon as the inverse is ready, without
C going through si=s*inverse. Basically at the start we have c and can use
C it while waiting for the inverse, whereas for the second and subsequent
C limbs it's the other way around, ie. we have the inverse and are waiting
C for c.
C
C At .Lentry the first two instructions in the loop have been done already.
C The load of f11=src[1] at the start (predicated on size>=2), and the
C calculation of q by the initial different scheme.
C
C
C Entry Sequence:
C
C In the entry sequence, the critical path is the calculation of the
C inverse, so this is begun first and optimized. Apart from that, ar.lc is
C established nice and early so the br.cloop's should predict perfectly.
C And the load for the low limbs src[0] and src[1] can be initiated long
C ahead of where they're needed.
C
C
C Inverse Calculation:
C
C The initial 8-bit inverse is calculated using a table lookup. If it hits
C L1 (which is likely if we're called several times) then it should take a
C total 4 cycles, otherwise hopefully L2 for 9 cycles. This is considered
C the best approach, on balance. It could be done bitwise, but that would
C probably be about 14 cycles (2 per bit beyond the first couple). Or it
C could be taken from 4 bits to 8 with xmpy doubling as used beyond 8 bits,
C but that would be about 11 cycles.
C
C The table is not the same as binvert_limb_table, instead it's 256 bytes,
C designed to be indexed by the low byte of the divisor. The divisor is
C always odd, so the relevant data is every second byte in the table. The
C padding lets us use zxt1 instead of extr.u, the latter would cost an extra
C cycle because it must go down I0, and we're using the first I0 slot to get
C ip. The extra 128 bytes of padding should be insignificant compared to
C typical ia64 code bloat.
C
C Having the table in .text allows us to use IP-relative addressing,
C avoiding a fetch from ltoff. .rodata is apparently not suitable for use
C IP-relative, it gets a linker relocation overflow on GNU/Linux.
C
C
C Load Scheduling:
C
C In the main loop, the data loads are scheduled for an L2 hit, which means
C 6 cycles for the data ready to use. In fact we end up 7 cycles ahead. In
C any case that scheduling is achieved simply by doing the load (and xmpy.l
C for "si") in the immediately preceding iteration.
C
C The main loop requires size >= 2, and we handle size==1 by an initial
C br.cloop to enter the loop only if size>1. Since ar.lc is established
C early, this should predict perfectly.
C
C
C Not done:
C
C Consideration was given to using a plain "(src[0]-c) % divisor" for
C size==1, but cycle counting suggests about 50 for the sort of approach
C taken by gcc __umodsi3, versus about 47 for the modexact. (Both assuming
C L1 hits for their respective fetching.)
C
C Consideration was given to a test for high<divisor and replacing the last
C loop iteration with instead c-=src[size-1] followed by c+=d if underflow.
C Branching on high<divisor wouldn't be good since a mispredict would cost
C more than the loop iteration saved, and the condition is of course data
C dependent. So the theory would be to shorten the loop count if
C high<divisor, and predicate extra operations at the end. That would mean
C a gain of 6 when high<divisor, or a cost of 2 if not.
C
C Whether such a tradeoff is a win on average depends on assumptions about
C how many bits in the high and the divisor. If both are uniformly
C distributed then high<divisor about 50% of the time. But smallish
C divisors (less chance of high<divisor) might be more likely from
C applications (mpz_divisible_ui, mpz_gcd_ui, etc). Though biggish divisors
C would be normal internally from say mpn/generic/perfsqr.c. On balance,
C for the moment, it's felt the gain is not really enough to be worth the
C trouble.
C
C
C Enhancement:
C
C Process two source limbs per iteration using a two-limb inverse and a
C sequence like
C
C ql = low (c * il + sil) quotient low limb
C qlc = high(c * il + sil)
C qh1 = low (c * ih + sih) quotient high, partial
C
C cl = high (ql * d + c) carry out of low
C qh = low (qlc * 1 + qh1) quotient high limb
C
C new c = high (qh * d + cl) carry out of high
C
C This would be 13 cycles/iteration, giving 6.5 cycles/limb. The two limb
C s*inverse as sih:sil = sh:sl * ih:il would be calculated off the dependent
C chain with 4 multiplies. The bigger inverse would take extra time to
C calculate, but a one limb iteration to handle an odd size could be done as
C soon as 64-bits of inverse were ready.
C
C Perhaps this could even extend to a 3 limb inverse, which might promise 17
C or 18 cycles for 3 limbs, giving 5.66 or 6.0 cycles/limb.
C
ASM_START()
.explicit
.text
.align 32
.Ltable:
data1 0,0x01, 0,0xAB, 0,0xCD, 0,0xB7, 0,0x39, 0,0xA3, 0,0xC5, 0,0xEF
data1 0,0xF1, 0,0x1B, 0,0x3D, 0,0xA7, 0,0x29, 0,0x13, 0,0x35, 0,0xDF
data1 0,0xE1, 0,0x8B, 0,0xAD, 0,0x97, 0,0x19, 0,0x83, 0,0xA5, 0,0xCF
data1 0,0xD1, 0,0xFB, 0,0x1D, 0,0x87, 0,0x09, 0,0xF3, 0,0x15, 0,0xBF
data1 0,0xC1, 0,0x6B, 0,0x8D, 0,0x77, 0,0xF9, 0,0x63, 0,0x85, 0,0xAF
data1 0,0xB1, 0,0xDB, 0,0xFD, 0,0x67, 0,0xE9, 0,0xD3, 0,0xF5, 0,0x9F
data1 0,0xA1, 0,0x4B, 0,0x6D, 0,0x57, 0,0xD9, 0,0x43, 0,0x65, 0,0x8F
data1 0,0x91, 0,0xBB, 0,0xDD, 0,0x47, 0,0xC9, 0,0xB3, 0,0xD5, 0,0x7F
data1 0,0x81, 0,0x2B, 0,0x4D, 0,0x37, 0,0xB9, 0,0x23, 0,0x45, 0,0x6F
data1 0,0x71, 0,0x9B, 0,0xBD, 0,0x27, 0,0xA9, 0,0x93, 0,0xB5, 0,0x5F
data1 0,0x61, 0,0x0B, 0,0x2D, 0,0x17, 0,0x99, 0,0x03, 0,0x25, 0,0x4F
data1 0,0x51, 0,0x7B, 0,0x9D, 0,0x07, 0,0x89, 0,0x73, 0,0x95, 0,0x3F
data1 0,0x41, 0,0xEB, 0,0x0D, 0,0xF7, 0,0x79, 0,0xE3, 0,0x05, 0,0x2F
data1 0,0x31, 0,0x5B, 0,0x7D, 0,0xE7, 0,0x69, 0,0x53, 0,0x75, 0,0x1F
data1 0,0x21, 0,0xCB, 0,0xED, 0,0xD7, 0,0x59, 0,0xC3, 0,0xE5, 0,0x0F
data1 0,0x11, 0,0x3B, 0,0x5D, 0,0xC7, 0,0x49, 0,0x33, 0,0x55, 0,0xFF
PROLOGUE(mpn_modexact_1c_odd)
C r32 src
C r33 size
C r34 divisor
C r35 carry
.prologue
.Lhere:
{ .mmi; add r33 = -1, r33 C M0 size-1
mov r14 = 2 C M1 2
mov r15 = ip C I0 .Lhere
}{.mmi; setf.sig f6 = r34 C M2 divisor
setf.sig f9 = r35 C M3 carry
zxt1 r3 = r34 C I1 divisor low byte
} ;;
{ .mmi; add r3 = .Ltable-.Lhere, r3 C M0 table offset ip and index
sub r16 = 0, r34 C M1 -divisor
.save ar.lc, r2
mov r2 = ar.lc C I0
}{.mmi; .body
setf.sig f13 = r14 C M2 2 in significand
mov r17 = -1 C M3 -1
ABI32(` zxt4 r33 = r33') C I1 size extend
} ;;
{ .mmi; add r3 = r3, r15 C M0 table entry address
ABI32(` addp4 r32 = 0, r32') C M1 src extend
mov ar.lc = r33 C I0 size-1 loop count
}{.mmi; setf.sig f12 = r16 C M2 -divisor
setf.sig f8 = r17 C M3 -1
} ;;
{ .mmi; ld1 r3 = [r3] C M0 inverse, 8 bits
ldf8 f10 = [r32], 8 C M1 src[0]
cmp.ne p6,p0 = 0, r33 C I0 test size!=1
} ;;
C Wait for table load.
C Hope for an L1 hit of 1 cycles to ALU, but could be more.
setf.sig f7 = r3 C M2 inverse, 8 bits
(p6) ldf8 f11 = [r32], 8 C M1 src[1], if size!=1
;;
C 5 cycles
C f6 divisor
C f7 inverse, being calculated
C f8 -1, will be -inverse
C f9 carry
C f10 src[0]
C f11 src[1]
C f12 -divisor
C f13 2
C f14 scratch
xmpy.l f14 = f13, f7 C 2*i
xmpy.l f7 = f7, f7 C i*i
;;
xma.l f7 = f7, f12, f14 C i*i*-d + 2*i, inverse 16 bits
;;
xmpy.l f14 = f13, f7 C 2*i
xmpy.l f7 = f7, f7 C i*i
;;
xma.l f7 = f7, f12, f14 C i*i*-d + 2*i, inverse 32 bits
;;
xmpy.l f14 = f13, f7 C 2*i
xmpy.l f7 = f7, f7 C i*i
;;
xma.l f7 = f7, f12, f14 C i*i*-d + 2*i, inverse 64 bits
xma.l f10 = f9, f8, f10 C sc = c * -1 + src[0]
;;
ASSERT(p6, `
xmpy.l f15 = f6, f7 ;; C divisor*inverse
getf.sig r31 = f15 ;;
cmp.eq p6,p0 = 1, r31 C should == 1
')
xmpy.l f10 = f10, f7 C q = sc * inverse
xmpy.l f8 = f7, f8 C -inverse = inverse * -1
br.cloop.sptk.few.clr .Lentry C main loop, if size > 1
;;
C size==1, finish up now
xma.hu f9 = f10, f6, f9 C c = high(q * divisor + c)
mov ar.lc = r2 C I0
;;
getf.sig r8 = f9 C M2 return c
br.ret.sptk.many b0
.Ltop:
C r2 saved ar.lc
C f6 divisor
C f7 inverse
C f8 -inverse
C f9 carry
C f10 src[i] * inverse
C f11 scratch src[i+1]
add r16 = 160, r32
ldf8 f11 = [r32], 8 C src[i+1]
;;
C 2 cycles
lfetch [r16]
xma.l f10 = f9, f8, f10 C q = c * -inverse + si
;;
C 3 cycles
.Lentry:
xma.hu f9 = f10, f6, f9 C c = high(q * divisor + c)
xmpy.l f10 = f11, f7 C si = src[i] * inverse
br.cloop.sptk.few.clr .Ltop
;;
xma.l f10 = f9, f8, f10 C q = c * -inverse + si
mov ar.lc = r2 C I0
;;
xma.hu f9 = f10, f6, f9 C c = high(q * divisor + c)
;;
getf.sig r8 = f9 C M2 return c
br.ret.sptk.many b0
EPILOGUE()
| 33.087464 | 79 | 0.698388 |
70d282374b92c2ef8c602a6934d71fb2f49c0e76 | 291 | h | C | src/ofxPDSPTools.h | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | 12 | 2019-09-17T15:43:50.000Z | 2021-07-20T09:46:44.000Z | src/ofxPDSPTools.h | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | null | null | null | src/ofxPDSPTools.h | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | null | null | null | #pragma once
// PDSP components
#include "VoiceElement.h"
#include "VoiceBase.h"
#include "SynthBase.h"
// tools
#include "PatchFilesStore.h"
#include "PatchParams.h"
// ui
#include "ofxImGuiPatchParamsUI.h"
#include "ofxImGuiLoadSavePatchs.h"
#include "ofxImGuiMIDIDevicesSelector.h"
| 15.315789 | 40 | 0.75945 |
332ca6164e5d6ccaf3d86265c927173981639004 | 4,005 | py | Python | src/embedding/triple2vec.py | MengtingWan/grocery | d9401418915a481dcd4be1f0be2cad238e8cc00e | [
"Apache-2.0"
] | 46 | 2019-01-24T19:48:19.000Z | 2022-03-22T22:16:55.000Z | src/embedding/triple2vec.py | MengtingWan/grocery | d9401418915a481dcd4be1f0be2cad238e8cc00e | [
"Apache-2.0"
] | 2 | 2019-11-05T19:55:57.000Z | 2021-04-01T12:15:13.000Z | src/embedding/triple2vec.py | MengtingWan/grocery | d9401418915a481dcd4be1f0be2cad238e8cc00e | [
"Apache-2.0"
] | 17 | 2019-03-30T02:45:59.000Z | 2021-12-30T00:56:02.000Z | import tensorflow as tf
from embedding.learner import Model
from embedding.sampler import Sampler
import sys
class triple2vec(Model):
def __init__(self, DATA_NAME, HIDDEN_DIM, LEARNING_RATE, BATCH_SIZE, N_NEG, MAX_EPOCH=500, N_SAMPLE_PER_EPOCH=None):
super().__init__('triple2vec', DATA_NAME, HIDDEN_DIM, LEARNING_RATE, BATCH_SIZE, N_NEG, MAX_EPOCH, N_SAMPLE_PER_EPOCH)
def assign(self, dataTrain, n_user, n_item, N_SAMPLE, dump=True):
mySampler = Sampler(dataTrain, self.DATA_NAME)
trainSamples = mySampler.sample_triples(N_SAMPLE, dump=dump)
super().assign_data(trainSamples, n_user, n_item)
def assign_from_file(self, n_user, n_item):
mySampler = Sampler(None, self.DATA_NAME)
trainSamples = mySampler.load_triples_from_file()
super().assign_data(trainSamples, n_user, n_item)
def model_constructor(self, opt='sgd'):
n_user = self.n_user
n_item = self.n_item
HIDDEN_DIM = self.HIDDEN_DIM
LEARNING_RATE = self.LEARNING_RATE
N_NEG = self.N_NEG
u = tf.placeholder(tf.int32, [None])
i = tf.placeholder(tf.int32, [None])
j = tf.placeholder(tf.int32, [None])
user_emb = tf.get_variable("user_emb", [n_user, HIDDEN_DIM],
initializer=tf.random_uniform_initializer(-0.01, 0.01))
item_emb1 = tf.get_variable("item_emb1", [n_item, HIDDEN_DIM],
initializer=tf.random_uniform_initializer(-0.01, 0.01))
item_emb2 = tf.get_variable("item_emb2", [n_item, HIDDEN_DIM],
initializer=tf.random_uniform_initializer(-0.01, 0.01))
b_item = tf.get_variable("item_bias", [n_item, 1],
initializer=tf.constant_initializer(0))
b_user = tf.get_variable("user_bias", [n_user, 1],
initializer=tf.constant_initializer(0))
i_emb = tf.nn.embedding_lookup(item_emb1, i)
j_emb = tf.nn.embedding_lookup(item_emb2, j)
u_emb = tf.nn.embedding_lookup(user_emb, u)
input_emb_i = j_emb + u_emb
loss_i = tf.reduce_mean(tf.nn.nce_loss(weights=item_emb1, biases=b_item[:,0],
labels=tf.reshape(i, (tf.shape(i)[0], 1)), inputs=input_emb_i,
num_sampled=N_NEG, num_classes=n_item))
input_emb_j = i_emb + u_emb
loss_j = tf.reduce_mean(tf.nn.nce_loss(weights=item_emb2, biases=b_item[:,0],
labels=tf.reshape(j, (tf.shape(j)[0], 1)), inputs=input_emb_j,
num_sampled=N_NEG, num_classes=n_item))
input_emb_u = i_emb + j_emb
loss_u = tf.reduce_mean(tf.nn.nce_loss(weights=user_emb, biases=b_user[:,0],
labels=tf.reshape(u, (tf.shape(u)[0], 1)), inputs=input_emb_u,
num_sampled=N_NEG, num_classes=n_user))
trainloss = tf.reduce_mean([loss_i, loss_j, loss_u])
if opt == 'sgd':
myOpt = tf.train.GradientDescentOptimizer(LEARNING_RATE)
elif opt == 'adaGrad':
myOpt = tf.train.AdagradOptimizer(LEARNING_RATE)
elif opt == 'adam':
myOpt = tf.train.AdamOptimizer(LEARNING_RATE)
elif opt == 'lazyAdam':
myOpt = tf.contrib.opt.LazyAdamOptimizer(LEARNING_RATE)
elif opt == 'momentum':
myOpt = tf.train.MomentumOptimizer(LEARNING_RATE, 0.9)
else:
print('optimizer is not recognized, use SGD instead.')
sys.stdout.flush()
myOpt = tf.train.GradientDescentOptimizer(LEARNING_RATE)
optimizer = myOpt.minimize(trainloss)
paramDict = {'item_emb1': item_emb1, 'item_emb2': item_emb2, 'user_emb': user_emb, 'item_bias': b_item, 'user_bias': b_user}
return [u, i, j], [trainloss], [optimizer], paramDict
| 48.253012 | 132 | 0.604494 |
fd8a335df70e2561634852e3e6f8e8dc4948abd7 | 937 | c | C | selector.c | xioperez01/printf | d64864f82892be8c4e93deff2dda90eada86b4cd | [
"MIT"
] | 2 | 2020-07-18T03:42:58.000Z | 2020-07-21T14:54:16.000Z | selector.c | AlisonQuinter17/printf | d64864f82892be8c4e93deff2dda90eada86b4cd | [
"MIT"
] | null | null | null | selector.c | AlisonQuinter17/printf | d64864f82892be8c4e93deff2dda90eada86b4cd | [
"MIT"
] | 3 | 2020-03-22T16:30:16.000Z | 2020-07-27T22:33:52.000Z | #include "holberton.h"
/**
* selector - main function.
* @format: The dimension of the parameters passed.
* @...: The parameters to print.
* @i: The pointer of the format position.
* @x: The variable to print.
*
* Description: This function selects the correct function
* asked by the user for calls it.
*
* Return: The total number of characters of the functions called.
*/
int selector(int *i, const char *format, va_list x)
{
int count = 0;
int k = *i, l = 0;
base_t ops[] = {
{"c", op_char},
{"s", op_string},
{"%", op_percent},
{"d", op_numbers},
{"i", op_numbers},
{"u", op_unsigned},
{"o", op_octal},
{"b", op_binary},
{"r", print_rev},
{"R", rot13},
{NULL, NULL}
};
int c = 0;
while (c < 10)
{
if (*(ops[c].op) == format[k + 1])
{
count += ops[c].f(x);
*i += 1;
}
else
{
l++;
}
c++;
}
if (l == 10)
{
_putchar(format[k]);
count++;
}
return (count);
}
| 15.881356 | 66 | 0.55603 |
2c83281403beeeec0e5abca7ccb187fd8c74e495 | 1,104 | lua | Lua | support/Dynamic Mission Start Script.lua | NachtRaveVL/FDMM_DCS | 1a5c2090d46a0165fff9d46120dec08d555114d6 | [
"MIT"
] | 4 | 2020-02-29T09:04:46.000Z | 2021-12-20T12:05:24.000Z | support/Dynamic Mission Start Script.lua | justin-lovell/FDMM_DCS | 1a5c2090d46a0165fff9d46120dec08d555114d6 | [
"MIT"
] | null | null | null | support/Dynamic Mission Start Script.lua | justin-lovell/FDMM_DCS | 1a5c2090d46a0165fff9d46120dec08d555114d6 | [
"MIT"
] | 2 | 2020-09-03T11:21:46.000Z | 2020-10-25T19:19:28.000Z | do
assert(lfs, "Missing module: lfs")
local __nativeRequire = require
local __loadedModules = {}
local splitFilename = function(strFilename)
if lfs.attributes(strFilename,"mode") == "directory" then
local strPath = strFilename:gsub("[\\/]$","")
return strPath.."\\","",""
end
return (strFilename.."."):match("^(.-)([^\\/]-)%.([^\\/%.]-)%.?$")
end
require = function(moduleName)
local fdmmFile = lfs.writedir()..fdmm_path.."workspace/FDMM/src/"..moduleName..".lua"
local path, name, ext = splitFilename(moduleName)
if package.loaded[moduleName] or package.loaded[name] then
return package.loaded[moduleName] or package.loaded[name]
elseif __loadedModules[name] == nil then
if lfs.attributes(fdmmFile) then
__loadedModules[name] = dofile(fdmmFile) or true
elseif __nativeRequire then
__loadedModules[name] = __nativeRequire(moduleName) or true
end
end
return __loadedModules[name]
end
require("FDMM_MissionStart")
require = __nativeRequire
end
| 31.542857 | 91 | 0.634058 |
327a74f39175da2ebaa8afda50d50f465cf65366 | 569 | kt | Kotlin | TLDMaths/src/main/kotlin/uk/tldcode/math/tldmaths/A008233.kt | Thelonedevil/TLDMaths | c35095888fe85506840b7c1ec04e21673153370c | [
"Apache-2.0"
] | null | null | null | TLDMaths/src/main/kotlin/uk/tldcode/math/tldmaths/A008233.kt | Thelonedevil/TLDMaths | c35095888fe85506840b7c1ec04e21673153370c | [
"Apache-2.0"
] | null | null | null | TLDMaths/src/main/kotlin/uk/tldcode/math/tldmaths/A008233.kt | Thelonedevil/TLDMaths | c35095888fe85506840b7c1ec04e21673153370c | [
"Apache-2.0"
] | null | null | null | package uk.tldcode.math.tldmaths
import sequence.buildSequence
import java.math.BigInteger
import java.math.BigInteger.ONE
import uk.tldcode.math.tldmaths.biginteger.*
object A008233 : BigIntegerSequence {
override operator fun invoke(): Sequence<BigInteger> = buildSequence {
var n = BigInteger.ZERO
while (true) {
yield((n / BigInteger.valueOf(4)) * ((n + ONE) / BigInteger.valueOf(4)) * ((n + BigInteger.valueOf(2)) / BigInteger.valueOf(4)) * ((n + BigInteger.valueOf(3)) / BigInteger.valueOf(4)))
n++
}
}
}
| 33.470588 | 196 | 0.664323 |
b900f97b86bfc2eebdb0cae2d2a1b4af89d71d9a | 4,093 | c | C | tests/03-methods/01-methods.c | IronBlood/onion | 43128b03199518d4878074c311ff71ff0018aea8 | [
"Apache-2.0"
] | 1,261 | 2015-01-01T02:06:26.000Z | 2022-03-31T23:36:05.000Z | tests/03-methods/01-methods.c | IronBlood/onion | 43128b03199518d4878074c311ff71ff0018aea8 | [
"Apache-2.0"
] | 144 | 2015-01-06T21:01:09.000Z | 2022-03-15T13:08:40.000Z | tests/03-methods/01-methods.c | IronBlood/onion | 43128b03199518d4878074c311ff71ff0018aea8 | [
"Apache-2.0"
] | 251 | 2015-01-05T05:14:18.000Z | 2022-03-17T21:39:04.000Z | /**
Onion HTTP server library
Copyright (C) 2010-2018 David Moreno Montero and others
This library is free software; you can redistribute it and/or
modify it under the terms of, at your choice:
a. the Apache License Version 2.0.
b. the GNU General Public License as published by the
Free Software Foundation; either version 2.0 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of both licenses, if not see
<http://www.gnu.org/licenses/> and
<http://www.apache.org/licenses/LICENSE-2.0>.
*/
#include <string.h>
#include <onion/onion.h>
#include <onion/dict.h>
#include <onion/handler.h>
#include <onion/response.h>
void print_dict_element(onion_response * res, const char *key,
const char *value, int flags) {
onion_response_write0(res, "<li> ");
onion_response_write0(res, key);
onion_response_write0(res, " = ");
onion_response_write0(res, value);
onion_response_write0(res, "</li>\n");
}
onion_connection_status method(void *ignore, onion_request * req,
onion_response * res) {
if (onion_response_write_headers(res) == OR_SKIP_CONTENT) // Head
return OCS_PROCESSED;
onion_response_write0(res, "<html><body>\n<h1>Petition resume</h1>\n");
int flags = onion_request_get_flags(req);
if (flags & OR_GET)
onion_response_write0(res, "<h2>GET");
else if (flags & OR_POST)
onion_response_write0(res, "<h2>POST");
else
onion_response_write0(res, "<h2>UNKNOWN");
onion_response_printf(res, " %s</h2>\n<ul>", onion_request_get_path(req));
const onion_dict *get = onion_request_get_query_dict(req);
const onion_dict *post = onion_request_get_post_dict(req);
const onion_dict *headers = onion_request_get_header_dict(req);
onion_response_printf(res, "<li>Header %d elements<ul>",
onion_dict_count(headers));
if (headers)
onion_dict_preorder(headers, print_dict_element, res);
onion_response_printf(res, "</ul></li>\n");
onion_response_printf(res, "<li>GET %d elements<ul>", onion_dict_count(get));
if (get)
onion_dict_preorder(get, print_dict_element, res);
onion_response_printf(res, "</ul></li>\n");
onion_response_printf(res, "<li>POST %d elements<ul>",
onion_dict_count(post));
if (post)
onion_dict_preorder(post, print_dict_element, res);
onion_response_printf(res, "</ul></li>\n");
onion_response_write0(res, "<p>\n");
onion_response_write0(res, "<form method=\"GET\">"
"<input type=\"text\" name=\"test\">"
"<input type=\"submit\" name=\"submit\" value=\"GET\">"
"</form><p>\n");
onion_response_write0(res,
"<form method=\"POST\" enctype=\"application/x-www-form-urlencoded\">"
"<textarea name=\"text\"></textarea>"
"<input type=\"text\" name=\"test\">"
"<input type=\"submit\" name=\"submit\" value=\"POST urlencoded\">"
"</form>" "<p>\n");
onion_response_write0(res,
"<form method=\"POST\" enctype=\"multipart/form-data\">"
"<input type=\"file\" name=\"file\">"
"<textarea name=\"text\"></textarea>"
"<input type=\"text\" name=\"test\">"
"<input type=\"submit\" name=\"submit\" value=\"POST multipart\">"
"</form>" "<p>\n");
onion_response_write0(res, "</body></html>");
return OCS_PROCESSED;
}
int main(int argc, char **argv) {
onion *onion = onion_new(O_ONE_LOOP);
onion_handler *root =
onion_handler_new((onion_handler_handler) method, NULL, NULL);
onion_set_root_handler(onion, root);
onion_listen(onion);
return 0;
}
| 36.221239 | 94 | 0.629367 |
594b3c2e512a7dbd30fe13d2c766f5c87effedf4 | 542 | h | C | PrivateFrameworks/WorkflowKit/RLMWeakObjectHandle.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 17 | 2018-11-13T04:02:58.000Z | 2022-01-20T09:27:13.000Z | PrivateFrameworks/WorkflowKit/RLMWeakObjectHandle.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 3 | 2018-04-06T02:02:27.000Z | 2018-10-02T01:12:10.000Z | PrivateFrameworks/WorkflowKit/RLMWeakObjectHandle.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 1 | 2018-09-28T13:54:23.000Z | 2018-09-28T13:54:23.000Z | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
#import "NSCopying.h"
@class RLMObjectBase;
@interface RLMWeakObjectHandle : NSObject <NSCopying>
{
struct BasicRow<realm::Table> _row;
struct RLMClassInfo *_info;
Class _objectClass;
}
- (id).cxx_construct;
- (void).cxx_destruct;
- (id)copyWithZone:(struct _NSZone *)arg1;
@property(readonly, nonatomic) RLMObjectBase *object;
- (id)initWithObject:(id)arg1;
@end
| 19.357143 | 83 | 0.697417 |
69348895ad6e21386ed035fa4f43884afd1674d9 | 4,482 | swift | Swift | Demo/Demo/App/Model/ResultModel.swift | YutoMizutani/CiNiiKit | 44e67570bb8ce7cf4a6e085232fa38f62c8e2b55 | [
"MIT"
] | 1 | 2018-08-27T14:14:37.000Z | 2018-08-27T14:14:37.000Z | Demo/Demo/App/Model/ResultModel.swift | YutoMizutani/CiNiiKit | 44e67570bb8ce7cf4a6e085232fa38f62c8e2b55 | [
"MIT"
] | 22 | 2018-09-02T05:38:16.000Z | 2018-09-17T10:44:05.000Z | Demo/Demo/App/Model/ResultModel.swift | YutoMizutani/CiNiiKit | 44e67570bb8ce7cf4a6e085232fa38f62c8e2b55 | [
"MIT"
] | null | null | null | //
// ResultModel.swift
// Demo
//
// Created by Yuto Mizutani on 2018/09/04.
// Copyright © 2018 Yuto Mizutani. All rights reserved.
//
import CiNiiKit
import UIKit
/// Result view model
struct ResultViewModel {
/// Title name
let title: String
/// Journal name
let journal: String
/// Author name
let author: String
/// Link URL
let link: URL?
}
/// A state of pagenation
enum PagingState {
case preparing
case waiting
case fetching
case maxPage
}
/// Result model
class ResultModel {
/// Searched model
private var model: ArticlesModel
/// Results from ArticlesModel
private var results: [ArticlesModel.Item]
/// CiNiiKit instance
private let cinii: CiNiiKit
/// Pagenation state
private var state: PagingState
/// Filtering state
private var isFiltering: Bool {
return self._viewModels.count != self.viewModels.count
}
/// Search word
private(set) var searchWord: String
/// Raw view models
private var _viewModels: [ResultViewModel] = []
/// Filterd view models
private(set) var viewModels: [ResultViewModel] = []
init(model: ArticlesModel) {
self.model = model
self.results = model.graph[0].items ?? []
self.cinii = CiNiiKit.shared
self.state = .preparing
self.searchWord = "Result"
if let searchQuery = model.id.split(separator: "&").first(where: { $0.hasPrefix("q=") }),
let searchWord = searchQuery[searchQuery.index(searchQuery.startIndex, offsetBy: 2)..<searchQuery.endIndex].removingPercentEncoding {
self.searchWord = searchWord
}
self.configureViewModel()
// State changes if the model has max num of items
self.state = model.opensearchItemsPerPage == model.opensearchTotalResults ? .maxPage : .waiting
}
}
// MARK: - Private methods
private extension ResultModel {
/// Configure view models
func configureViewModel() {
self._viewModels = []
self.results.forEach {
let title = $0.title ?? ""
let journal = $0.prismPublicationName != nil ? "\($0.prismPublicationName!), " : ""
let date = $0.prismPublicationDate?.publicationDateString != nil ? "\($0.prismPublicationDate!.publicationDateString!), " : ""
let authors = $0.dcCreator?.map { $0.value }.filter { $0 != nil }.map { $0! } ?? []
let author = authors.count > 4 ? "\(authors[...2].joined(separator: ", ")), ... \(authors[authors.endIndex-1])" : authors.joined(separator: ", ")
let link = $0.link?.id != nil ? URL(string: $0.link!.id!) : nil
let viewModel = ResultViewModel(title: title,
journal: "\(journal)\(date)",
author: author,
link: link)
self._viewModels.append(viewModel)
}
self.viewModels = self._viewModels
}
/// Add view models with model
func append(_ model: ArticlesModel) {
self.results += model.graph.first?.items ?? []
self.configureViewModel()
}
}
// MARK: - Internal methods
extension ResultModel {
/// Get view model with index
func getViewModel(at index: Int) -> ResultViewModel? {
guard index < self.viewModels.count else {
return nil
}
return self.viewModels[index]
}
/// Request next page
func nextPage(success: (() -> Void)? = nil, failure: ((Error) -> Void)? = nil) {
guard self.state == .waiting, !isFiltering else { return }
self.state = .fetching
self.cinii.articles.nextPage(self.model, success: { [weak self] model in
self?.append(model)
success?()
self?.state = .waiting
}) { [weak self] error in
failure?(error)
switch error {
case PagenationError.maxPage:
self?.state = .maxPage
default:
self?.state = .waiting
}
}
}
/// Filter view models with text
func filter(with text: String) {
guard text != "" else {
self.viewModels = self._viewModels
return
}
self.viewModels = self._viewModels.filter {
$0.title.contains(text) ||
$0.journal.contains(text) ||
$0.author.contains(text)
}
}
}
| 30.489796 | 157 | 0.57452 |
1cd7cb06e00557bd8c0dcc86523249064864fa23 | 522 | css | CSS | styles.css | dariospace/dariospace.com | 2e37e288f9f0fa08a84efb92b2a86f8ef5f2eb86 | [
"MIT"
] | 1 | 2021-03-01T02:48:49.000Z | 2021-03-01T02:48:49.000Z | styles.css | dariospace/dariospace.com | 2e37e288f9f0fa08a84efb92b2a86f8ef5f2eb86 | [
"MIT"
] | null | null | null | styles.css | dariospace/dariospace.com | 2e37e288f9f0fa08a84efb92b2a86f8ef5f2eb86 | [
"MIT"
] | null | null | null | @import url('https://fonts.googleapis.cnpmjs.org/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.cnpmjs.org/css2?family=Roboto:wght@400;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
.notion,
.notion-text,
.notion-quote,
.notion-list,
.notion-h-title {
@apply leading-7;
@apply font-sans;
}
.notion-bookmark {
@apply border-2;
@apply border-gray-100;
}
.notion-bookmark:hover {
@apply border-blue-400;
}
.notion-viewport {
z-index: -10;
}
| 20.076923 | 96 | 0.716475 |
0404cf64642a1eea6ccbef715b0238960bc040d4 | 759 | js | JavaScript | react/outline/mask.js | la-moore/scarlab-icons | 97b1083f9eb0c3e89ee05bb00ebc06e30c90d563 | [
"MIT"
] | 3 | 2022-02-11T06:49:31.000Z | 2022-03-30T06:49:18.000Z | react/outline/mask.js | la-moore/scarlab-icons | 97b1083f9eb0c3e89ee05bb00ebc06e30c90d563 | [
"MIT"
] | null | null | null | react/outline/mask.js | la-moore/scarlab-icons | 97b1083f9eb0c3e89ee05bb00ebc06e30c90d563 | [
"MIT"
] | null | null | null | import * as React from "react"
function SvgComponent(props) {
return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="scarlab scarlab-mask" {...props}>
<path d="M3 7C3 5.11438 3 4.17157 3.58579 3.58579C4.17157 3 5.11438 3 7 3H12H17C18.8856 3 19.8284 3 20.4142 3.58579C21 4.17157 21 5.11438 21 7V15V17C21 18.8856 21 19.8284 20.4142 20.4142C19.8284 21 18.8856 21 17 21H12H7C5.11438 21 4.17157 21 3.58579 20.4142C3 19.8284 3 18.8856 3 17V15V7Z" />
<path d="M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z" />
</svg>
}
export default SvgComponent
| 69 | 296 | 0.720685 |
dabd4ecd06d1b9d8e0e93d9d314fe82efaaf1016 | 871 | kt | Kotlin | locationhelpers/src/main/java/com/crazylegend/locationhelpers/IntentExtensions.kt | CraZyLegenD/LocationUtils | ef9095df89689ca64f5584ed5dd2eaa0b506ccb5 | [
"MIT"
] | 2 | 2020-04-29T03:42:01.000Z | 2020-11-12T17:39:47.000Z | locationhelpers/src/main/java/com/crazylegend/locationhelpers/IntentExtensions.kt | CraZyLegenD/LocationUtils | ef9095df89689ca64f5584ed5dd2eaa0b506ccb5 | [
"MIT"
] | null | null | null | locationhelpers/src/main/java/com/crazylegend/locationhelpers/IntentExtensions.kt | CraZyLegenD/LocationUtils | ef9095df89689ca64f5584ed5dd2eaa0b506ccb5 | [
"MIT"
] | null | null | null | package com.crazylegend.locationhelpers
import android.content.Intent
import android.net.Uri
import com.google.android.gms.maps.model.LatLng
/**
* Created by crazy on 11/4/20 to long live and prosper !
*/
/**
* There's limit of 20 stops by the Google intent
* @param latNLongs List<LatLng>
* @return Intent
*/
fun multiStopIntent(latNLongs: List<LatLng>): Intent {
val intentList = latNLongs.mapIndexed { index, it ->
"${it.latitude}:${it.longitude}" + if (index == latNLongs.lastIndex) "" else "/"
}.toString().removePrefix("[").removeSuffix("]")
.replace(" ", "")
.replace(",", "")
.replace(":", ",")
val url = "https://www.google.com/maps/dir/$intentList"
val intent = Intent(Intent.ACTION_VIEW,
Uri.parse(url))
intent.setPackage("com.google.android.apps.maps")
return intent
}
| 29.033333 | 88 | 0.637199 |
e73f6f32ac274022a010956574b1455bf808c677 | 2,065 | js | JavaScript | src/rocks/preview-registry/index.js | animachine/animachine | ee4cf607901a2cde5ffd20783f7ac4fc6765a5d2 | [
"MIT"
] | 447 | 2015-02-24T10:44:00.000Z | 2022-02-11T22:01:34.000Z | src/rocks/preview-registry/index.js | Ni-c0de-mus/animachine | 5be456f187f4f65769039e42e3496d494b2f3957 | [
"MIT"
] | 8 | 2015-02-25T19:31:06.000Z | 2018-10-05T15:53:31.000Z | src/rocks/preview-registry/index.js | Ni-c0de-mus/animachine | 5be456f187f4f65769039e42e3496d494b2f3957 | [
"MIT"
] | 45 | 2015-01-15T14:43:16.000Z | 2022-01-04T11:55:03.000Z | import {defineModel, createModel, createArray, autorun} from 'afflatus'
defineModel({
type: 'RunningTimeline',
simpleValues: {
timeline: {type: 'Timeline'},
},
arrayValues: {
previews: {},
}
})
class Preview {
rootTarget = null
gsapAnimation = null
}
BETON.define({
id: 'preview-registry',
dependencies: [],
init: () => {
const state = {
runningTimelines: createArray('RunningTimeline').get()
}
function registerRunningTimeline(timeline, rootTarget, gsapAnimation) {
console.log('>> preview-registry: registerRunningTimeline', timeline.name, rootTarget, gsapAnimation)
let runningTimeline = state.runningTimelines.find(
runningTimeline => runningTimeline.timeline === timeline
)
if (!runningTimeline) {
runningTimeline = createModel('RunningTimeline', {timeline})
state.runningTimelines.push(runningTimeline)
}
if (!runningTimeline.previews.find(
preview => preview.rootTarget === rootTarget
)) {
const preview = new Preview()
console.log('>> preview-registry: create Preview', rootTarget, gsapAnimation)
preview.rootTarget = rootTarget
preview.gsapAnimation = gsapAnimation
runningTimeline.previews.push(preview)
}
}
global.__animachineRegisterRunningTimeline = createArray(
null,
global.__animachineRegisterRunningTimeline
).get()
let pos = 0
autorun(() => {
while(pos < global.__animachineRegisterRunningTimeline.getLength()) {
const args = global.__animachineRegisterRunningTimeline[pos]
registerRunningTimeline(...args)
++pos
}
})
return {
state,
actions: {
registerRunningTimeline
},
getters: {
getPreviewsOfTimeline(timeline) {
let runningTimeline = state.runningTimelines.find(
runningTimeline => runningTimeline.timeline === timeline
)
return runningTimeline ? runningTimeline.previews : []
}
}
}
}
})
| 26.139241 | 107 | 0.642131 |
f9b56ef30752395728c1e8ce13f6a76f8bab962d | 17,377 | sql | SQL | database/blood_bank.sql | ayeshaakhter222/blood-bank-api | 528e2346d4d3844986d9dfbc0cf066420a6f8417 | [
"MIT"
] | null | null | null | database/blood_bank.sql | ayeshaakhter222/blood-bank-api | 528e2346d4d3844986d9dfbc0cf066420a6f8417 | [
"MIT"
] | null | null | null | database/blood_bank.sql | ayeshaakhter222/blood-bank-api | 528e2346d4d3844986d9dfbc0cf066420a6f8417 | [
"MIT"
] | null | null | null | /*
Navicat Premium Data Transfer
Source Server : MySQL-Localhost
Source Server Type : MySQL
Source Server Version : 50731
Source Host : 127.0.0.1:3306
Source Schema : blood_bank
Target Server Type : MySQL
Target Server Version : 50731
File Encoding : 65001
Date: 11/10/2021 16:13:36
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for blood_types
-- ----------------------------
DROP TABLE IF EXISTS `blood_types`;
CREATE TABLE `blood_types` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of blood_types
-- ----------------------------
INSERT INTO `blood_types` VALUES (1, 'A Positive', 'A+', '2021-10-11 05:07:03', '2021-10-11 05:07:03');
INSERT INTO `blood_types` VALUES (2, 'O Positive', 'O+', '2021-10-11 05:07:11', '2021-10-11 05:07:11');
-- ----------------------------
-- Table structure for districts
-- ----------------------------
DROP TABLE IF EXISTS `districts`;
CREATE TABLE `districts` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`division_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`bn_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`lat` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`lon` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 65 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of districts
-- ----------------------------
INSERT INTO `districts` VALUES (1, 'Comilla', 1, 'কুমিল্লা', '23.4682747', '91.1788135', 'www.comilla.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (2, 'Feni', 1, 'ফেনী', '23.023231', '91.3840844', 'www.feni.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (3, 'Brahmanbaria', 1, 'ব্রাহ্মণবাড়িয়া', '23.9570904', '91.1119286', 'www.brahmanbaria.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (4, 'Rangamati', 1, 'রাঙ্গামাটি', NULL, NULL, 'www.rangamati.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (5, 'Noakhali', 1, 'নোয়াখালী', '22.869563', '91.099398', 'www.noakhali.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (6, 'Chandpur', 1, 'চাঁদপুর', '23.2332585', '90.6712912', 'www.chandpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (7, 'Lakshmipur', 1, 'লক্ষ্মীপুর', '22.942477', '90.841184', 'www.lakshmipur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (8, 'Chattogram', 1, 'চট্টগ্রাম', '22.335109', '91.834073', 'www.chittagong.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (9, 'Coxsbazar', 1, 'কক্সবাজার', NULL, NULL, 'www.coxsbazar.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (10, 'Khagrachhari', 1, 'খাগড়াছড়ি', '23.119285', '91.984663', 'www.khagrachhari.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (11, 'Bandarban', 1, 'বান্দরবান', '22.1953275', '92.2183773', 'www.bandarban.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (12, 'Sirajganj', 2, 'সিরাজগঞ্জ', '24.4533978', '89.7006815', 'www.sirajganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (13, 'Pabna', 2, 'পাবনা', '23.998524', '89.233645', 'www.pabna.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (14, 'Bogura', 2, 'বগুড়া', '24.8465228', '89.377755', 'www.bogra.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (15, 'Rajshahi', 2, 'রাজশাহী', NULL, NULL, 'www.rajshahi.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (16, 'Natore', 2, 'নাটোর', '24.420556', '89.000282', 'www.natore.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (17, 'Joypurhat', 2, 'জয়পুরহাট', NULL, NULL, 'www.joypurhat.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (18, 'Chapainawabganj', 2, 'চাঁপাইনবাবগঞ্জ', '24.5965034', '88.2775122', 'www.chapainawabganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (19, 'Naogaon', 2, 'নওগাঁ', NULL, NULL, 'www.naogaon.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (20, 'Jashore', 3, 'যশোর', '23.16643', '89.2081126', 'www.jessore.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (21, 'Satkhira', 3, 'সাতক্ষীরা', NULL, NULL, 'www.satkhira.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (22, 'Meherpur', 3, 'মেহেরপুর', '23.762213', '88.631821', 'www.meherpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (23, 'Narail', 3, 'নড়াইল', '23.172534', '89.512672', 'www.narail.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (24, 'Chuadanga', 3, 'চুয়াডাঙ্গা', '23.6401961', '88.841841', 'www.chuadanga.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (25, 'Kushtia', 3, 'কুষ্টিয়া', '23.901258', '89.120482', 'www.kushtia.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (26, 'Magura', 3, 'মাগুরা', '23.487337', '89.419956', 'www.magura.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (27, 'Khulna', 3, 'খুলনা', '22.815774', '89.568679', 'www.khulna.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (28, 'Bagerhat', 3, 'বাগেরহাট', '22.651568', '89.785938', 'www.bagerhat.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (29, 'Jhenaidah', 3, 'ঝিনাইদহ', '23.5448176', '89.1539213', 'www.jhenaidah.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (30, 'Jhalakathi', 4, 'ঝালকাঠি', NULL, NULL, 'www.jhalakathi.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (31, 'Patuakhali', 4, 'পটুয়াখালী', '22.3596316', '90.3298712', 'www.patuakhali.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (32, 'Pirojpur', 4, 'পিরোজপুর', NULL, NULL, 'www.pirojpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (33, 'Barisal', 4, 'বরিশাল', NULL, NULL, 'www.barisal.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (34, 'Bhola', 4, 'ভোলা', '22.685923', '90.648179', 'www.bhola.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (35, 'Barguna', 4, 'বরগুনা', NULL, NULL, 'www.barguna.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (36, 'Sylhet', 5, 'সিলেট', '24.8897956', '91.8697894', 'www.sylhet.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (37, 'Moulvibazar', 5, 'মৌলভীবাজার', '24.482934', '91.777417', 'www.moulvibazar.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (38, 'Habiganj', 5, 'হবিগঞ্জ', '24.374945', '91.41553', 'www.habiganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (39, 'Sunamganj', 5, 'সুনামগঞ্জ', '25.0658042', '91.3950115', 'www.sunamganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (40, 'Narsingdi', 6, 'নরসিংদী', '23.932233', '90.71541', 'www.narsingdi.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (41, 'Gazipur', 6, 'গাজীপুর', '24.0022858', '90.4264283', 'www.gazipur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (42, 'Shariatpur', 6, 'শরীয়তপুর', NULL, NULL, 'www.shariatpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (43, 'Narayanganj', 6, 'নারায়ণগঞ্জ', '23.63366', '90.496482', 'www.narayanganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (44, 'Tangail', 6, 'টাঙ্গাইল', '24.26361358', '89.91794786', 'www.tangail.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (45, 'Kishoreganj', 6, 'কিশোরগঞ্জ', '24.444937', '90.776575', 'www.kishoreganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (46, 'Manikganj', 6, 'মানিকগঞ্জ', NULL, NULL, 'www.manikganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (47, 'Dhaka', 6, 'ঢাকা', '23.7115253', '90.4111451', 'www.dhaka.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (48, 'Munshiganj', 6, 'মুন্সিগঞ্জ', NULL, NULL, 'www.munshiganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (49, 'Rajbari', 6, 'রাজবাড়ী', '23.7574305', '89.6444665', 'www.rajbari.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (50, 'Madaripur', 6, 'মাদারীপুর', '23.164102', '90.1896805', 'www.madaripur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (51, 'Gopalganj', 6, 'গোপালগঞ্জ', '23.0050857', '89.8266059', 'www.gopalganj.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (52, 'Faridpur', 6, 'ফরিদপুর', '23.6070822', '89.8429406', 'www.faridpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (53, 'Panchagarh', 7, 'পঞ্চগড়', '26.3411', '88.5541606', 'www.panchagarh.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (54, 'Dinajpur', 7, 'দিনাজপুর', '25.6217061', '88.6354504', 'www.dinajpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (55, 'Lalmonirhat', 7, 'লালমনিরহাট', NULL, NULL, 'www.lalmonirhat.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (56, 'Nilphamari', 7, 'নীলফামারী', '25.931794', '88.856006', 'www.nilphamari.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (57, 'Gaibandha', 7, 'গাইবান্ধা', '25.328751', '89.528088', 'www.gaibandha.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (58, 'Thakurgaon', 7, 'ঠাকুরগাঁও', '26.0336945', '88.4616834', 'www.thakurgaon.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (59, 'Rangpur', 7, 'রংপুর', '25.7558096', '89.244462', 'www.rangpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (60, 'Kurigram', 7, 'কুড়িগ্রাম', '25.805445', '89.636174', 'www.kurigram.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (61, 'Sherpur', 8, 'শেরপুর', '25.0204933', '90.0152966', 'www.sherpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (62, 'Mymensingh', 8, 'ময়মনসিংহ', '24.7465670', '90.4072093', 'www.mymensingh.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (63, 'Jamalpur', 8, 'জামালপুর', '24.937533', '89.937775', 'www.jamalpur.gov.bd', NULL, NULL);
INSERT INTO `districts` VALUES (64, 'Netrokona', 8, 'নেত্রকোণা', '24.870955', '90.727887', 'www.netrokona.gov.bd', NULL, NULL);
-- ----------------------------
-- Table structure for donations
-- ----------------------------
DROP TABLE IF EXISTS `donations`;
CREATE TABLE `donations` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`donation_date` date NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of donations
-- ----------------------------
-- ----------------------------
-- Table structure for failed_jobs
-- ----------------------------
DROP TABLE IF EXISTS `failed_jobs`;
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `failed_jobs_uuid_unique`(`uuid`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of failed_jobs
-- ----------------------------
-- ----------------------------
-- Table structure for migrations
-- ----------------------------
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 30 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO `migrations` VALUES (22, '2014_10_12_000000_create_users_table', 1);
INSERT INTO `migrations` VALUES (23, '2014_10_12_100000_create_password_resets_table', 1);
INSERT INTO `migrations` VALUES (24, '2019_08_19_000000_create_failed_jobs_table', 1);
INSERT INTO `migrations` VALUES (25, '2021_04_23_213908_create_roles_table', 1);
INSERT INTO `migrations` VALUES (26, '2021_04_23_214829_create_role_user_table', 1);
INSERT INTO `migrations` VALUES (27, '2021_10_11_032639_create_districts_table', 1);
INSERT INTO `migrations` VALUES (28, '2021_10_11_033650_create_blood_types_table', 1);
INSERT INTO `migrations` VALUES (29, '2021_10_11_044855_create_donations_table', 1);
-- ----------------------------
-- Table structure for password_resets
-- ----------------------------
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE `password_resets` (
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
INDEX `password_resets_email_index`(`email`) USING BTREE
) ENGINE = MyISAM CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of password_resets
-- ----------------------------
-- ----------------------------
-- Table structure for role_user
-- ----------------------------
DROP TABLE IF EXISTS `role_user`;
CREATE TABLE `role_user` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` int(10) UNSIGNED NOT NULL,
`role_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Fixed;
-- ----------------------------
-- Records of role_user
-- ----------------------------
INSERT INTO `role_user` VALUES (1, 1, 2, NULL, NULL);
-- ----------------------------
-- Table structure for roles
-- ----------------------------
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of roles
-- ----------------------------
INSERT INTO `roles` VALUES (1, 'Admin', '2021-10-11 05:04:51', '2021-10-11 05:04:51');
INSERT INTO `roles` VALUES (2, 'Donor', '2021-10-11 05:04:57', '2021-10-11 05:04:57');
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`gender` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`blood_type` bigint(20) UNSIGNED NULL DEFAULT NULL,
`birth_date` date NULL DEFAULT NULL,
`address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`district_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`temperature` int(11) NULL DEFAULT NULL,
`pulse` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`bp` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`weight` int(11) NULL DEFAULT NULL,
`hemoglobin` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`mobile` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `users_email_unique`(`email`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES (1, 'Karim', 'Uddin', 'karim@gmail.com', NULL, '$2y$10$/JjntI3F/xqZCMXsafD4Xu3Kb9PnnZmgaHdnQE7ia/qbuFEDrlJpa', NULL, 2, NULL, NULL, 47, NULL, NULL, NULL, NULL, NULL, '01717852644', NULL, '2021-10-11 05:37:54', '2021-10-11 05:37:54');
SET FOREIGN_KEY_CHECKS = 1;
| 63.886029 | 260 | 0.663003 |
5c47a9af253b823b39fa87dad4e50d33eea7f699 | 367 | c | C | c/setjmp-no-reinit-and-call-longjmp.c | bismog/leetcode | 13b8a77045f96e7c59ddfe287481f6aaa68e564d | [
"MIT"
] | null | null | null | c/setjmp-no-reinit-and-call-longjmp.c | bismog/leetcode | 13b8a77045f96e7c59ddfe287481f6aaa68e564d | [
"MIT"
] | null | null | null | c/setjmp-no-reinit-and-call-longjmp.c | bismog/leetcode | 13b8a77045f96e7c59ddfe287481f6aaa68e564d | [
"MIT"
] | 1 | 2018-08-17T07:07:15.000Z | 2018-08-17T07:07:15.000Z |
#include <stdio.h>
#include <setjmp.h>
jmp_buf BUFFER;
void trigger_error(int err_code)
{
longjmp(BUFFER, err_code);
}
int main()
{
int err_code = setjmp(BUFFER);
if(err_code != 0)
{
printf("Error code: %d\n", err_code);
}
else
{
printf("ret code is zero.\n");
}
trigger_error(1);
trigger_error(2);
return 0;
}
| 12.655172 | 42 | 0.583106 |
2a0e1298e149e72cd3e81eb1dffec79448e91acc | 6,140 | java | Java | designer/PlatypusDbDiagram/src/com/eas/designer/application/dbdiagram/nodes/TableIndexesNode.java | AlexeyKashintsev/PlatypusJS | 5df9c241843d6598f4e97a22a06cf99e07ce92eb | [
"Apache-2.0"
] | null | null | null | designer/PlatypusDbDiagram/src/com/eas/designer/application/dbdiagram/nodes/TableIndexesNode.java | AlexeyKashintsev/PlatypusJS | 5df9c241843d6598f4e97a22a06cf99e07ce92eb | [
"Apache-2.0"
] | null | null | null | designer/PlatypusDbDiagram/src/com/eas/designer/application/dbdiagram/nodes/TableIndexesNode.java | AlexeyKashintsev/PlatypusJS | 5df9c241843d6598f4e97a22a06cf99e07ce92eb | [
"Apache-2.0"
] | null | null | null | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.eas.designer.application.dbdiagram.nodes;
import com.eas.client.dbstructure.DbStructureUtils;
import com.eas.client.dbstructure.IconCache;
import com.eas.client.dbstructure.SqlActionsController;
import com.eas.client.dbstructure.gui.edits.CreateIndexEdit;
import com.eas.client.metadata.DbTableIndexColumnSpec;
import com.eas.client.metadata.DbTableIndexSpec;
import com.eas.client.metadata.Field;
import com.eas.client.model.Entity;
import com.eas.client.model.ModelEditingListener;
import com.eas.client.model.Relation;
import com.eas.client.model.dbscheme.FieldsEntity;
import com.eas.designer.datamodel.ModelUndoProvider;
import com.eas.util.IDGenerator;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.util.List;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JOptionPane;
import javax.swing.event.UndoableEditEvent;
import org.openide.DialogDescriptor;
import org.openide.DialogDisplayer;
import org.openide.awt.UndoRedo;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.Exceptions;
import org.openide.util.ImageUtilities;
import org.openide.util.Lookup;
import org.openide.util.NbBundle;
/**
*
* @author vv
*/
public class TableIndexesNode extends AbstractNode {
protected static final String TREE_INDEX_ICON_NAME = "16x16/indexes.png";//NOI18N
protected static final String INDEX_DEFAULT_PREFIX = "I";//NOI18N
protected AddIndexAction addIndexAction = new AddIndexAction();
protected FieldsEntity entity;
protected SqlActionsController sqlController;
protected ModelEditingListener modelEditingListener = new ModelEditingListenerImpl();
public TableIndexesNode(Children aChildren, FieldsEntity anEntity, Lookup aLookup) {
super(aChildren, aLookup);
entity = anEntity;
try {
sqlController = new SqlActionsController(entity.getModel());
} catch (Exception ex) {
Exceptions.printStackTrace(ex);
}
entity.getModel().addEditingListener(modelEditingListener);
}
@Override
public void destroy() throws IOException {
entity.getModel().removeEditingListener(modelEditingListener);
super.destroy();
}
@Override
public Image getIcon(int type) {
return ImageUtilities.icon2Image(IconCache.getIcon(TREE_INDEX_ICON_NAME));
}
@Override
public Image getOpenedIcon(int type) {
return getIcon(type);
}
@Override
public String getName() {
return NbBundle.getMessage(TableIndexesNode.class, "MSG_TableIndexesNodeName");//NOI18N
}
@Override
public Action[] getActions(boolean context) {
return new Action[]{
addIndexAction
};
}
protected UndoRedo.Manager getUndo() {
return getLookup().lookup(ModelUndoProvider.class).getModelUndo();
}
public static class TableIndexesKey {
}
public class AddIndexAction extends AbstractAction {
public AddIndexAction() {
super();
putValue(Action.NAME, NbBundle.getMessage(DbStructureUtils.class, AddIndexAction.class.getSimpleName()));
putValue(Action.SHORT_DESCRIPTION, NbBundle.getMessage(DbStructureUtils.class, AddIndexAction.class.getSimpleName()));
}
@Override
public boolean isEnabled() {
return true;
}
@Override
public void actionPerformed(ActionEvent e) {
if (isEnabled()) {
TableColumnsPanel columnsPanel = new TableColumnsPanel(entity);
DialogDescriptor d = new DialogDescriptor(columnsPanel, entity.getTableName() + ": select index field(s).");
if (DialogDescriptor.OK_OPTION.equals(DialogDisplayer.getDefault().notify(d)) && !columnsPanel.getSelected().isEmpty()) {
DbTableIndexSpec newIndex = new DbTableIndexSpec();
int i = 0;
for (Field field : columnsPanel.getSelected()) {
DbTableIndexColumnSpec column = new DbTableIndexColumnSpec(field.getName(), true);
column.setOrdinalPosition(i++);
newIndex.addColumn(column);
}
newIndex.setName(INDEX_DEFAULT_PREFIX + String.valueOf(IDGenerator.genID()));
List<DbTableIndexSpec> idxes = entity.getIndexes();
CreateIndexEdit edit = new CreateIndexEdit(sqlController, entity, newIndex, idxes != null ? idxes.size() : 0);
try {
edit.redo();
getUndo().undoableEditHappened(new UndoableEditEvent(this, edit));
} catch (Exception ex) {
JOptionPane.showMessageDialog(null, ex.getLocalizedMessage(), NbBundle.getMessage(DbStructureUtils.class, "dbSchemeEditor"), JOptionPane.ERROR_MESSAGE);
}
}
}
}
}
protected class ModelEditingListenerImpl implements ModelEditingListener {
@Override
public void entityAdded(Entity e) {
}
@Override
public void entityRemoved(Entity e) {
}
@Override
public void relationAdded(Relation rltn) {
updtateChildren(rltn);
}
@Override
public void relationRemoved(Relation rltn) {
updtateChildren(rltn);
}
@Override
public void entityIndexesChanged(Entity e) {
updtateChildren();
}
private void updtateChildren(Relation rltn) {
if (entity.equals(rltn.getLeftEntity()) || entity.equals(rltn.getRightEntity())) {
updtateChildren();
}
}
private void updtateChildren() {
entity.achiveIndexes();
((TableIndexesChildren) getChildren()).update();
}
}
}
| 35.287356 | 176 | 0.653909 |
4a9d4268791a6582ca2dff69e1bb83e418f5e897 | 1,506 | sql | SQL | server/lib/components/store/migrations/0037-create-account-roles.sql | tes/kubernaut | 360d74a2cf31bf399ae75ba4e7ceaf1e9a55c8f3 | [
"MIT"
] | null | null | null | server/lib/components/store/migrations/0037-create-account-roles.sql | tes/kubernaut | 360d74a2cf31bf399ae75ba4e7ceaf1e9a55c8f3 | [
"MIT"
] | 10 | 2021-05-13T16:48:03.000Z | 2022-03-16T07:15:22.000Z | server/lib/components/store/migrations/0037-create-account-roles.sql | tes/kubernaut | 360d74a2cf31bf399ae75ba4e7ceaf1e9a55c8f3 | [
"MIT"
] | 3 | 2021-03-09T14:59:34.000Z | 2022-03-15T17:07:41.000Z | START TRANSACTION;
CREATE TABLE account_roles (
id UUID PRIMARY KEY,
account UUID NOT NULL REFERENCES account ON DELETE CASCADE,
role UUID NOT NULL REFERENCES role ON DELETE CASCADE,
subject UUID,
subject_type VARCHAR(16) NOT NULL,
created_on TIMESTAMP WITH TIME ZONE NOT NULL,
created_by UUID NOT NULL REFERENCES account,
deleted_on TIMESTAMP WITH TIME ZONE,
deleted_by UUID REFERENCES account,
CONSTRAINT account_roles__deletion__chk CHECK ((deleted_on IS NULL AND deleted_by IS NULL) OR (deleted_on IS NOT NULL AND deleted_by IS NOT NULL)),
CONSTRAINT subject_type_check CHECK (subject_type IN (
'namespace',
'registry',
'system',
'global'
)),
CONSTRAINT subject_null_check CHECK (
(subject_type IN ('system', 'global') AND subject IS NULL)
OR
(subject IS NOT NULL)
)
);
CREATE UNIQUE INDEX account_roles__account_role_subject_type__uniq ON account_roles (
account DESC, role DESC, subject DESC, subject_type DESC
) WHERE deleted_on IS NULL;
CREATE UNIQUE INDEX account_roles__account_role_type__uniq ON account_roles (
account DESC, role DESC, subject_type DESC
) WHERE deleted_on IS NULL AND subject IS NULL;
CREATE INDEX account_roles__account__idx ON account_roles (
account DESC
);
CREATE INDEX account_roles__role__idx ON account_roles (
role DESC
);
CREATE INDEX account_roles__subject__idx ON account_roles (
subject DESC
);
CREATE INDEX account_roles__subject_type__idx ON account_roles (
subject_type DESC
);
COMMIT;
| 28.961538 | 149 | 0.776892 |
48c89cd720129a4ea383e2be850ca1b6afbe1f25 | 7,041 | c | C | libwired/base/wi-byteorder.c | sc1sm3/libwired | a4c64b497ad4b657753e515d8dc65cd84cbfdc00 | [
"BSD-2-Clause"
] | null | null | null | libwired/base/wi-byteorder.c | sc1sm3/libwired | a4c64b497ad4b657753e515d8dc65cd84cbfdc00 | [
"BSD-2-Clause"
] | null | null | null | libwired/base/wi-byteorder.c | sc1sm3/libwired | a4c64b497ad4b657753e515d8dc65cd84cbfdc00 | [
"BSD-2-Clause"
] | null | null | null | /* $Id$ */
/*
* Copyright (c) 2009 Axel Andersson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include <wired/wi-byteorder.h>
#include <math.h>
/* Copyright (C) 1989-1991 Apple Computer, Inc.
*
* All rights reserved.
*
* Warranty Information
* Even though Apple has reviewed this software, Apple makes no warranty
* or representation, either express or implied, with respect to this
* software, its quality, accuracy, merchantability, or fitness for a
* particular purpose. As a result, this software is provided "as is,"
* and you, its user, are assuming the entire risk as to its quality
* and accuracy.
*
* This code may be used and freely distributed as long as it includes
* this copyright notice and the above warranty information.
*
* Machine-independent I/O routines for IEEE floating-point numbers.
*
* NaN's and infinities are converted to HUGE_VAL or HUGE, which
* happens to be infinity on IEEE machines. Unfortunately, it is
* impossible to preserve NaN's in a machine-independent way.
* Infinities are, however, preserved on IEEE machines.
*
* These routines have been tested on the following machines:
* Apple Macintosh, MPW 3.1 C compiler
* Apple Macintosh, THINK C compiler
* Silicon Graphics IRIS, MIPS compiler
* Cray X/MP and Y/MP
* Digital Equipment VAX
* Sequent Balance (Multiprocesor 386)
* NeXT
*
*
* Implemented by Malcolm Slaney and Ken Turkowski.
*
* Malcolm Slaney contributions during 1988-1990 include big- and little-
* endian file I/O, conversion to and from Motorola's extended 80-bit
* floating-point format, and conversions to and from IEEE single-
* precision floating-point format.
*
* In 1991, Ken Turkowski implemented the conversions to and from
* IEEE double-precision format, added more precision to the extended
* conversions, and accommodated conversions involving +/- infinity,
* NaN's, and denormalized numbers.
*/
#define _WI_BYTEORDER_IEEE754_EXP_MAX 2047
#define _WI_BYTEORDER_IEEE754_EXP_OFFSET 1023
#define _WI_BYTEORDER_IEEE754_EXP_SIZE 11
#define _WI_BYTEORDER_IEEE754_EXP_POSITION (32 - _WI_BYTEORDER_IEEE754_EXP_SIZE - 1)
double wi_read_double_from_ieee754(void *base, uintptr_t offset) {
unsigned char *bytes;
double value;
int32_t mantissa, exp;
uint32_t first, second;
bytes = base + offset;
first = (((uint32_t) (bytes[0] & 0xFF) << 24) |
((uint32_t) (bytes[1] & 0xFF) << 16) |
((uint32_t) (bytes[2] & 0xFF) << 8) |
(uint32_t) (bytes[3] & 0xFF));
second = (((uint32_t) (bytes[4] & 0xFF) << 24) |
((uint32_t) (bytes[5] & 0xFF) << 16) |
((uint32_t) (bytes[6] & 0xFF) << 8) |
(uint32_t) (bytes[7] & 0xFF));
if(first == 0 && second == 0) {
value = 0.0;
} else {
exp = (first & 0x7FF00000) >> _WI_BYTEORDER_IEEE754_EXP_POSITION;
if(exp == _WI_BYTEORDER_IEEE754_EXP_MAX) { /* Infinity or NaN */
value = HUGE_VAL; /* Map NaN's to infinity */
} else {
if(exp == 0) { /* Denormalized number */
mantissa = (first & 0x000FFFFF);
value = ldexp((double) mantissa, exp - _WI_BYTEORDER_IEEE754_EXP_OFFSET - _WI_BYTEORDER_IEEE754_EXP_POSITION + 1);
value += ldexp((double) second, exp - _WI_BYTEORDER_IEEE754_EXP_OFFSET - _WI_BYTEORDER_IEEE754_EXP_POSITION + 1 - 32);
} else { /* Normalized number */
mantissa = (first & 0x000FFFFF) + 0x00100000; /* Insert hidden bit */
value = ldexp((double) mantissa, exp - _WI_BYTEORDER_IEEE754_EXP_OFFSET - _WI_BYTEORDER_IEEE754_EXP_POSITION);
value += ldexp((double) second, exp - _WI_BYTEORDER_IEEE754_EXP_OFFSET - _WI_BYTEORDER_IEEE754_EXP_POSITION - 32);
}
}
}
if(first & 0x80000000)
return -value;
else
return value;
}
void wi_write_double_to_ieee754(void *base, uintptr_t offset, double value) {
unsigned char *bytes;
double fmantissa, fsmantissa;
int32_t sign, exp, mantissa, shift;
uint32_t first, second;
bytes = base + offset;
if(value < 0.0) { /* Can't distinguish a negative zero */
sign = 0x80000000;
value *= -1;
} else {
sign = 0;
}
if(value == 0.0) {
first = 0;
second = 0;
} else {
fmantissa = frexp(value, &exp);
if((exp > _WI_BYTEORDER_IEEE754_EXP_MAX - _WI_BYTEORDER_IEEE754_EXP_OFFSET + 1) || !(fmantissa < 1.0)) {
/* NaN's and infinities fail second test */
first = sign | 0x7FF00000; /* +/- infinity */
second = 0;
} else {
if (exp < -(_WI_BYTEORDER_IEEE754_EXP_OFFSET - 2)) { /* Smaller than normalized */
shift = (_WI_BYTEORDER_IEEE754_EXP_POSITION + 1) + (_WI_BYTEORDER_IEEE754_EXP_OFFSET - 2) + exp;
if(shift < 0) { /* Too small for something in the MS word */
first = sign;
shift += 32;
if(shift < 0) /* Way too small: flush to zero */
second = 0;
else /* Pretty small demorn */
second = (uint32_t) floor(ldexp(fmantissa, shift));
} else { /* Nonzero denormalized number */
fsmantissa = ldexp(fmantissa, shift);
mantissa = (int32_t) floor(fsmantissa);
first = sign | mantissa;
second = (uint32_t) floor(ldexp(fsmantissa - mantissa, 32));
}
} else { /* Normalized number */
fsmantissa = ldexp(fmantissa, _WI_BYTEORDER_IEEE754_EXP_POSITION + 1);
mantissa = (int32_t) floor(fsmantissa);
mantissa -= (1L << _WI_BYTEORDER_IEEE754_EXP_POSITION); /* Hide MSB */
fsmantissa -= (1L << _WI_BYTEORDER_IEEE754_EXP_POSITION);
first = sign | ((int32_t) ((exp + _WI_BYTEORDER_IEEE754_EXP_OFFSET - 1)) << _WI_BYTEORDER_IEEE754_EXP_POSITION) | mantissa;
second = (uint32_t) floor(ldexp(fsmantissa - mantissa, 32));
}
}
}
bytes[0] = first >> 24;
bytes[1] = first >> 16;
bytes[2] = first >> 8;
bytes[3] = first;
bytes[4] = second >> 24;
bytes[5] = second >> 16;
bytes[6] = second >> 8;
bytes[7] = second;
}
| 36.481865 | 128 | 0.692657 |
2f5551cae6e0a57284078c4dd5bcbf9d1755a031 | 12,424 | php | PHP | resources/views/layouts/header-backup.blade.php | nitishk879/CellCrazy | e542abefd58344f0a66d5ea14be0761eae84fa15 | [
"MIT"
] | null | null | null | resources/views/layouts/header-backup.blade.php | nitishk879/CellCrazy | e542abefd58344f0a66d5ea14be0761eae84fa15 | [
"MIT"
] | null | null | null | resources/views/layouts/header-backup.blade.php | nitishk879/CellCrazy | e542abefd58344f0a66d5ea14be0761eae84fa15 | [
"MIT"
] | null | null | null | @isset($services)
@foreach($services as $service)
<li class="menu-item-has-children"><a href="{{ route("services.show", $service->slug) }}">{{ $service->name }}</a>
@if($service->categories->count()>0)
<ul class="sub-menu">
@foreach($service->categories as $category)
<li class="menu-item-has-children"><a href="{{ route('categories.show', $category->slug) }}">{{ $category->name }}</a>
@if($category->types->count()>0)
<ul class="sub-menu">
@foreach($category->types as $type)
@if($type->items->count()>0)
<li><a href="{{ route("category.type", ["{$category->slug}", "{$type->slug}"]) }}">{{ $type->name }}</a></li>
@endif
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
@endif
@if($service->id!==1)
<ul class="sub-menu">
@foreach($service->categories as $category)
@if($category->types->count()>0)
@foreach($category->types as $type)
@if($type->items->count()>0)
<li><a href="{{ route("category.type", ["{$category->slug}", "{$type->slug}"]) }}">{{ $type->name }}</a></li>
@endif
@endforeach
@endif
@endforeach
</ul>
@endif
</li>
@endforeach
@endisset
<li class="menu-item-has-children"><a href="{{ route("services.show", "buy") }}">Shop</a>
<ul class="sub-menu">
<li class="menu-item-has-children"><a href="{{ route("categories.show", "brand-new") }}">Brand New</a>
<ul class="sub-menu">
<li><a href="{{ route("category.type", ['brand-new', 'phones']) }}">Phones</a></li>
<li><a href="{{ route("category.type", ['brand-new', 'ipad']) }}">iPad</a></li>
</ul>
</li>
<li class="menu-item-has-children"><a href="{{ route("categories.show", "refurbished") }}">Refurbished</a>
<ul class="sub-menu">
<li><a href="{{ route("category.type", ['refurbished', 'phones']) }}">Phones</a></li>
<li><a href="{{ route("category.type", ['refurbished', 'ipad']) }}">iPad</a></li>
</ul>
</li>
<li>
<a href="{{ route("categories.show", "premium-accessories") }}">Premium Accessories</a>
</li>
</ul>
</li>
<div class="category-toggle-wrap d-block d-lg-none">
<button class="category-toggle">Categories <i class="ti-menu"></i></button>
</div>
<nav class="category-menu">
<ul class="justify-content-between">
<li><a href="{{ route("category.type", ['freshen-up', 'phones']) }}">{{ __('Sell Phones') }}</a></li>
<li><a href="{{ route("category.type", ['freshen-up', 'ipad']) }}">{{ __('Sell iPads') }}</a></li>
<li><a href="{{ route('sell-mac') }}">{{ __('Sell Mac') }}</a></li>
<li><a href="{{ route("category.type", ['repair', 'phones']) }}">{{ __('Repair Phones') }}</a></li>
<li><a href="{{ route("category.type", ['repair', 'ipad']) }}">{{ __('Repair iPads') }}</a></li>
<li><a href="">{{ __('Repair Mac') }}</a></li>
</ul>
</nav>
Categories menu New theme Rozer:
<div class="header-menu-vertical">
<h4 class="menu-title">All Categories</h4>
@isset($services)
<ul class="menu-content display-none">
@foreach($services as $service)
<li class="menu-item">
<a href="{{ route("services.show", $service->slug) }}">{{ $service->name ?? '' }} @if($service->categories->count() > 0) <i class="ion-ios-arrow-right"></i> @endif</a>
<ul class="sub-menu flex-wrap">
@foreach($service->categories as $category)
<li>
<a href="{{ route("categories.show", $category->slug) }}">
<span> <strong> {{ $category->name ?? '' }}</strong></span>
</a>
<ul class="submenu-item">
@foreach($category->items as $item)
<li><a href="{{ route('category.item', [$category->slug, $item->slug]) }}">{{ $item->name ?? '' }}</a></li>
@endforeach
</ul>
</li>
@endforeach
</ul>
<!-- sub menu -->
@if($service->id>2) @break @endif
</li>
@endforeach
</ul>
@endisset
</div>
Mobile categories
<!-- Search Category End -->
<div class="mobile-category-nav d-xl-none mb-15px">
<div class="container">
<div class="row">
<div class="col-md-12">
<!--======= category menu =======-->
<div class="hero-side-category">
<!-- Category Toggle Wrap -->
<div class="category-toggle-wrap">
<!-- Category Toggle -->
<button class="category-toggle"><i class="fa fa-bars"></i> All Categories</button>
</div>
<!-- Category Menu -->
<nav class="category-menu">
<ul>
<li class="menu-item-has-children menu-item-has-children-1">
<a href="#">Accessories & Parts<i class="ion-ios-arrow-down"></i></a>
<!-- category submenu -->
<ul class="category-mega-menu category-mega-menu-1">
<li><a href="#">Cables & Adapters</a></li>
<li><a href="#">Batteries</a></li>
<li><a href="#">Chargers</a></li>
<li><a href="#">Bags & Cases</a></li>
<li><a href="#">Electronic Cigarettes</a></li>
</ul>
</li>
<li class="menu-item-has-children menu-item-has-children-2">
<a href="#">Camera & Photo<i class="ion-ios-arrow-down"></i></a>
<!-- category submenu -->
<ul class="category-mega-menu category-mega-menu-2">
<li><a href="#">Digital Cameras</a></li>
<li><a href="#">Camcorders</a></li>
<li><a href="#">Camera Drones</a></li>
<li><a href="#">Action Cameras</a></li>
<li><a href="#">Photo Studio Supplies</a></li>
</ul>
</li>
<li class="menu-item-has-children menu-item-has-children-3">
<a href="#">Smart Electronics <i class="ion-ios-arrow-down"></i></a>
<!-- category submenu -->
<ul class="category-mega-menu category-mega-menu-3">
<li><a href="#">Wearable Devices</a></li>
<li><a href="#">Smart Home Appliances</a></li>
<li><a href="#">Smart Remote Controls</a></li>
<li><a href="#">Smart Watches</a></li>
<li><a href="#">Smart Wristbands</a></li>
</ul>
</li>
<li class="menu-item-has-children menu-item-has-children-4">
<a href="#">Audio & Video <i class="ion-ios-arrow-down"></i></a>
<!-- category submenu -->
<ul class="category-mega-menu category-mega-menu-4">
<li><a href="#">Televisions</a></li>
<li><a href="#">TV Receivers</a></li>
<li><a href="#">Projectors</a></li>
<li><a href="#">Audio Amplifier Boards</a></li>
<li><a href="#">TV Sticks</a></li>
</ul>
</li>
<li class="menu-item-has-children menu-item-has-children-5">
<a href="#">Portable Audio & Video <i class="ion-ios-arrow-down"></i></a>
<!-- category submenu -->
<ul class="category-mega-menu category-mega-menu-5">
<li><a href="#">Headphones</a></li>
<li><a href="#">Speakers</a></li>
<li><a href="#">MP3 Players</a></li>
<li><a href="#">VR/AR Devices</a></li>
<li><a href="#">Microphones</a></li>
</ul>
</li>
<li class="menu-item-has-children menu-item-has-children-6">
<a href="#">Video Game <i class="ion-ios-arrow-down"></i></a>
<!-- category submenu -->
<ul class="category-mega-menu category-mega-menu-6">
<li><a href="#">Handheld Game Players</a></li>
<li><a href="#">Game Controllers</a></li>
<li><a href="#">Joysticks</a></li>
<li><a href="#">Stickers</a></li>
</ul>
</li>
<li><a href="#">Televisions</a></li>
<li><a href="#">Digital Cameras</a></li>
<li><a href="#">Headphones</a></li>
<li><a href="#">Wearable Devices</a></li>
<li><a href="#">Smart Watches</a></li>
<li><a href="#">Game Controllers</a></li>
<li><a href="#"> Smart Home Appliances</a></li>
<li class="hidden"><a href="#">Projectors</a></li>
<li>
<a href="#" id="more-btn"><i class="ion-ios-plus-empty" aria-hidden="true"></i> More Categories</a>
</li>
</ul>
</nav>
</div>
<!--======= End of category menu =======-->
</div>
</div>
</div>
</div>
<!-- Mobile Header Section End -->
| 60.31068 | 187 | 0.34699 |
18176734f5cbb7f78bf9cc706674ea331f983c28 | 1,228 | css | CSS | OptStyleSheet.css | usnistgov/OptimizationMetamodel | 881b9c3c0544a49151111cc7d332ffa96f0c5d58 | [
"Unlicense",
"MIT"
] | 2 | 2016-09-12T17:38:39.000Z | 2017-08-13T23:12:28.000Z | OptStyleSheet.css | usnistgov/OptimizationMetamodel | 881b9c3c0544a49151111cc7d332ffa96f0c5d58 | [
"Unlicense",
"MIT"
] | null | null | null | OptStyleSheet.css | usnistgov/OptimizationMetamodel | 881b9c3c0544a49151111cc7d332ffa96f0c5d58 | [
"Unlicense",
"MIT"
] | null | null | null | Enumeration {
fontName:"Segoe UI";
fillColor:#B897C0;
transparency:0.0;
gradient:#FFFFFF vertical;
lineColor:#000000;
qualifiedNameDepth:2;
shadow:true
}
PrimitiveType {
fontName:"Segoe UI";
fillColor:#A6C198;
transparency:0.0;
gradient:#FFFFFF vertical;
lineColor:#000000;
qualifiedNameDepth:2;
shadow:true
}
Class {
fontName:"Segoe UI";
fillColor:#C3D7DD;
transparency:0.0;
gradient:#FFFFFF vertical;
lineColor:#000000;
qualifiedNameDepth:2;
shadow:true
}
Property {
maskLabel: isDerived isDerivedUnion name type multiplicity defaultValue;
}
Class > Compartment[kind="operations"] {
visible:false;
}
Class > Compartment[kind="nested classifiers"] {
visible:false;
}
Class > Compartment[kind="nestedClassifiers"] {
visible:false;
}
Class > Compartment[kind="nestedclassifiers"] {
visible:false;
}
Class > Compartment[kind="symbol"] {
visible:false;
}
PrimitiveType > Compartment[kind="attributes"] {
visible:false;
}
PrimitiveType > Compartment[kind="operations"] {
visible:false;
}
Package {
fontName:"Segoe UI";
fillColor:#EDC97A;
transparency:0.0;
gradient:#FFFFFF vertical;
lineColor:#000000
}
Generalization {
fontName:"Segoe UI";
routing:Rectilinear;
lineColor:#000000
}
| 15.948052 | 73 | 0.739414 |
4a6771fb7e4316b8069a61f708781eaaece2c81d | 617 | js | JavaScript | server/mod/forum/amd/build/big_search_form.min.js | woon5118/totara_ub | a38f8e5433c93d295f6768fb24e5eecefa8294cd | [
"PostgreSQL"
] | null | null | null | server/mod/forum/amd/build/big_search_form.min.js | woon5118/totara_ub | a38f8e5433c93d295f6768fb24e5eecefa8294cd | [
"PostgreSQL"
] | null | null | null | server/mod/forum/amd/build/big_search_form.min.js | woon5118/totara_ub | a38f8e5433c93d295f6768fb24e5eecefa8294cd | [
"PostgreSQL"
] | null | null | null | define([],function(){return{init:function(){var a=document.getElementById("searchform"),b=function(b,c){for(var d=a.querySelectorAll("select[name^="+b+"]"),e=0;e<d.length;e++)d[e].disabled=c;for(var f=a.querySelectorAll("input[name^="+b+"]"),g=c?1:0,h=0;h<f.length;h++)f[h].value=g};b("from",!a.querySelector("input[name='timefromrestrict']").checked),b("to",!a.querySelector("input[name='timetorestrict']").checked),a.addEventListener("click",function(a){a.target.matches("input[name='timefromrestrict']")?b("from",!a.target.checked):a.target.matches("input[name='timetorestrict']")&&b("to",!a.target.checked)})}}}); | 617 | 617 | 0.703404 |
e55420a1806260ad12e0fe7e2c7a46ba5bb07551 | 640 | tsx | TypeScript | packages/react/src/TimePicker/TimePickerPanel.spec.tsx | shenxdtw/mezzanine | 19eeac12f196e3323cfd9b02d6d2c49502011db3 | [
"MIT"
] | 15 | 2021-03-26T11:59:10.000Z | 2022-03-15T10:33:15.000Z | packages/react/src/TimePicker/TimePickerPanel.spec.tsx | shenxdtw/mezzanine | 19eeac12f196e3323cfd9b02d6d2c49502011db3 | [
"MIT"
] | 61 | 2021-02-02T06:00:11.000Z | 2022-03-30T11:10:04.000Z | packages/react/src/TimePicker/TimePickerPanel.spec.tsx | shenxdtw/mezzanine | 19eeac12f196e3323cfd9b02d6d2c49502011db3 | [
"MIT"
] | 3 | 2021-08-21T19:39:39.000Z | 2022-02-10T16:45:32.000Z | import { CalendarMethodsMoment } from '@mezzanine-ui/core/calendar';
import {
cleanup,
render,
} from '../../__test-utils__';
import {
describeForwardRefToHTMLElement,
} from '../../__test-utils__/common';
import { CalendarConfigProvider } from '../Calendar';
import { TimePickerPanel } from '.';
describe('<TimePickerPanel />', () => {
Element.prototype.scrollTo = () => {};
afterEach(cleanup);
describeForwardRefToHTMLElement(
HTMLDivElement,
(ref) => render(
<CalendarConfigProvider methods={CalendarMethodsMoment}>
<TimePickerPanel ref={ref} open />
</CalendarConfigProvider>,
),
);
});
| 24.615385 | 68 | 0.670313 |
8592f4273fc4d5c8c5be02413f357ec22382a7f0 | 2,628 | js | JavaScript | docs/search/all_5.js | Exepp/ECSpp | fb7ba249e538ae6cdd910cfe2b28aa1000dbcc11 | [
"MIT"
] | null | null | null | docs/search/all_5.js | Exepp/ECSpp | fb7ba249e538ae6cdd910cfe2b28aa1000dbcc11 | [
"MIT"
] | null | null | null | docs/search/all_5.js | Exepp/ECSpp | fb7ba249e538ae6cdd910cfe2b28aa1000dbcc11 | [
"MIT"
] | null | null | null | var searchData=
[
['get_43',['get',['../classepp_1_1CMask.html#adbdf15fdd83d649f650e5801ad00ce1f',1,'epp::CMask::get()'],['../classepp_1_1EntityList.html#aff8149e7876a5f6bad8e9f567a3d0b28',1,'epp::EntityList::get()']]],
['getbitset_44',['getBitset',['../classepp_1_1CMask.html#ae4fe47ec4e0402a6224ba8632c686689',1,'epp::CMask::getBitset()'],['../classepp_1_1CMask.html#aeccabd6875151a88dd9e8e63cc20fb52',1,'epp::CMask::getBitset() const']]],
['getcid_45',['getCId',['../classepp_1_1CPool.html#a3776120ed4a8ed08f2ba8948ae280e58',1,'epp::CPool']]],
['getcids_46',['getCIds',['../classepp_1_1Archetype.html#a9b002729addc769deee0d2977d8cfb49',1,'epp::Archetype']]],
['getcmask_47',['getCMask',['../classepp_1_1EntitySpawner_1_1Creator.html#a3a45b6070270c525cc526991d7e83a75',1,'epp::EntitySpawner::Creator']]],
['getdata_48',['GetData',['../classepp_1_1CMetadata.html#a43f3c16a156e3e444754a5f327dbf67b',1,'epp::CMetadata']]],
['getentities_49',['getEntities',['../classepp_1_1EntitySpawner.html#af241df5e9ec56bbfe6a1e043873a20fe',1,'epp::EntitySpawner']]],
['getentity_50',['getEntity',['../classepp_1_1EntitySpawner_1_1Creator.html#a3ab558e4a74483e2852d89fddcd7a3c1',1,'epp::EntitySpawner::Creator']]],
['getfirstel_51',['getFirstEl',['../classepp_1_1llvm_1_1SmallVectorTemplateCommon.html#abe3bb4d7e8ee76dab4f1b1a721006fb4',1,'epp::llvm::SmallVectorTemplateCommon']]],
['getmask_52',['getMask',['../classepp_1_1Archetype.html#a72d2a6d9bf1cce6fcd87ead6d5bd662a',1,'epp::Archetype']]],
['getpool_53',['getPool',['../classepp_1_1EntitySpawner.html#a6e949b752b22b7c5089ad957daa57d83',1,'epp::EntitySpawner::getPool(ComponentId cId)'],['../classepp_1_1EntitySpawner.html#adebd999641fc201dcc5b6fcf52571a8c',1,'epp::EntitySpawner::getPool(ComponentId cId) const']]],
['getsetcount_54',['getSetCount',['../classepp_1_1CMask.html#ad63f6eb27581a441df886bf9da1e3d9d',1,'epp::CMask']]],
['getunwanted_55',['getUnwanted',['../classepp_1_1Selection.html#aa5cd43d7452b228a5cc889dfc7e0f81d',1,'epp::Selection']]],
['getwanted_56',['getWanted',['../classepp_1_1Selection.html#a619f06155a19facffe31bb826cfeb543',1,'epp::Selection']]],
['grow_57',['grow',['../classepp_1_1llvm_1_1SmallVectorTemplateBase.html#a03410aee4b75f62cbc76817f28c7a353',1,'epp::llvm::SmallVectorTemplateBase::grow()'],['../classepp_1_1llvm_1_1SmallVectorTemplateBase_3_01T_00_01true_01_4.html#a0844310baa19bfcafcded8a660bdf624',1,'epp::llvm::SmallVectorTemplateBase< T, true >::grow()']]],
['grow_5fpod_58',['grow_pod',['../classepp_1_1llvm_1_1SmallVectorBase.html#ae85c57b5152a4466c0f02f3fa39489c8',1,'epp::llvm::SmallVectorBase']]]
];
| 131.4 | 335 | 0.775114 |
14292caac873be67593064ce9673e9cd095c5775 | 844 | kt | Kotlin | app/src/main/java/com/openclassrooms/realestatemanager/view/splash/SplashActivity.kt | mutwakilmo/RealEstateManager | 85115879ceee2a6e64d7730875998c115785915b | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/openclassrooms/realestatemanager/view/splash/SplashActivity.kt | mutwakilmo/RealEstateManager | 85115879ceee2a6e64d7730875998c115785915b | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/openclassrooms/realestatemanager/view/splash/SplashActivity.kt | mutwakilmo/RealEstateManager | 85115879ceee2a6e64d7730875998c115785915b | [
"Apache-2.0"
] | null | null | null | package com.openclassrooms.realestatemanager.view.splash
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.openclassrooms.realestatemanager.R
import com.openclassrooms.realestatemanager.view.login.LoginActivity
class SplashActivity : AppCompatActivity() {
private val SPLASH_TIME_OUT: Long = 10000 //3 second
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
supportActionBar?.hide()
Handler().postDelayed({
//This method will be executed once the timer is over
startActivity(Intent(this, LoginActivity::class.java))
//close this activity
finish()
}, SPLASH_TIME_OUT)
}
} | 33.76 | 68 | 0.729858 |
719be59623e8021ec3a58c72a8f5fc32588f276e | 395 | swift | Swift | PartyDrinksTracker/Extensions/RuntimeError.swift | jnekrasov/PartyDrinksTracker | 06a5b9695f8c914dd19e11b1a8f33f5b8254dd4a | [
"MIT"
] | null | null | null | PartyDrinksTracker/Extensions/RuntimeError.swift | jnekrasov/PartyDrinksTracker | 06a5b9695f8c914dd19e11b1a8f33f5b8254dd4a | [
"MIT"
] | null | null | null | PartyDrinksTracker/Extensions/RuntimeError.swift | jnekrasov/PartyDrinksTracker | 06a5b9695f8c914dd19e11b1a8f33f5b8254dd4a | [
"MIT"
] | null | null | null | //
// ErrorsExtensions.swift
// PartyDrinksTracker
//
// Created by Jevgenij Nekrasov on 25/12/2018.
// Copyright © 2018 Jevgenij Nekrasov. All rights reserved.
//
import Foundation
struct RuntimeError: Error {
let message: String
init(_ message: String) {
self.message = message
}
public var localizedDescription: String {
return message
}
}
| 17.954545 | 60 | 0.655696 |
3d552cf578e89860c904d523bc33af111d9d6814 | 5,285 | rs | Rust | src/evds_c/error_handling.rs | asari555/tcmb_evds_c | 033cf5fc887f032090023b96530b10ebeb3694c5 | [
"MIT"
] | 3 | 2021-09-12T18:39:35.000Z | 2021-11-20T11:32:50.000Z | src/evds_c/error_handling.rs | asari555/tcmb_evds_c | 033cf5fc887f032090023b96530b10ebeb3694c5 | [
"MIT"
] | null | null | null | src/evds_c/error_handling.rs | asari555/tcmb_evds_c | 033cf5fc887f032090023b96530b10ebeb3694c5 | [
"MIT"
] | null | null | null | use crate::error::ReturnError;
use super::common_entities::TcmbEvdsResult;
/// There is a **'C'** letter at the end of the enum name. This comes from C language. The name means that
/// `ReturnError` for C.
#[derive(Debug)]
#[repr(C)]
pub enum ReturnErrorC {
NoError,
InvalidApiKeyOrBadInternetConnection,
BadInternetConnection,
BadInternetConnectionOrInvalidUrl,
InvalidUrl,
InvalidSeries,
EmptyParameter,
InvalidDate,
EmptyExchangeType,
EmptyCurrencyCodes,
SingleExchangeTypeExpected,
SingleDateExpected,
MultipleDateExpected,
RequestDenied,
NotFound,
UnableToRequest,
UnableToSetUrl,
FailedToApplyRequest,
FailedToSaveReceivedData,
ResponseError,
EmptyResponse,
ForbiddenRequest,
MissingNumberInDateData,
MissingDashInDateData,
MissingCommaInDateData,
DateDataExceedingLengthLimit,
UndefinedDateDataFormat,
ParameterError,
}
/// converts `error::ReturnError` into `error_handling::ReturnErrorC` with error message.
fn convert_return_error(return_error: ReturnError) -> (ReturnErrorC, String) {
let error;
let error_message;
match return_error {
ReturnError::InvalidApiKeyOrBadInternetConnection => {
error = ReturnErrorC::InvalidApiKeyOrBadInternetConnection;
error_message = ReturnError::InvalidApiKeyOrBadInternetConnection.to_string();
},
ReturnError::BadInternetConnection => {
error = ReturnErrorC::BadInternetConnection;
error_message = ReturnError::BadInternetConnection.to_string();
},
ReturnError::BadInternetConnectionOrInvalidUrl => {
error = ReturnErrorC::BadInternetConnectionOrInvalidUrl;
error_message = ReturnError::BadInternetConnectionOrInvalidUrl.to_string();
},
ReturnError::InvalidUrl => {
error = ReturnErrorC::InvalidUrl;
error_message = ReturnError::InvalidUrl.to_string();
},
ReturnError::InvalidSeries => {
error = ReturnErrorC::InvalidSeries;
error_message = ReturnError::InvalidSeries.to_string();
},
ReturnError::EmptyParameter => {
error = ReturnErrorC::EmptyParameter;
error_message = ReturnError::EmptyParameter.to_string();
},
ReturnError::InvalidDate => {
error = ReturnErrorC::InvalidDate;
error_message = ReturnError::InvalidDate.to_string();
},
ReturnError::EmptyExchangeType => {
error = ReturnErrorC::EmptyExchangeType;
error_message = ReturnError::EmptyExchangeType.to_string();
},
ReturnError::EmptyCurrencyCodes => {
error = ReturnErrorC::EmptyCurrencyCodes;
error_message = ReturnError::EmptyCurrencyCodes.to_string();
},
ReturnError::SingleExchangeTypeExpected => {
error = ReturnErrorC::SingleExchangeTypeExpected;
error_message = ReturnError::SingleExchangeTypeExpected.to_string();
},
ReturnError::SingleDateExpected => {
error = ReturnErrorC::SingleDateExpected;
error_message = ReturnError::SingleDateExpected.to_string();
},
ReturnError::MultipleDateExpected => {
error = ReturnErrorC::MultipleDateExpected;
error_message = ReturnError::MultipleDateExpected.to_string();
},
ReturnError::RequestDenied => {
error = ReturnErrorC::RequestDenied;
error_message = ReturnError::RequestDenied.to_string();
},
ReturnError::NotFound => {
error = ReturnErrorC::NotFound;
error_message = ReturnError::NotFound.to_string();
},
ReturnError::UnableToRequest => {
error = ReturnErrorC::UnableToRequest;
error_message = ReturnError::UnableToRequest.to_string();
},
ReturnError::UnableToSetUrl => {
error = ReturnErrorC::UnableToSetUrl;
error_message = ReturnError::UnableToSetUrl.to_string();
},
ReturnError::FailedToApplyRequest => {
error = ReturnErrorC::FailedToApplyRequest;
error_message = ReturnError::FailedToApplyRequest.to_string();
},
ReturnError::FailedToSaveReceivedData => {
error = ReturnErrorC::FailedToSaveReceivedData;
error_message = ReturnError::FailedToSaveReceivedData.to_string();
},
ReturnError::ResponseError(message) => {
error = ReturnErrorC::ResponseError;
error_message = message;
},
ReturnError::EmptyResponse => {
error = ReturnErrorC::EmptyResponse;
error_message = ReturnError::EmptyResponse.to_string();
},
ReturnError::ForbiddenRequest => {
error = ReturnErrorC::ForbiddenRequest;
error_message = ReturnError::ForbiddenRequest.to_string();
},
}
(error, error_message)
}
pub(crate) fn handle_return_error(return_error: ReturnError) -> TcmbEvdsResult {
let (error_type, error_message) = convert_return_error(return_error);
TcmbEvdsResult::generate_result(error_message, error_type)
}
| 28.879781 | 107 | 0.651845 |
0bdeb5af8c5c3b7a58c41c7fad83797932d888fc | 899 | js | JavaScript | node_modules/monk/lib/util.js | melissadu/safecityproject | bb5edd05e43844495f22e309b4ae3eafe8f340a8 | [
"MIT"
] | 36 | 2015-12-19T11:40:21.000Z | 2021-03-28T04:46:27.000Z | node_modules/monk/lib/util.js | michaelgu95/gitbitbot | 123440be29793d70a4216b3c73845d5ccb5f6600 | [
"MIT"
] | 93 | 2015-12-07T00:19:05.000Z | 2021-09-03T18:14:18.000Z | node_modules/monk/lib/util.js | michaelgu95/gitbitbot | 123440be29793d70a4216b3c73845d5ccb5f6600 | [
"MIT"
] | 11 | 2015-12-19T11:39:54.000Z | 2019-03-06T10:37:59.000Z |
/**
* Parses all the possible ways of expressing fields.
*
* @param {String|Object|Array} fields
* @return {Object} fields in object format
* @api public
*/
exports.fields = function (obj) {
if (!Array.isArray(obj) && 'object' == typeof obj) {
return obj;
}
var fields = {};
obj = 'string' == typeof obj ? obj.split(' ') : (obj || []);
for (var i = 0, l = obj.length; i < l; i++) {
if ('-' == obj[i][0]) {
fields[obj[i].substr(1)] = 0;
} else {
fields[obj[i]] = 1;
}
}
return fields;
};
/**
* Parses an object format.
*
* @param {String|Array|Object} fields or options
* @return {Object} options
* @api public
*/
exports.options = function (opts) {
if ('string' == typeof opts || Array.isArray(opts)) {
return { fields: exports.fields(opts) };
}
opts = opts || {};
opts.fields = exports.fields(opts.fields);
return opts;
};
| 19.977778 | 62 | 0.569522 |
0348a7e5958014633473fce81c3bbc26573fb43d | 9,827 | kt | Kotlin | SimpleItemView/src/main/java/br/com/cristianodp/widge/SimpleItemView.kt | cristianodp/Widge-Android | 4cf21352ac8020f39d8a009dd590a55a97188aec | [
"MIT"
] | null | null | null | SimpleItemView/src/main/java/br/com/cristianodp/widge/SimpleItemView.kt | cristianodp/Widge-Android | 4cf21352ac8020f39d8a009dd590a55a97188aec | [
"MIT"
] | null | null | null | SimpleItemView/src/main/java/br/com/cristianodp/widge/SimpleItemView.kt | cristianodp/Widge-Android | 4cf21352ac8020f39d8a009dd590a55a97188aec | [
"MIT"
] | null | null | null | package br.com.cristianodp.widge
import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.Context
import android.content.res.TypedArray
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.os.Build
import android.support.annotation.Dimension
import android.support.constraint.ConstraintLayout
import android.util.AttributeSet
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import android.support.constraint.ConstraintSet
import br.com.cristianodp.widge.R.id.wrap_content
/**
* Created by crist on 01/01/2018.
*/
class SimpleItemView : LinearLayout {
private lateinit var mConstraintLayoutContainer: ConstraintLayout
private lateinit var mIcon: ImageView
private lateinit var mLabel: TextView
private lateinit var mValue: TextView
private lateinit var attrs:AttributeSet
@JvmOverloads
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : super(context, attrs, defStyleAttr) {
init(context,attrs)
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes) {
init(context,attrs)
}
/**
* Initialize view
*/
private fun init(context: Context,attrs: AttributeSet?) {
this.attrs = attrs!!
val customAttrs = context.obtainStyledAttributes(
attrs,
R.styleable.SimpleItemView)
val icon = customAttrs.getDrawable(R.styleable.SimpleItemView_icon)
val label = customAttrs.getString(R.styleable.SimpleItemView_label)
val value = customAttrs.getString(R.styleable.SimpleItemView_value)
val size = customAttrs.getDimension(R.styleable.SimpleItemView_textSize,0f)
val color = customAttrs.getColor(R.styleable.SimpleItemView_textColor,0)
val sizeLabel = customAttrs.getDimension(R.styleable.SimpleItemView_textSizeLabel,0f)
val colorLabel = customAttrs.getColor(R.styleable.SimpleItemView_textColorLabel,0)
val sizeValue = customAttrs.getDimension(R.styleable.SimpleItemView_textSizeValue,0f)
val colorValue = customAttrs.getColor(R.styleable.SimpleItemView_textColorValue,0)
val viewBackgroundColor = customAttrs.getColor(R.styleable.SimpleItemView_backgroundColor,0)
val appearance = customAttrs.getInt(R.styleable.SimpleItemView_appearance,0)
View.inflate(context, R.layout.simple_item_view_layout,this)
//Get references to text views
mIcon = findViewById<ImageView>(R.id.ImageViewIcon)
mLabel = findViewById<TextView>(R.id.TextViewLabel)
mValue = findViewById<TextView>(R.id.TextViewValue)
mConstraintLayoutContainer = findViewById<ConstraintLayout>(R.id.ConstraintLayoutContainer)
mIcon.setImageDrawable(icon)
mLabel.text = label
mValue.text = value
if (size != 0f ){
mLabel.textSize = size
mValue.textSize = size
}
if (color != 0 ){
mLabel.setTextColor(color)
mValue.setTextColor(color)
}
if (sizeValue != 0f ){
mValue.textSize = sizeValue
}
if (colorValue != 0 ){
mValue.setTextColor(colorValue)
}
if (sizeLabel != 0f ){
mLabel.textSize = sizeLabel
}
if (colorLabel != 0 ){
mLabel.setTextColor(colorLabel)
}
if (viewBackgroundColor != 0 ) {
mConstraintLayoutContainer.setBackgroundColor(viewBackgroundColor)
}
// setAppearance
}
fun setValue(text: String){
mValue.text = text
}
fun getValue():String{
return mValue.text.toString()
}
fun setIcon(icon: Drawable){
mIcon.setImageDrawable(icon)
}
fun setLabel(text: String){
mLabel.text = text
}
fun getLabel():String{
return mLabel.text.toString()
}
fun setTextSize(size: Float){
mValue.textSize = size
mLabel.textSize = size
}
fun setTextSizeLabel(size: Float){
mLabel.textSize = size
}
fun setTextSizeValue(size: Float){
mValue.textSize = size
}
fun setTextColor(color: Int){
mValue.setTextColor(color)
mLabel.setTextColor(color)
}
fun setTextColorLabel(color: Int){
mLabel.setTextColor(color)
}
fun setTextColorValue(color: Int){
mValue.setTextColor(color)
}
fun setAppearance(appearance: Int){
when (appearance) {
0 -> setAppearanceInLine()
1 -> setAppearanceInPiled()
else -> { // Note the block
setAppearanceInLine()
}
}
}
private fun setAppearanceInLine() {
mIcon.visibility = View.VISIBLE
val constraintSet = ConstraintSet()
constraintSet.clone(mConstraintLayoutContainer)
val margin = resources.getDimension(R.dimen.medium_padding).toInt()
//ImageViewIcon
constraintSet.clear(R.id.ImageViewIcon, ConstraintSet.END)
constraintSet.connect(R.id.ImageViewIcon, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM,margin)
constraintSet.connect(R.id.ImageViewIcon, ConstraintSet.START, ConstraintSet.PARENT_ID, ConstraintSet.START,margin)
constraintSet.connect(R.id.ImageViewIcon, ConstraintSet.TOP, ConstraintSet.PARENT_ID, ConstraintSet.TOP,margin)
constraintSet.constrainDefaultWidth(R.id.ImageViewIcon,wrap_content)
constraintSet.constrainDefaultHeight(R.id.ImageViewIcon,wrap_content)
//TextViewLabel
//constraintSet.clear(R.id.TextViewLabel)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM,margin)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.END, R.id.TextViewValue, ConstraintSet.START,margin)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.START, R.id.ImageViewIcon, ConstraintSet.END,margin)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.TOP, ConstraintSet.PARENT_ID, ConstraintSet.TOP,margin)
constraintSet.constrainDefaultWidth(R.id.TextViewLabel,wrap_content)
constraintSet.constrainDefaultHeight(R.id.TextViewLabel,wrap_content)
constraintSet.setHorizontalBias(R.id.TextViewLabel,0f)
//TextViewValue
constraintSet.clear(R.id.TextViewValue,ConstraintSet.START)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM,margin)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.END, ConstraintSet.PARENT_ID, ConstraintSet.END)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.TOP, ConstraintSet.PARENT_ID, ConstraintSet.TOP,margin)
constraintSet.constrainDefaultWidth(R.id.TextViewValue,wrap_content)
constraintSet.constrainDefaultHeight(R.id.TextViewValue,wrap_content)
// constraintSet.setHorizontalBias(R.id.TextViewValue,0f)
// mValue.textSize = 24f
constraintSet.applyTo(mConstraintLayoutContainer)
}
private fun setAppearanceInPiled() {
mIcon.visibility = View.GONE
val constraintSet = ConstraintSet()
constraintSet.clone(mConstraintLayoutContainer)
//ImageViewIcon
constraintSet.clear(R.id.ImageViewIcon, ConstraintSet.START)
constraintSet.connect(R.id.ImageViewIcon, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM)
constraintSet.connect(R.id.ImageViewIcon, ConstraintSet.START, ConstraintSet.PARENT_ID, ConstraintSet.START)
constraintSet.connect(R.id.ImageViewIcon, ConstraintSet.TOP, ConstraintSet.PARENT_ID, ConstraintSet.TOP)
constraintSet.constrainDefaultWidth(R.id.ImageViewIcon,wrap_content)
constraintSet.constrainDefaultHeight(R.id.ImageViewIcon,wrap_content)
//TextViewLabel
constraintSet.clear(R.id.TextViewLabel,ConstraintSet.BOTTOM)
//constraintSet.connect(R.id.TextViewLabel, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM,8)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.END, ConstraintSet.PARENT_ID, ConstraintSet.END,8)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.START, ConstraintSet.PARENT_ID, ConstraintSet.START,8)
constraintSet.connect(R.id.TextViewLabel, ConstraintSet.TOP, ConstraintSet.PARENT_ID, ConstraintSet.TOP,8)
constraintSet.setHorizontalBias(R.id.TextViewLabel,0.5f)
constraintSet.constrainDefaultWidth(R.id.TextViewLabel,wrap_content)
constraintSet.constrainDefaultHeight(R.id.TextViewLabel,wrap_content)
//mLabel.textAlignment = View.TEXT_ALIGNMENT_CENTER
//TextViewValue
//* constraintSet.clear(R.id.TextViewValue)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM,8)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.END, R.id.TextViewLabel, ConstraintSet.END)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.START, R.id.TextViewLabel, ConstraintSet.START)
constraintSet.connect(R.id.TextViewValue, ConstraintSet.TOP, R.id.TextViewLabel, ConstraintSet.BOTTOM,4)
constraintSet.constrainDefaultWidth(R.id.TextViewValue,wrap_content)
constraintSet.constrainDefaultHeight(R.id.TextViewValue,wrap_content)
// mValue.textAlignment = View.TEXT_ALIGNMENT_CENTER
//mValue.textSize = 14f
constraintSet.applyTo(mConstraintLayoutContainer)
}
} | 38.089147 | 144 | 0.717818 |
3a2442a8c9518ea7c99fd943ee36aee9c13019af | 124 | sql | SQL | database/sql_scripts/generos.sql | pabloIO/clinica-unifranz | 825035a5c494f909ebb016b34bdb917c4eee9bf3 | [
"MIT"
] | null | null | null | database/sql_scripts/generos.sql | pabloIO/clinica-unifranz | 825035a5c494f909ebb016b34bdb917c4eee9bf3 | [
"MIT"
] | null | null | null | database/sql_scripts/generos.sql | pabloIO/clinica-unifranz | 825035a5c494f909ebb016b34bdb917c4eee9bf3 | [
"MIT"
] | null | null | null | -- INSERTAR LOS GENEROS --
INSERT INTO genero(nombre) VALUES ('Masculino');
INSERT INTO genero(nombre) VALUES ('Femenino');
| 31 | 48 | 0.733871 |
243f4788b977bd94b770208ac24cb0cd9fe6f745 | 381 | sql | SQL | sql/TopCompetitor.sql | SamuelNjenga/hackerrank-solutions | c8507ffdc70fbd89222d9e5f2a74ad589cfa0dfc | [
"MIT"
] | 1 | 2022-02-14T08:26:07.000Z | 2022-02-14T08:26:07.000Z | sql/TopCompetitor.sql | SamuelNjenga/hackerrank-solutions | c8507ffdc70fbd89222d9e5f2a74ad589cfa0dfc | [
"MIT"
] | null | null | null | sql/TopCompetitor.sql | SamuelNjenga/hackerrank-solutions | c8507ffdc70fbd89222d9e5f2a74ad589cfa0dfc | [
"MIT"
] | null | null | null | SELECT h.hacker_id, h.name FROM submissions s JOIN challenges c ON s.challenge_id = c.challenge_id JOIN difficulty d ON c.difficulty_level = d.difficulty_level JOIN hackers h ON s.hacker_id = h.hacker_id
WHERE s.score = d.score AND c.difficulty_level = d.difficulty_level GROUP BY h.hacker_id,h.name HAVING COUNT(s.hacker_id) > 1 ORDER BY COUNT(s.hacker_id) DESC, h.hacker_id ASC; | 190.5 | 204 | 0.792651 |
857c7a1e4880f3d28c4f40104351c438deb6438c | 5,235 | sql | SQL | cdnlink/CdnLink/Db/testdata_send.sql | cardeliverynetwork/openapi.net | 771c9ccb0a51cc012fa9844b28d8d136fc6918d6 | [
"X11"
] | null | null | null | cdnlink/CdnLink/Db/testdata_send.sql | cardeliverynetwork/openapi.net | 771c9ccb0a51cc012fa9844b28d8d136fc6918d6 | [
"X11"
] | null | null | null | cdnlink/CdnLink/Db/testdata_send.sql | cardeliverynetwork/openapi.net | 771c9ccb0a51cc012fa9844b28d8d136fc6918d6 | [
"X11"
] | 1 | 2016-12-07T18:26:38.000Z | 2016-12-07T18:26:38.000Z |
DECLARE @nextLoaid nvarchar(50);
SELECT @nextLoaid = SUBSTRING(CONVERT(nvarchar(50), NEWID()), 0, 8);
-- Insert test sends
INSERT INTO CdnSendLoads
(
LoadId,
ServiceRequired,
CustomerQuickCode,
CustomerContact,
CustomerOrganisationName,
CustomerAddressLines,
CustomerCity,
CustomerStateRegion,
CustomerZipPostCode,
PickupQuickCode,
PickupContact,
PickupOrganisationName,
PickupAddressLines,
PickupCity,
PickupStateRegion,
PickupZipPostCode,
PickupRequestedDate,
PickupRequestedDateIsExact,
DropoffQuickCode,
DropoffContact,
DropoffOrganisationName,
DropoffAddressLines,
DropoffCity,
DropoffStateRegion,
DropoffZipPostCode,
DropoffRequestedDate,
DropoffRequestedDateIsExact,
AllocatedCarrierScac
-- Optional allocation fields. Uncomment as required
--
-- , ShipperScac
-- , ContractedCarrierScac
-- , AssignedDriverRemoteId
)
VALUES
(
@nextLoaid, -- The use-once, unique to shipper load Id
1, -- Service required Transported (0 for driven)
'CDN', -- The customer quick code
'Wayne Pollock',
'Car Delivery Network, Inc.',
'7280 NW 87th Terr.',
'Kansas City',
'MO',
'64153',
'MS123', -- The pickup quick code
'Bill',
'Mirosoft',
'1065 La Avenida',
'Mountain View',
'CA',
'94043',
convert(varchar(10), getdate(), 120), -- Date only, Today
1, -- Exact date
'AP4242', -- The dropoff quick code
'Steve',
'Apple',
'1 Infinite Loop',
'Cupertino',
'CA',
'95014',
convert(varchar(10), getdate() + 2, 120), -- Date only, Today + 2 days
0, -- Non exact date (deliver by this date)
'SAC' -- Carrier to allocate to
-- Optional allocation fields. Uncomment as required
-- , 'CHRY', -- Used to originate job from entity other than the creating entity
-- , 'MID', -- Used when specifying Shipper, Contracted Carrier and Subcontractor. Must be the caller
-- , 'henry1234' -- Driver to assign to
);
INSERT INTO CdnSendVehicles(
LoadId,
Color,
Make,
Model,
Variant,
Vin,
LoadDirection,
LoadLevel,
LoadPosition,
[Weight]
)
VALUES (
@nextLoaid,
'Elephant Breath',
'Ford',
'Capri',
'123i',
'A123456789123456A',
1, -- Forward
1, -- Top
3, -- Position 3
3479 -- Lbs
);
INSERT INTO CdnSendVehicles(
LoadId,
Color,
Make,
Model,
Variant,
Vin,
LoadDirection,
LoadLevel,
LoadPosition,
[Weight]
)
VALUES (
@nextLoaid,
'Nacho Cheese',
'Renault',
'5',
'456 Turbo',
'B123456789123456B',
2, -- Reverse
2, -- Bottom
4, -- Position 4
3125 -- Lbs
);
INSERT INTO CdnSends(LoadId, QueuedDate, [Status], [Action])
VALUES (@nextLoaid, GETDATE(), 10, 0);
SELECT @nextLoaid = SUBSTRING(CONVERT(nvarchar(50), NEWID()), 0, 8);
INSERT INTO CdnSendLoads
(
LoadId,
ServiceRequired,
CustomerQuickCode,
CustomerContact,
CustomerOrganisationName,
CustomerAddressLines,
CustomerCity,
CustomerStateRegion,
CustomerZipPostCode,
PickupQuickCode,
PickupContact,
PickupOrganisationName,
PickupAddressLines,
PickupCity,
PickupStateRegion,
PickupZipPostCode,
PickupRequestedDate,
PickupRequestedDateIsExact,
DropoffQuickCode,
DropoffContact,
DropoffOrganisationName,
DropoffAddressLines,
DropoffCity,
DropoffStateRegion,
DropoffZipPostCode,
DropoffRequestedDate,
DropoffRequestedDateIsExact,
AllocatedCarrierScac
)
VALUES
(
@nextLoaid,
1,
'CDN',
'Wayne Pollock',
'Car Delivery Network, Inc.',
'7280 NW 87th Terr.',
'Kansas City',
'MO',
'64153',
'MS123',
'Bill',
'Mirosoft',
'1065 La Avenida',
'Mountain View',
'CA',
'94043',
convert(varchar(10), getdate(), 120),
0,
'AP4242',
'Steve',
'Apple',
'1 Infinite Loop',
'Cupertino',
'CA',
'95014',
convert(varchar(10), getdate() + 2, 120),
0,
'SAC'
);
INSERT INTO CdnSendTranships
(
LoadId,
TranshipNumber,
TripId,
AssignedDriverRemoteId,
AssignedTruckRemoteId,
AddressLines,
City,
Contact,
Email,
Notes,
OrganisationName,
Phone,
QuickCode,
StateRegion,
ZipPostCode
)
VALUES
(
@nextLoaid,
1,
'123',
'', -- Driver
'',
'2800 Lumber River Trail',
'Apex',
'',
'',
'Place of tranship',
'',
'555 1234',
'LRT',
'NC',
'27502'
)
INSERT INTO CdnSendVehicles(LoadId, Make, Model, Vin)
VALUES (@nextLoaid, 'Ford', 'Cortina', 'C123456789123456C');
INSERT INTO CdnSends(LoadId, QueuedDate, [Status], [Action])
VALUES (@nextLoaid, GETDATE(), 10, 0); | 21.721992 | 137 | 0.573066 |
3b0ea0159cabc1c7e405e4e15939428642b20dd6 | 31,121 | asm | Assembly | microchess.asm | makarcz/vm6502 | 6e6c535519756c89be90330676f2f4a210c14c41 | [
"Intel",
"X11"
] | 35 | 2016-04-18T15:11:21.000Z | 2022-01-06T18:50:50.000Z | microchess.asm | makarcz/vm6502 | 6e6c535519756c89be90330676f2f4a210c14c41 | [
"Intel",
"X11"
] | 2 | 2018-03-09T04:10:41.000Z | 2018-10-25T02:12:04.000Z | microchess.asm | makarcz/vm6502 | 6e6c535519756c89be90330676f2f4a210c14c41 | [
"Intel",
"X11"
] | 9 | 2016-03-14T07:12:10.000Z | 2020-08-10T13:26:48.000Z | ;***********************************************************************
;
; MicroChess (c) 1996-2002 Peter Jennings, peterj@benlo.com
;
;***********************************************************************
; Daryl Rictor:
; I have been given permission to distribute this program by the
; author and copyright holder, Peter Jennings. Please get his
; permission if you wish to re-distribute a modified copy of
; this file to others. He specifically requested that his
; copyright notice be included in the source and binary images.
; Thanks!
;
; Marek Karcz:
; I have been given permission to distribute this program by the
; original author Peter Jennings under condition that I include
; link to his website in attribution.
; Here it is: http://www.benlo.com/microchess/index.html
; I did not bother to contact Daryl Rictor to ask permission to
; distribute his modifications to this software because according to
; the copyright notice on the web page of his project, permission is
; already given for personal non-commercial use:
; http://sbc.rictor.org/avr65c02.html
; http://sbc.rictor.org/download/AVR65C02.zip, readme.txt
; If this is incorrect or I misunderstood the author's intention,
; please note that I acted with no malicious intent and will remove
; this file from my project if I receive such request.
;
; To build this program with CL65:
;
; cl65 -C microchess.cfg -l --start-addr 1024 -t none -o microchess.bin
; microchess.asm
;
; Binary image microchess.bin can be loaded to emulator with 'L'
; command in debug console. Start emulator: mkbasic, then issue
; command in debug console:
; L B MICROCHESS.BIN
;
; Memory image definition file can be generated which can be loaded
; to emulator via command line argument and automatically executed.
; To create that file, build microchess.bin image, then execute:
;
; bin2hex -f microchess.bin -o microchess.dat -w 0 -x 1024 -z
;
; and add following lines at the end of microchess.dat file:
;
; IOADDR
; $E000
; ENIO
;
; Instructions to play:
;
; Load the game to emulator and auto-execute with command:
; mkbasic microchess.dat
; then perform following steps:
; 1. Press 'C' to setup board.
; 2. Enter your move: 4 digits - BBEE, BB - piece coordinates,
; EE - destination coordinates and press ENTER
; 3. After board is updated, press 'P' to make program make the move.
; 4. Repeat steps 2 and 3 until the game is finished.
;
;
; 1/14/2012
; Modified Daryl Rictor's port to run on MKHBC-8-R1 homebrew
; computer under MKHBCOS (derivative of M.O.S. by Scott
; Chidester).
;
; 3/11/2016
; Adapted to run in MKBASIC (V65) emulator.
;
; 3/12/2016
; Modified UI behavior:
; - chess board is only printed after move, not after each
; keystroke
; - copyright banner is only printed once at the start
; of the program
;
; 6551 I/O Port Addresses
;
;ACIADat = $7F70
;ACIAsta = $7F71
;ACIACmd = $7F72
;ACIACtl = $7F73
; M.O.S. API defines (kernal) - OK for emulator, no changes
.define mos_StrPtr $E0
.define tmp_zpgPt $F6
; jumps, originally for M.O.S., now modified for emulator
.define mos_CallGetCh $FFED
.define mos_CallPutCh $FFF0
.define mos_CallPuts $FFF3
;
; page zero variables
;
BOARD = $50
BK = $60
PIECE = $B0
SQUARE = $B1
SP2 = $B2
SP1 = $B3
incHEK = $B4
STATE = $B5
MOVEN = $B6
REV = $B7
OMOVE = $2C
WCAP0 = $2D
COUNT = $2E
BCAP2 = $2E
WCAP2 = $2F
BCAP1 = $20
WCAP1 = $21
BCAP0 = $22
MOB = $23
MAXC = $24
CC = $25
PCAP = $26
BMOB = $23
BMAXC = $24
BMCC = $25 ; was bcc (TASS doesn't like it as a label)
BMAXP = $26
XMAXC = $28
WMOB = $2B
WMAXC = $3C
WCC = $3D
WMAXP = $3E
PMOB = $3F
PMAXC = $40
PCC = $41
PCP = $42
OLDKY = $43
BESTP = $4B
BESTV = $4A
BESTM = $49
DIS1 = $4B
DIS2 = $4A
DIS3 = $49
temp = $4C
;
;
;
.segment "BEGN"
.ORG $0000
.segment "CODE"
.ORG $0400 ; load into RAM @ $1000-$15FF
lda #$00 ; REVERSE TOGGLE
sta REV
jmp CHESS
PAINT: .byte $FF ; set this flag if board needs painting
; unset otherwise
PRNBANN:
.byte $FF ; set this flag to print copyright banner
;jsr Init_6551
CHESS: cld ; INITIALIZE
ldx #$FF ; TWO STACKS
txs
ldx #$C8
stx SP2
;
; ROUTINES TO LIGHT LED
; DISPLAY and GET KEY
; FROM KEYBOARD
;
OUT: jsr POUT ; DISPLAY and
jsr KIN ; GET INPUT *** my routine waits for a keypress
cmp #$43 ; [C]
bne NOSET ; SET UP
lda #$FF ; set PAINT flag
sta PAINT ; board needs to be diplayed
ldx #$1F ; BOARD
WHSET: lda SETW,X ; FROM
sta BOARD,X ; SETW
dex
bpl WHSET
ldx #$1B ; *ADDED
stx OMOVE ; INITS TO $FF
lda #$CC ; DISPLAY CCC
bne CLDSP
;
NOSET: cmp #$45 ; [E]
bne NOREV ; REVERSE
lda #$FF
sta PAINT
jsr REVERSE ; BOARD IS
sec
lda #$01
sbc REV
sta REV ; TOGGLE REV FLAG
lda #$EE ; IS
bne CLDSP
;
NOREV: cmp #$40 ; [P]
bne NOGO ; PLAY CHESS
lda #$FF
sta PAINT
jsr GO
CLDSP: sta DIS1 ; DISPLAY
sta DIS2 ; ACROSS
sta DIS3 ; DISPLAY
bne CHESS
;
NOGO: cmp #$0D ; [Enter]
bne NOMV ; MOVE MAN
pha
lda #$FF
sta PAINT
pla
jsr MOVE ; AS ENTERED
jmp DISP
NOMV: cmp #$41 ; [Q] ***Added to allow game exit***
beq DONE ; quit the game, exit back to system.
pha
lda #$00
sta PAINT
pla
jmp INPUT ; process move
DONE: rts
;jmp $FF00 ; *** MUST set this to YOUR OS starting address
;
; THE ROUTINE JANUS DIRECTS THE
; ANALYSIS BY DETERMINING WHAT
; SHOULD OCCUR AFTER EACH MOVE
; GENERATED BY GNM
;
;
;
JANUS: ldx STATE
bmi NOCOUNT
;
; THIS ROUTINE COUNTS OCCURRENCES
; IT DEPENDS UPON STATE TO INdex
; THE CORRECT COUNTERS
;
COUNTS: lda PIECE
beq OVER ; IF STATE=8
cpx #$08 ; DO NOT COUNT
bne OVER ; BLK MAX CAP
cmp BMAXP ; MOVES FOR
beq XRT ; WHITE
;
OVER: inc MOB,X ; MOBILITY
cmp #$01 ; + QUEEN
bne NOQ ; FOR TWO
inc MOB,X
;
NOQ: bvc NOCAP
ldy #$0F ; CALCULATE
lda SQUARE ; POINTS
ELOOP: cmp BK,Y ; CAPTURED
beq FOUN ; BY THIS
dey ; MOVE
bpl ELOOP
FOUN: lda POINTS,Y
cmp MAXC,X
bcc LESS ; SAVE IF
sty PCAP,X ; BEST THIS
sta MAXC,X ; STATE
;
LESS: clc
php ; ADD TO
adc CC,X ; CAPTURE
sta CC,X ; COUNTS
plp
;
NOCAP: cpx #$04
beq ON4
bmi TREE ;(=00 ONLY)
XRT: rts
;
; GENERATE FURTHER MOVES FOR COUNT
; and ANALYSIS
;
ON4: lda XMAXC ; SAVE ACTUAL
sta WCAP0 ; CAPTURE
lda #$00 ; STATE=0
sta STATE
jsr MOVE ; GENERATE
jsr REVERSE ; IMMEDIATE
jsr GNMZ ; REPLY MOVES
jsr REVERSE
;
lda #$08 ; STATE=8
sta STATE ; GENERATE
; jsr OHM ; CONTINUATION
jsr UMOVE ; MOVES
;
jmp STRATGY ; FINAL EVALUATION
NOCOUNT:cpx #$F9
bne TREE
;
; DETERMINE IF THE KING CAN BE
; TAKEN, USED BY CHKCHK
;
lda BK ; IS KING
cmp SQUARE ; IN CHECK?
bne RETJ ; SET incHEK=0
lda #$00 ; IF IT IS
sta incHEK
RETJ: rts
;
; IF A PIECE HAS BEEN CAPTURED BY
; A TRIAL MOVE, GENERATE REPLIES &
; EVALUATE THE EXCHANGE GAIN/LOSS
;
TREE: bvc RETJ ; NO CAP
ldy #$07 ; (PIECES)
lda SQUARE
LOOPX: cmp BK,Y
beq FOUNX
dey
beq RETJ ; (KING)
bpl LOOPX ; SAVE
FOUNX: lda POINTS,Y ; BEST CAP
cmp BCAP0,X ; AT THIS
bcc NOMAX ; LEVEL
sta BCAP0,X
NOMAX: dec STATE
lda #$FB ; IF STATE=FB
cmp STATE ; TIME TO TURN
beq UPTREE ; AROUND
jsr GENRM ; GENERATE FURTHER
UPTREE: inc STATE ; CAPTURES
rts
;
; THE PLAYER'S MOVE IS INPUT
;
INPUT: cmp #$08 ; NOT A LEGAL
bcs ERROR ; SQUARE #
jsr DISMV
DISP: ldx #$1F
SEARCH: lda BOARD,X
cmp DIS2
beq HERE ; DISPLAY
dex ; PIECE AT
bpl SEARCH ; FROM
HERE: stx DIS1 ; SQUARE
stx PIECE
ERROR: jmp CHESS
;
; GENERATE ALL MOVES FOR ONE
; SIDE, CALL JANUS AFTER EACH
; ONE FOR NEXT STE?
;
;
GNMZ: ldx #$10 ; CLEAR
GNMX: lda #$00 ; COUNTERS
CLEAR: sta COUNT,X
dex
bpl CLEAR
;
GNM: lda #$10 ; SET UP
sta PIECE ; PIECE
NEWP: dec PIECE ; NEW PIECE
bpl NEX ; ALL DONE?
rts ; #NAME?
;
NEX: jsr RESET ; READY
ldy PIECE ; GET PIECE
ldx #$08
stx MOVEN ; COMMON staRT
cpy #$08 ; WHAT IS IT?
bpl PAWN ; PAWN
cpy #$06
bpl KNIGHT ; KNIGHT
cpy #$04
bpl BISHOP ; BISHOP
cpy #$01
beq QUEEN ; QUEEN
bpl ROOK ; ROOK
;
KING: jsr SNGMV ; MUST BE KING!
bne KING ; MOVES
beq NEWP ; 8 TO 1
QUEEN: jsr LINE
bne QUEEN ; MOVES
beq NEWP ; 8 TO 1
;
ROOK: ldx #$04
stx MOVEN ; MOVES
AGNR: jsr LINE ; 4 TO 1
bne AGNR
beq NEWP
;
BISHOP: jsr LINE
lda MOVEN ; MOVES
cmp #$04 ; 8 TO 5
bne BISHOP
beq NEWP
;
KNIGHT: ldx #$10
stx MOVEN ; MOVES
AGNN: jsr SNGMV ; 16 TO 9
lda MOVEN
cmp #$08
bne AGNN
beq NEWP
;
PAWN: ldx #$06
stx MOVEN
P1: jsr CMOVE ; RIGHT CAP?
bvc P2
bmi P2
jsr JANUS ; YES
P2: jsr RESET
dec MOVEN ; LEFT CAP?
lda MOVEN
cmp #$05
beq P1
P3: jsr CMOVE ; AHEAD
bvs NEWP ; ILLEGAL
bmi NEWP
jsr JANUS
lda SQUARE ; GETS TO
and #$F0 ; 3RD RANK?
cmp #$20
beq P3 ; DO DOUBLE
jmp NEWP
;
; CALCULATE SINGLE STEP MOVES
; FOR K,N
;
SNGMV: jsr CMOVE ; CALC MOVE
bmi ILL1 ; -IF LEGAL
jsr JANUS ; -EVALUATE
ILL1: jsr RESET
dec MOVEN
rts
;
; CALCULATE ALL MOVES DOWN A
; STRAIGHT LINE FOR Q,B,R
;
LINE: jsr CMOVE ; CALC MOVE
bcc OVL ; NO CHK
bvc LINE ; NOCAP
OVL: bmi ILL ; RETURN
php
jsr JANUS ; EVALUATE POSN
plp
bvc LINE ; NOT A CAP
ILL: jsr RESET ; LINE STOPPED
dec MOVEN ; NEXT DIR
rts
;
; EXCHANGE SIDES FOR REPLY
; ANALYSIS
;
REVERSE:ldx #$0F
ETC: sec
ldy BK,X ; SUBTRACT
lda #$77 ; POSITION
sbc BOARD,X ; FROM 77
sta BK,X
sty BOARD,X ; and
sec
lda #$77 ; EXCHANGE
sbc BOARD,X ; PIECES
sta BOARD,X
dex
bpl ETC
rts
;
; CMOVE CALCULATES THE TO SQUARE
; USING SQUARE and THE MOVE
; TABLE FLAGS SET AS FOLLOWS:
; N#NAME? MOVE
; V#NAME? (LEGAL UNLESS IN CR)
; C#NAME? BECAUSE OF CHECK
; [MY &THANKS TO JIM BUTTERFIELD
; WHO WROTE THIS MORE EFFICIENT
; VERSION OF CMOVE)
;
CMOVE: lda SQUARE ; GET SQUARE
ldx MOVEN ; MOVE POINTER
clc
adc MOVEX,X ; MOVE LIST
sta SQUARE ; NEW POS'N
and #$88
bne ILLEGAL ; OFF BOARD
lda SQUARE
;
ldx #$20
LOOP: dex ; IS TO
bmi NO ; SQUARE
cmp BOARD,X ; OCCUPIED?
bne LOOP
;
cpx #$10 ; BY SELF?
bmi ILLEGAL
;
lda #$7F ; MUST BE CAP!
adc #$01 ; SET V FLAG
bvs SPX ; (jmp)
;
NO: clv ; NO CAPTURE
;
SPX: lda STATE ; SHOULD WE
bmi RETL ; DO THE
cmp #$08 ; CHECK CHECK?
bpl RETL
;
; CHKCHK REVERSES SIDES
; and LOOKS FOR A KING
; CAPTURE TO INDICATE
; ILLEGAL MOVE BECAUSE OF
; CHECK SincE THIS IS
; TIME CONSUMING, IT IS NOT
; ALWAYS DONE
;
CHKCHK: pha ; STATE #392
php
lda #$F9
sta STATE ; GENERATE
sta incHEK ; ALL REPLY
jsr MOVE ; MOVES TO
jsr REVERSE ; SEE IF KING
jsr GNM ; IS IN
jsr RUM ; CHECK
plp
pla
sta STATE
lda incHEK
bmi RETL ; NO - SAFE
sec ; YES - IN CHK
lda #$FF
rts
;
RETL: clc ; LEGAL
lda #$00 ; RETURN
rts
;
ILLEGAL:lda #$FF
clc ; ILLEGAL
clv ; RETURN
rts
;
; REPLACE PIECE ON CORRECT SQUARE
;
RESET: ldx PIECE ; GET LOGAT
lda BOARD,X ; FOR PIECE
sta SQUARE ; FROM BOARD
rts
;
;
;
GENRM: jsr MOVE ; MAKE MOVE
GENR2: jsr REVERSE ; REVERSE BOARD
jsr GNM ; GENERATE MOVES
RUM: jsr REVERSE ; REVERSE BACK
;
; ROUTINE TO UNMAKE A MOVE MADE BY
; MOVE
;
UMOVE: tsx ; UNMAKE MOVE
stx SP1
ldx SP2 ; EXCHANGE
txs ; STACKS
pla ; MOVEN
sta MOVEN
pla ; CAPTURED
sta PIECE ; PIECE
tax
pla ; FROM SQUARE
sta BOARD,X
pla ; PIECE
tax
pla ; TO SOUARE
sta SQUARE
sta BOARD,X
jmp STRV
;
; THIS ROUTINE MOVES PIECE
; TO SQUARE, PARAMETERS
; ARE SAVED IN A staCK TO UNMAKE
; THE MOVE LATER
;
MOVE: tsx
stx SP1 ; SWITCH
ldx SP2 ; STACKS
txs
lda SQUARE
pha ; TO SQUARE
tay
ldx #$1F
CHECK: cmp BOARD,X ; CHECK FOR
beq TAKE ; CAPTURE
dex
bpl CHECK
TAKE: lda #$CC
sta BOARD,X
txa ; CAPTURED
pha ; PIECE
ldx PIECE
lda BOARD,X
sty BOARD,X ; FROM
pha ; SQUARE
txa
pha ; PIECE
lda MOVEN
pha ; MOVEN
STRV: tsx
stx SP2 ; SWITCH
ldx SP1 ; STACKS
txs ; BACK
rts
;
; CONTINUATION OF SUB STRATGY
; -CHECKS FOR CHECK OR CHECKMATE
; and ASSIGNS VALUE TO MOVE
;
CKMATE: ldy BMAXC ; CAN BLK CAP
cpx POINTS ; MY KING?
bne NOCHEK
lda #$00 ; GULP!
beq RETV ; DUMB MOVE!
;
NOCHEK: ldx BMOB ; IS BLACK
bne RETV ; UNABLE TO
ldx WMAXP ; MOVE and
bne RETV ; KING IN CH?
lda #$FF ; YES! MATE
;
RETV: ldx #$04 ; RESTORE
stx STATE ; STATE=4
;
; THE VALUE OF THE MOVE (IN ACCU)
; IS COMPARED TO THE BEST MOVE and
; REPLACES IT IF IT IS BETTER
;
PUSH: cmp BESTV ; IS THIS BEST
bcc RETP ; MOVE SO FAR?
beq RETP
sta BESTV ; YES!
lda PIECE ; SAVE IT
sta BESTP
lda SQUARE
sta BESTM ; FLASH DISPLAY
RETP: lda #'.' ; print ... instead of flashing disp
jmp syschout ; print . and return
;
; MAIN PROGRAM TO PLAY CHESS
; PLAY FROM OPENING OR THINK
;
GO: ldx OMOVE ; OPENING?
bmi NOOPEN ; -NO *ADD CHANGE FROM bpl
lda DIS3 ; -YES WAS
cmp OPNING,X ; OPPONENT'S
bne END ; MOVE OK?
dex
lda OPNING,X ; GET NEXT
sta DIS1 ; CANNED
dex ; OPENING MOVE
lda OPNING,X
sta DIS3 ; DISPLAY IT
dex
stx OMOVE ; MOVE IT
bne MV2 ; (jmp)
;
END: lda #$FF ; *ADD - STOP CANNED MOVES
sta OMOVE ; FLAG OPENING
NOOPEN: ldx #$0C ; FINISHED
stx STATE ; STATE=C
stx BESTV ; CLEAR BESTV
ldx #$14 ; GENERATE P
jsr GNMX ; MOVES
;
ldx #$04 ; STATE=4
stx STATE ; GENERATE and
jsr GNMZ ; TEST AVAILABLE
;
; MOVES
;
ldx BESTV ; GET BEST MOVE
cpx #$0F ; IF NONE
bcc MATE ; OH OH!
;
MV2: ldx BESTP ; MOVE
lda BOARD,X ; THE
sta BESTV ; BEST
stx PIECE ; MOVE
lda BESTM
sta SQUARE ; and DISPLAY
jsr MOVE ; IT
jmp CHESS
;
MATE: lda #$FF ; RESIGN
rts ; OR staLEMATE
;
; SUBROUTINE TO ENTER THE
; PLAYER'S MOVE
;
DISMV: ldx #$04 ; ROTATE
Drol: asl DIS3 ; KEY
rol DIS2 ; INTO
dex ; DISPLAY
bne Drol ;
ora DIS3
sta DIS3
sta SQUARE
rts
;
; THE FOLLOWING SUBROUTINE ASSIGNS
; A VALUE TO THE MOVE UNDER
; CONSIDERATION and RETURNS IT IN
; THE ACCUMULATOR
;
STRATGY:clc
lda #$80
adc WMOB ; PARAMETERS
adc WMAXC ; WITH WHEIGHT
adc WCC ; OF O25
adc WCAP1
adc WCAP2
sec
sbc PMAXC
sbc PCC
sbc BCAP0
sbc BCAP1
sbc BCAP2
sbc PMOB
sbc BMOB
bcs POS ; UNDERFLOW
lda #$00 ; PREVENTION
POS: lsr
clc ; **************
adc #$40
adc WMAXC ; PARAMETERS
adc WCC ; WITH WEIGHT
sec ; OF 05
sbc BMAXC
lsr ; **************
clc
adc #$90
adc WCAP0 ; PARAMETERS
adc WCAP0 ; WITH WEIGHT
adc WCAP0 ; OF 10
adc WCAP0
adc WCAP1
sec ; [UNDER OR OVER-
sbc BMAXC ; FLOW MAY OCCUR
sbc BMAXC ; FROM THIS
sbc BMCC ; secTION]
sbc BMCC
sbc BCAP1
ldx SQUARE ; ***************
cpx #$33
beq POSN ; POSITION
cpx #$34 ; BONUS FOR
beq POSN ; MOVE TO
cpx #$22 ; CENTRE
beq POSN ; OR
cpx #$25 ; OUT OF
beq POSN ; BACK RANK
ldx PIECE
beq NOPOSN
ldy BOARD,X
cpy #$10
bpl NOPOSN
POSN: clc
adc #$02
NOPOSN: jmp CKMATE ; CONTINUE
;-----------------------------------------------------------------
; The following routines were added to allow text-based board
; DISPLAY over a standard RS-232 port.
;
POUT: lda PAINT
bne POUT0
rts ; return if PAINT flag = 0
POUT0: jsr POUT9 ; print CRLF
jsr POUT13 ; print copyright
jsr POUT10 ; print column labels
ldy #$00 ; init board location
jsr POUT5 ; print board horz edge
POUT1: lda #'|' ; print vert edge
jsr syschout ; PRINT ONE ASCII CHR - SPACE
ldx #$1F
POUT2: tya ; scan the pieces for a location match
cmp BOARD,X ; match found?
beq POUT4 ; yes; print the piece's color and type
dex ; no
bpl POUT2 ; if not the last piece, try again
tya ; empty square
and #$01 ; odd or even column?
sta temp ; save it
tya ; is the row odd or even
lsr ; shift column right 4 spaces
lsr ;
lsr ;
lsr ;
and #$01 ; strip LSB
clc ;
adc temp ; combine row & col to determine square color
and #$01 ; is board square white or blk?
bne POUT25 ; white, print space
lda #'*' ; black, print *
.byte $2c ; used to skip over lda #$20
;jmp POUT25A
POUT25: lda #$20 ; ASCII space
POUT25A:jsr syschout ; PRINT ONE ASCII CHR - SPACE
jsr syschout ; PRINT ONE ASCII CHR - SPACE
POUT3: iny ;
tya ; get row number
and #$08 ; have we completed the row?
beq POUT1 ; no, do next column
lda #'|' ; yes, put the right edge on
jsr syschout ; PRINT ONE ASCII CHR - |
jsr POUT12 ; print row number
jsr POUT9 ; print CRLF
jsr POUT5 ; print bottom edge of board
clc ;
tya ;
adc #$08 ; point y to beginning of next row
tay ;
cpy #$80 ; was that the last row?
beq POUT8 ; yes, print the LED values
bne POUT1 ; no, do new row
POUT4: lda REV ; print piece's color & type
beq POUT41 ;
lda cpl+16,X ;
bne POUT42 ;
POUT41: lda cpl,x ;
POUT42: jsr syschout ;
lda cph,x ;
jsr syschout ;
bne POUT3 ; branch always
POUT5: txa ; print "-----...-----<crlf>"
pha
ldx #$19
lda #'-'
POUT6: jsr syschout ; PRINT ONE ASCII CHR - "-"
dex
bne POUT6
pla
tax
jsr POUT9
rts
POUT8: jsr POUT10 ;
lda BESTP
jsr syshexout ; PRINT 1 BYTE AS 2 HEX CHRS
lda #$20
jsr syschout ; PRINT ONE ASCII CHR - SPACE
lda BESTV
jsr syshexout ; PRINT 1 BYTE AS 2 HEX CHRS
lda #$20
jsr syschout ; PRINT ONE ASCII CHR - SPACE
lda DIS3
jsr syshexout ; PRINT 1 BYTE AS 2 HEX CHRS
POUT9: lda #$0D
jsr syschout ; PRINT ONE ASCII CHR - CR
lda #$0A
jsr syschout ; PRINT ONE ASCII CHR - LF
rts
POUT10: ldx #$00 ; print the column labels
POUT11: lda #$20 ; 00 01 02 03 ... 07 <CRLF>
jsr syschout
txa
jsr syshexout
inx
cpx #$08
bne POUT11
beq POUT9
POUT12: tya
and #$70
jsr syshexout
rts
; print banner only once, preserve registers A, X, Y
POUT13: stx tmp_zpgPt
sta tmp_zpgPt+1
sty tmp_zpgPt+2
lda PRNBANN
beq NOPRNBANN
lda #<banner
sta mos_StrPtr
lda #>banner
sta mos_StrPtr+1
jsr mos_CallPuts
NOPRNBANN:
lda #$00
sta PRNBANN
ldx tmp_zpgPt
lda tmp_zpgPt+1
ldy tmp_zpgPt+2
rts
; ldx #$00 ; Print the copyright banner
;POUT14: lda banner,x
; beq POUT15
; jsr syschout
; inx
; bne POUT14
;POUT15: rts
KIN: lda #'?'
jsr syschout ; PRINT ONE ASCII CHR - ?
jsr syskin ; GET A KEYSTROKE FROM SYSTEM
jsr syschout ; echo entered character
and #$4F ; MASK 0-7, and ALpha'S
rts
;
; 6551 I/O Support Routines
;
;
;Init_6551 lda #$1F ; 19.2K/8/1
; sta ACIActl ; control reg
; lda #$0B ; N parity/echo off/rx int off/ dtr active low
; sta ACIAcmd ; command reg
; rts ; done
;
; input chr from ACIA1 (waiting)
;
syskin:
jsr mos_CallGetCh
rts
;lda ACIAsta ; Serial port status
;and #$08 ; is recvr full
;beq syskin ; no char to get
;lda ACIAdat ; get chr
;rts ;
;
; output to OutPut Port
;
syschout: ; MKHBCOS: must preserve X, Y and A
stx tmp_zpgPt
sta tmp_zpgPt+1
;sty tmp_zpgPt+2
jsr mos_CallPutCh
ldx tmp_zpgPt
lda tmp_zpgPt+1
;ldy tmp_zpgPt+2
rts
; pha ; save registers
;ACIA_Out1 lda ACIAsta ; serial port status
; and #$10 ; is tx buffer empty
; beq ACIA_Out1 ; no
; pla ; get chr
; sta ACIAdat ; put character to Port
; rts ; done
syshexout: pha ; prints AA hex digits
lsr ; MOVE UPPER NIBBLE TO LOWER
lsr ;
lsr ;
lsr ;
jsr PrintDig ;
pla ;
PrintDig:
sty tmp_zpgPt+2
and #$0F ;
tay ;
lda Hexdigdata,Y ;
ldy tmp_zpgPt+2 ;
jmp syschout ;
Hexdigdata: .byte "0123456789ABCDEF"
banner: .byte "MicroChess (c) 1996-2002 Peter Jennings, peterj@benlo.com"
.byte $0d, $0a, $00
cpl: .byte "WWWWWWWWWWWWWWWWBBBBBBBBBBBBBBBBWWWWWWWWWWWWWWWW"
cph: .byte "KQCCBBRRPPPPPPPPKQCCBBRRPPPPPPPP"
.byte $00
;
; end of added code
;
; BLOCK DATA
.segment "DATA"
.ORG $0A20
SETW: .byte $03, $04, $00, $07, $02, $05, $01, $06
.byte $10, $17, $11, $16, $12, $15, $14, $13
.byte $73, $74, $70, $77, $72, $75, $71, $76
.byte $60, $67, $61, $66, $62, $65, $64, $63
MOVEX: .byte $00, $F0, $FF, $01, $10, $11, $0F, $EF, $F1
.byte $DF, $E1, $EE, $F2, $12, $0E, $1F, $21
POINTS: .byte $0B, $0A, $06, $06, $04, $04, $04, $04
.byte $02, $02, $02, $02, $02, $02, $02, $02
OPNING: .byte $99, $25, $0B, $25, $01, $00, $33, $25
.byte $07, $36, $34, $0D, $34, $34, $0E, $52
.byte $25, $0D, $45, $35, $04, $55, $22, $06
.byte $43, $33, $0F, $CC
.segment "KERN"
.ORG $FE00
CHRIN: lda $E000
rts
CHROUT: sta $E000
rts
; this function was shamelessly ripped :-) from M.O.S. code (c) by Scott Chidester
STROUT:
ldy #0 ; Non-indexed variant starts at zero, of course
lda mos_StrPtr+1 ; Save StrPtr so it isn't modified
pha
PutsLoop:
lda (mos_StrPtr),y ; Get the next char in the string
beq PutsDone ; Zero means end of string
jsr CHROUT ; Otherwise put the char
; Update string pointer
iny ; increment StrPtr-lo
bne PutsLoop ; No rollover? Loop back for next character
inc mos_StrPtr+1 ; StrPtr-lo rolled over--carry hi byte
jmp PutsLoop ; Now loop back
PutsDone:
pla
sta mos_StrPtr+1 ; Restore StrPtr
rts
.segment "VECT"
.ORG $FFED
jmp CHRIN
jmp CHROUT
jmp STROUT
;
;
; end of file
;
| 29.5827 | 97 | 0.427268 |
af2b053a875bcf68de521231e13d050417878e26 | 3,188 | kt | Kotlin | app/src/main/java/cz/ikem/dci/zscanner/workers/SendSummaryWorker.kt | ikem-cz/zscanner-android | c1a5d7a449f3fed3da429bda154428ecdb4a8d42 | [
"MIT"
] | 2 | 2020-05-01T19:32:53.000Z | 2020-06-07T07:38:17.000Z | app/src/main/java/cz/ikem/dci/zscanner/workers/SendSummaryWorker.kt | ikem-cz/zscanner-android | c1a5d7a449f3fed3da429bda154428ecdb4a8d42 | [
"MIT"
] | 3 | 2019-08-10T09:53:54.000Z | 2021-04-02T13:08:52.000Z | app/src/main/java/cz/ikem/dci/zscanner/workers/SendSummaryWorker.kt | ikem-cz/zscanner-android | c1a5d7a449f3fed3da429bda154428ecdb4a8d42 | [
"MIT"
] | 1 | 2019-08-10T09:12:03.000Z | 2019-08-10T09:12:03.000Z | package cz.ikem.dci.zscanner.workers
import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters
import cz.ikem.dci.zscanner.*
import cz.ikem.dci.zscanner.persistence.Repositories
import cz.ikem.dci.zscanner.webservices.HttpClient
import okhttp3.MediaType
import okhttp3.RequestBody
class SendSummaryWorker(ctx: Context, workerParams: WorkerParameters) : Worker(ctx, workerParams) {
@Volatile
private var mCancelling = false
private val TAG = SendSummaryWorker::class.java.simpleName
override fun doWork(): Result {
val instance = inputData.getString(KEY_CORRELATION_ID)!!
// summary sending task bid must contain substring "-S" -- is used for progress indicator calculations in JobsOverviewAdapter
val taskid = (instance.substring(0, 6)) + "-S"
Log.d(TAG, "SendSummaryWorker ${taskid} starts")
val correlation = RequestBody.create(MediaType.parse("text/plain"), instance)
try {
val patid = RequestBody.create(MediaType.parse("text/plain"), inputData.getString(KEY_PAT_ID))
val mode = RequestBody.create(MediaType.parse("text/plain"), inputData.getString(KEY_DOC_MODE))
val type = RequestBody.create(MediaType.parse("text/plain"), inputData.getString(KEY_DOC_TYPE))
val date = RequestBody.create(MediaType.parse("text/plain"), inputData.getString(KEY_DATE_STRING))
val name = RequestBody.create(MediaType.parse("text/plain"), inputData.getString(KEY_NAME))
Log.d(TAG, "SendSummaryWorker ${taskid} data: ${inputData.getString(KEY_PAT_ID)} ${inputData.getString(KEY_DOC_MODE)} " +
"${inputData.getString(KEY_DOC_TYPE)} ${inputData.getString(KEY_DATE_STRING)} ${inputData.getString(KEY_NAME)}")
val numpagesInt = inputData.getInt(KEY_NUM_PAGES, -1)
if (numpagesInt == -1) {
throw Exception("Assertion error")
}
val numpages = RequestBody.create(MediaType.parse("text/plain"), numpagesInt.toString())
val res = HttpClient().getApiServiceBackend().postDocumentSummary(
correlation,
patid,
mode,
type,
numpages,
date,
name,
RequestBody.create(MediaType.parse("text/plain"), "")
).execute()
if (res.code() != 200) {
throw Exception("Non OK response")
}
if (mCancelling) {
throw Exception("Cancelling")
}
val repository = Repositories(applicationContext).jobsRepository
repository.setPartialJobDoneTag(instance, taskid)
Log.d(TAG, "SendSummaryWorker ${taskid} ends")
return Result.success()
} catch (e: Exception) {
Log.d(TAG, "SendSummaryWorker ${taskid} caught exception !")
Log.e(TAG, e.toString())
return Result.retry()
}
}
override fun onStopped() {
mCancelling = true
super.onStopped()
}
} | 34.652174 | 133 | 0.625157 |
41d1d3149c611777fcd904d12546ed50db739cec | 8,635 | c | C | drivers/mtd/bcm63xxpart.c | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 55 | 2019-12-20T03:25:14.000Z | 2022-01-16T07:19:47.000Z | drivers/mtd/bcm63xxpart.c | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 5 | 2020-04-04T09:24:09.000Z | 2020-04-19T12:33:55.000Z | drivers/mtd/bcm63xxpart.c | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 30 | 2018-05-02T08:43:27.000Z | 2022-01-23T03:25:54.000Z | /*
* BCM63XX CFE image tag parser
*
* Copyright © 2006-2008 Florian Fainelli <florian@openwrt.org>
* Mike Albon <malbon@openwrt.org>
* Copyright © 2009-2010 Daniel Dickinson <openwrt@cshore.neomailbox.net>
* Copyright © 2011-2013 Jonas Gorski <jonas.gorski@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/bcm963xx_nvram.h>
#include <linux/bcm963xx_tag.h>
#include <linux/crc32.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#define BCM963XX_CFE_BLOCK_SIZE SZ_64K /* always at least 64KiB */
#define BCM963XX_CFE_MAGIC_OFFSET 0x4e0
#define BCM963XX_CFE_VERSION_OFFSET 0x570
#define BCM963XX_NVRAM_OFFSET 0x580
/* Ensure strings read from flash structs are null terminated */
#define STR_NULL_TERMINATE(x) \
do { char *_str = (x); _str[sizeof(x) - 1] = 0; } while (0)
static int bcm63xx_detect_cfe(struct mtd_info *master)
{
char buf[9];
int ret;
size_t retlen;
ret = mtd_read(master, BCM963XX_CFE_VERSION_OFFSET, 5, &retlen,
(void *)buf);
buf[retlen] = 0;
if (ret)
return ret;
if (strncmp("cfe-v", buf, 5) == 0)
return 0;
/* very old CFE's do not have the cfe-v string, so check for magic */
ret = mtd_read(master, BCM963XX_CFE_MAGIC_OFFSET, 8, &retlen,
(void *)buf);
buf[retlen] = 0;
return strncmp("CFE1CFE1", buf, 8);
}
static int bcm63xx_read_nvram(struct mtd_info *master,
struct bcm963xx_nvram *nvram)
{
u32 actual_crc, expected_crc;
size_t retlen;
int ret;
/* extract nvram data */
ret = mtd_read(master, BCM963XX_NVRAM_OFFSET, BCM963XX_NVRAM_V5_SIZE,
&retlen, (void *)nvram);
if (ret)
return ret;
ret = bcm963xx_nvram_checksum(nvram, &expected_crc, &actual_crc);
if (ret)
pr_warn("nvram checksum failed, contents may be invalid (expected %08x, got %08x)\n",
expected_crc, actual_crc);
if (!nvram->psi_size)
nvram->psi_size = BCM963XX_DEFAULT_PSI_SIZE;
return 0;
}
static int bcm63xx_read_image_tag(struct mtd_info *master, const char *name,
loff_t tag_offset, struct bcm_tag *buf)
{
int ret;
size_t retlen;
u32 computed_crc;
ret = mtd_read(master, tag_offset, sizeof(*buf), &retlen, (void *)buf);
if (ret)
return ret;
if (retlen != sizeof(*buf))
return -EIO;
computed_crc = crc32_le(IMAGETAG_CRC_START, (u8 *)buf,
offsetof(struct bcm_tag, header_crc));
if (computed_crc == buf->header_crc) {
STR_NULL_TERMINATE(buf->board_id);
STR_NULL_TERMINATE(buf->tag_version);
pr_info("%s: CFE image tag found at 0x%llx with version %s, board type %s\n",
name, tag_offset, buf->tag_version, buf->board_id);
return 0;
}
pr_warn("%s: CFE image tag at 0x%llx CRC invalid (expected %08x, actual %08x)\n",
name, tag_offset, buf->header_crc, computed_crc);
return 1;
}
static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master,
const struct mtd_partition **pparts, struct bcm963xx_nvram *nvram)
{
/* CFE, NVRAM and global Linux are always present */
int nrparts = 3, curpart = 0;
struct bcm_tag *buf = NULL;
struct mtd_partition *parts;
int ret;
unsigned int rootfsaddr, kerneladdr, spareaddr;
unsigned int rootfslen, kernellen, sparelen, totallen;
unsigned int cfelen, nvramlen;
unsigned int cfe_erasesize;
int i;
bool rootfs_first = false;
cfe_erasesize = max_t(uint32_t, master->erasesize,
BCM963XX_CFE_BLOCK_SIZE);
cfelen = cfe_erasesize;
nvramlen = nvram->psi_size * SZ_1K;
nvramlen = roundup(nvramlen, cfe_erasesize);
buf = vmalloc(sizeof(struct bcm_tag));
if (!buf)
return -ENOMEM;
/* Get the tag */
ret = bcm63xx_read_image_tag(master, "rootfs", cfelen, buf);
if (!ret) {
STR_NULL_TERMINATE(buf->flash_image_start);
if (kstrtouint(buf->flash_image_start, 10, &rootfsaddr) ||
rootfsaddr < BCM963XX_EXTENDED_SIZE) {
pr_err("invalid rootfs address: %*ph\n",
(int)sizeof(buf->flash_image_start),
buf->flash_image_start);
goto invalid_tag;
}
STR_NULL_TERMINATE(buf->kernel_address);
if (kstrtouint(buf->kernel_address, 10, &kerneladdr) ||
kerneladdr < BCM963XX_EXTENDED_SIZE) {
pr_err("invalid kernel address: %*ph\n",
(int)sizeof(buf->kernel_address),
buf->kernel_address);
goto invalid_tag;
}
STR_NULL_TERMINATE(buf->kernel_length);
if (kstrtouint(buf->kernel_length, 10, &kernellen)) {
pr_err("invalid kernel length: %*ph\n",
(int)sizeof(buf->kernel_length),
buf->kernel_length);
goto invalid_tag;
}
STR_NULL_TERMINATE(buf->total_length);
if (kstrtouint(buf->total_length, 10, &totallen)) {
pr_err("invalid total length: %*ph\n",
(int)sizeof(buf->total_length),
buf->total_length);
goto invalid_tag;
}
kerneladdr = kerneladdr - BCM963XX_EXTENDED_SIZE;
rootfsaddr = rootfsaddr - BCM963XX_EXTENDED_SIZE;
spareaddr = roundup(totallen, master->erasesize) + cfelen;
if (rootfsaddr < kerneladdr) {
/* default Broadcom layout */
rootfslen = kerneladdr - rootfsaddr;
rootfs_first = true;
} else {
/* OpenWrt layout */
rootfsaddr = kerneladdr + kernellen;
rootfslen = spareaddr - rootfsaddr;
}
} else if (ret > 0) {
invalid_tag:
kernellen = 0;
rootfslen = 0;
rootfsaddr = 0;
spareaddr = cfelen;
} else {
goto out;
}
sparelen = master->size - spareaddr - nvramlen;
/* Determine number of partitions */
if (rootfslen > 0)
nrparts++;
if (kernellen > 0)
nrparts++;
parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL);
if (!parts) {
ret = -ENOMEM;
goto out;
}
/* Start building partition list */
parts[curpart].name = "CFE";
parts[curpart].offset = 0;
parts[curpart].size = cfelen;
curpart++;
if (kernellen > 0) {
int kernelpart = curpart;
if (rootfslen > 0 && rootfs_first)
kernelpart++;
parts[kernelpart].name = "kernel";
parts[kernelpart].offset = kerneladdr;
parts[kernelpart].size = kernellen;
curpart++;
}
if (rootfslen > 0) {
int rootfspart = curpart;
if (kernellen > 0 && rootfs_first)
rootfspart--;
parts[rootfspart].name = "rootfs";
parts[rootfspart].offset = rootfsaddr;
parts[rootfspart].size = rootfslen;
if (sparelen > 0 && !rootfs_first)
parts[rootfspart].size += sparelen;
curpart++;
}
parts[curpart].name = "nvram";
parts[curpart].offset = master->size - nvramlen;
parts[curpart].size = nvramlen;
curpart++;
/* Global partition "linux" to make easy firmware upgrade */
parts[curpart].name = "linux";
parts[curpart].offset = cfelen;
parts[curpart].size = master->size - cfelen - nvramlen;
for (i = 0; i < nrparts; i++)
pr_info("Partition %d is %s offset %llx and length %llx\n", i,
parts[i].name, parts[i].offset, parts[i].size);
pr_info("Spare partition is offset %x and length %x\n", spareaddr,
sparelen);
*pparts = parts;
ret = 0;
out:
vfree(buf);
if (ret)
return ret;
return nrparts;
}
static int bcm63xx_parse_cfe_partitions(struct mtd_info *master,
const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
struct bcm963xx_nvram *nvram = NULL;
int ret;
if (bcm63xx_detect_cfe(master))
return -EINVAL;
nvram = vzalloc(sizeof(*nvram));
if (!nvram)
return -ENOMEM;
ret = bcm63xx_read_nvram(master, nvram);
if (ret)
goto out;
if (!mtd_type_is_nand(master))
ret = bcm63xx_parse_cfe_nor_partitions(master, pparts, nvram);
else
ret = -EINVAL;
out:
vfree(nvram);
return ret;
};
static struct mtd_part_parser bcm63xx_cfe_parser = {
.parse_fn = bcm63xx_parse_cfe_partitions,
.name = "bcm63xxpart",
};
module_mtd_part_parser(bcm63xx_cfe_parser);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Daniel Dickinson <openwrt@cshore.neomailbox.net>");
MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>");
MODULE_AUTHOR("Mike Albon <malbon@openwrt.org>");
MODULE_AUTHOR("Jonas Gorski <jonas.gorski@gmail.com");
MODULE_DESCRIPTION("MTD partitioning for BCM63XX CFE bootloaders");
| 26.48773 | 87 | 0.707354 |
fb527bf4d026694007483e6f64d5475d3902ebe5 | 586 | sql | SQL | openGaussBase/testcase/KEYWORDS/merge/Opengauss_Function_Keyword_Merge_Case0023.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/merge/Opengauss_Function_Keyword_Merge_Case0023.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/merge/Opengauss_Function_Keyword_Merge_Case0023.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint: opengauss关键字merge非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop index if exists merge;
create index merge on explain_test(id);
drop index merge;
--关键字带双引号-成功
drop index if exists "merge";
create index "merge" on explain_test(id);
drop index "merge";
--关键字带单引号-合理报错
drop index if exists 'merge';
create index 'merge' on explain_test(id);
--关键字带反引号-合理报错
drop index if exists `merge`;
create index `merge` on explain_test(id);
--清理环境
drop table if exists explain_test cascade;
| 22.538462 | 52 | 0.761092 |
75e3ef48dcebf03bc21bb1f91dcdb8f89867264a | 13,135 | php | PHP | forum/language/sl/posting.php | adam2012/ZeRoN_WoWCMS | 10807f22ebe28658cdea7dec5b83e640bbc6c589 | [
"Unlicense"
] | null | null | null | forum/language/sl/posting.php | adam2012/ZeRoN_WoWCMS | 10807f22ebe28658cdea7dec5b83e640bbc6c589 | [
"Unlicense"
] | null | null | null | forum/language/sl/posting.php | adam2012/ZeRoN_WoWCMS | 10807f22ebe28658cdea7dec5b83e640bbc6c589 | [
"Unlicense"
] | 1 | 2019-04-09T18:41:13.000Z | 2019-04-09T18:41:13.000Z | <?php
/**
*
* posting.php [Slovenian]
*
* @package language
* @version $Id: $
* @copyright (c) 2011 phpBB Group
* @author 2011-09-30 - pucer, borut, kebabek, KoMar, kramp, lithium, mitja_i, NoBody, nSk, Razor, sollers, Tody, Veron, Janet, JureB
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'POST_REVIEW_EDIT' => 'Pregled vnosa',
'POST_REVIEW_EDIT_EXPLAIN' => 'V teji objavi je nekdo drug že nekaj objavil, medtem ko si urejal. Lahko si ogledate, kaj je napisal in po želji popravite svojo objavo.',
'TOO_FEW_CHARS_LIMIT' => 'Tvoje sporočilo vsebuje %1$d znakov. Minimalno število znakov je %2$d.',
'DISALLOWED_CONTENT' => 'Nalaganje je bilo zavrnjeno ker je bila datoteka prepoznana kot nosilka vsebin, ki lahko omogočajo vdor.',
'ADD_ATTACHMENT' => 'Naloži priponko',
'ADD_ATTACHMENT_EXPLAIN' => 'Spodaj vnesite podatke za pripenjanje ene ali več datotek.',
'ADD_FILE' => 'Dodaj datoteko',
'ADD_POLL' => 'Ustvaritev ankete',
'ADD_POLL_EXPLAIN' => 'Če ne želite dodati ankete, polja pustite prazna.',
'ALREADY_DELETED' => 'Oprostite, vendar je bil ta prispevek že izbrisan.',
'ATTACH_QUOTA_REACHED' => 'Oprostite, dosegli ste omejitev števila priponk tega foruma.',
'ATTACH_SIG' => 'Pripni podpis (podpis lahko spremenite prek UNP)',
'BBCODE_A_HELP' => 'Naložena priponka: [attachment=]ime.tip[/attachment]',
'BBCODE_B_HELP' => 'Odebeljeno besedilo: [b]besedilo[/b]',
'BBCODE_C_HELP' => 'Prikaz kode: [code]koda[/code]',
'BBCODE_D_HELP' => 'Flash: [flash=širina,višina]http://url[/flash]',
'BBCODE_F_HELP' => 'Velikost pisave: [size=x-small]majhno besedilo[/size]',
'BBCODE_IS_OFF' => '%sBBCode%s je <em>izključena</em>',
'BBCODE_IS_ON' => '%sBBCode%s je <em>vključena</em>',
'BBCODE_I_HELP' => 'Poševno besedilo: [i]besedilo[/i]',
'BBCODE_L_HELP' => 'Seznam: [list]besedilo[/list]',
'BBCODE_LISTITEM_HELP' => 'Element seznama: [*]besedilo[/*]',
'BBCODE_O_HELP' => 'Urejen seznam: [list=]besedilo[/list]',
'BBCODE_P_HELP' => 'Vstavi sliko: [img]http://url_slike[/img]',
'BBCODE_Q_HELP' => 'Citat: [quote]besedilo[/quote]',
'BBCODE_S_HELP' => 'Barva pisave: [color=red]besedilo[/color] Namig: uporabite lahko tudi color=#FF0000',
'BBCODE_U_HELP' => 'Podčrtano besedilo: [u]besedilo[/u]',
'BBCODE_W_HELP' => 'Vstavi URL: [url]http://url[/url] or [url=http://url]besedilo povezave[/url]',
'BBCODE_Y_HELP' => 'Seznam: Dodaj element seznama',
'BUMP_ERROR' => 'Te teme ne morete obuditi tako kmalu po zadnjem prispevku.',
'CANNOT_DELETE_REPLIED' => 'Oprostite, vendar lahko brišete samo teme, na katere še ni bilo prispevkov.',
'CANNOT_EDIT_POST_LOCKED' => 'Ta prispevek je bil zaklenjen. Ne morete ga več urejati.',
'CANNOT_EDIT_TIME' => 'Tega prispevka ne morete več urejati ali izbrisati.',
'CANNOT_POST_ANNOUNCE' => 'Oprostite, vendar ne morete objavljati razglasov.',
'CANNOT_POST_STICKY' => 'Oprostite, vendar ne morete objavljati lepljivkov.',
'CHANGE_TOPIC_TO' => 'Spremeni vrsto prispevka',
'CLOSE_TAGS' => 'Zapri oznake',
'CURRENT_TOPIC' => 'Trenutna tema',
'DELETE_FILE' => 'Izbriši datoteko',
'DELETE_MESSAGE' => 'Izbriši sporočilo',
'DELETE_MESSAGE_CONFIRM' => 'Ali ste prepričani, da želite izbrisati to sporočilo?',
'DELETE_OWN_POSTS' => 'Oprostite, vendar lahko brišete samo svoje prispevke.',
'DELETE_POST_CONFIRM' => 'Ali ste prepričani, da želite izbrisati ta prispevek?',
'DELETE_POST_WARN' => 'Po brisanju tega prispevka ne morete več povrniti',
'DISABLE_BBCODE' => 'Onemogoči BBCode',
'DISABLE_MAGIC_URL' => 'Ne prepoznaj URLjev',
'DISABLE_SMILIES' => 'Onemogoči smeške',
'DISALLOWED_EXTENSION' => 'Končnica %s ni dovoljena.',
'DRAFT_LOADED' => 'Osnutek je bil naložen v prostor za prispevke - sedaj ga boste morda želeli dokončati.<br />Po pošiljanju tega prispevka bo vaš osnutek izbrisan.',
'DRAFT_LOADED_PM' => 'Osnutek je bil naložen v prostor za sporočilo - sedaj ga boste morda želeli dokončati.<br />Po pošiljanju tega zasebnega sporočila bo vaš osnutek izbrisan.',
'DRAFT_SAVED' => 'Osnutek je bil uspešno shranjen.',
'DRAFT_TITLE' => 'Naslov osnutka',
'EDIT_REASON' => 'Razlog za urejanje tega prispevka',
'EMPTY_FILEUPLOAD' => 'Naložena datoteka je prazna.',
'EMPTY_MESSAGE' => 'Pri pošiljanju morate napisati sporočilo.',
'EMPTY_REMOTE_DATA' => 'Datoteke ni bilo moč naložiti, prosimo, poizkusite z ročnim nalaganjem.',
'FLASH_IS_OFF' => '[flash] je <em>izključen</em>',
'FLASH_IS_ON' => '[flash] je <em>vključen</em>',
'FLOOD_ERROR' => 'Tako hitro po zadnjem prispevku ne morete napisati novega.',
'FONT_COLOR' => 'Barva pisave',
'FONT_COLOR_HIDE' => 'Skrij barvo pisave',
'FONT_HUGE' => 'Ogromna',
'FONT_LARGE' => 'Velika',
'FONT_NORMAL' => 'Običajna',
'FONT_SIZE' => 'Velikost pisave',
'FONT_SMALL' => 'Majhna',
'FONT_TINY' => 'Drobcena',
'GENERAL_UPLOAD_ERROR' => 'Priponke ni bilo moč naložiti v %s.',
'IMAGES_ARE_OFF' => '[img] je <em>izključen</em>',
'IMAGES_ARE_ON' => '[img] je <em>vključen</em>',
'INVALID_FILENAME' => '%s ni veljavno ime datoteke.',
'LOAD' => 'Naloži',
'LOAD_DRAFT' => 'Naloži osnutek',
'LOAD_DRAFT_EXPLAIN' => 'Tukaj lahko izberete osnutek, kjer želite nadaljevati s pisanjem. Vaš trenutni prispevek bo preklican in vsa trenutna vsebina prispevka izbrisana. Osnutke si lahko ogledate, urejate in izbrišete znotraj svoje uporabniške nadzorne plošče.',
'LOGIN_EXPLAIN_BUMP' => 'Če želite obuditi teme znotraj tega foruma, se morate prijaviti.',
'LOGIN_EXPLAIN_DELETE' => 'Če želite brisati prispevke znotraj tega foruma, se morate prijaviti.',
'LOGIN_EXPLAIN_POST' => 'Če želite pisati znotraj tega foruma, se morate prijaviti.',
'LOGIN_EXPLAIN_QUOTE' => 'Če želite citirati prispevke znotraj tega foruma, se morate prijaviti.',
'LOGIN_EXPLAIN_REPLY' => 'Če želite odgovarjati na teme znotraj tega foruma, se morate prijaviti.',
'MAX_FONT_SIZE_EXCEEDED' => 'Uporabite lahko samo pisave do velikosti %1$d.',
'MAX_FLASH_HEIGHT_EXCEEDED' => 'Vaše flash datoteke so lahko visoke največ %1$d pikslov.',
'MAX_FLASH_WIDTH_EXCEEDED' => 'Vaše flash datoteke so lahko široke največ %1$d pikslov.',
'MAX_IMG_HEIGHT_EXCEEDED' => 'Vaše slike so lahko visoke največ %1$d pikslov.',
'MAX_IMG_WIDTH_EXCEEDED' => 'Vaše slike so lahko široke največ %1$d pikslov.',
'MESSAGE_BODY_EXPLAIN' => 'Tukaj lahko vnesete svoje sporočilo, ki ne sme vsebovati več kot <strong>%d</strong> znakov.',
'MESSAGE_DELETED' => 'To sporočilo je bilo uspešno izbrisano.',
'MORE_SMILIES' => 'Več smeškov',
'NOTIFY_REPLY' => 'Obvesti me, ko kdo objavi prispevek',
'NOT_UPLOADED' => 'Datoteke ni bilo moč naložiti.',
'NO_DELETE_POLL_OPTIONS' => 'Obstoječih možnosti ankete ne morete izbrisati.',
'NO_PM_ICON' => 'Ni ikone ZS',
'NO_POLL_TITLE' => 'Vnesti morate naslov ankete.',
'NO_POST' => 'Zahtevani prispevek ne obstaja.',
'NO_POST_MODE' => 'Ni navedenega načina prispevka.',
'PARTIAL_UPLOAD' => 'Datoteka je bila le delno naložena.',
'PHP_SIZE_NA' => 'Velikost priponke je prevelika.<br />Iz php.ini ni razvidna PHPjeva omejitev velikosti.',
'PHP_SIZE_OVERRUN' => 'Velikost priponke je prevelika - največja dovoljena velikost je %d MB.<br />Prosimo, pomnite, da je ta nastavitev v php.ini in je ne morete obiti.',
'PLACE_INLINE' => 'Postavi v vrstico',
'POLL_DELETE' => 'Izbriši anketo',
'POLL_FOR' => 'Anketa naj traja',
'POLL_FOR_EXPLAIN' => 'Vnesite 0 ali pustite prazno za neskočno trajanje.',
'POLL_MAX_OPTIONS' => 'Možnosti za posameznega uporabnika',
'POLL_MAX_OPTIONS_EXPLAIN' => 'To je število možnosti, ki jih lahko uporabnik izbere pri glasovanju.',
'POLL_OPTIONS' => 'Anketne možnosti',
'POLL_OPTIONS_EXPLAIN' => 'Vsako možnost vnesite v svojo vrstico. Vnesete lahko do <strong>%d</strong> možnosti.',
'POLL_QUESTION' => 'Anketno vprašanje',
'POLL_TITLE_TOO_LONG' => 'Naslov ankete mora vsebovati manj kot 100 znakov.',
'POLL_TITLE_COMP_TOO_LONG' => 'Obdelana velikost vašega naslova ankete je prevelika - razmislite o odstranitvi BBCode ali smeškov.',
'POLL_VOTE_CHANGE' => 'Dovoli ponovno glasovanje',
'POLL_VOTE_CHANGE_EXPLAIN' => 'Če je omogočeno, lahko uporabniki spreminjajo svoje glasove.',
'POSTED_ATTACHMENTS' => 'Objavljene priponke',
'POST_CONFIRMATION' => 'Potrditev prispevka',
'POST_CONFIRM_EXPLAIN' => 'Da bi preprečili samodejne prispevke (spam), morate pretipkati besedilo iz spodnje slike. V primeru slabovidnosti ali težav z berljivostjo kontaktirajte %sadministratorja foruma%s.',
'POST_DELETED' => 'Prispevek je bil uspešno izbrisan.',
'POST_EDITED' => 'Prispevek je bil uspešno urejen.',
'POST_EDITED_MOD' => 'Prispevek je bilo uspešno urejen - pred javnim prikazom ga bo moral odobriti moderator.',
'POST_GLOBAL' => 'Globalno',
'POST_ICON' => 'Ikona prispevka',
'POST_NORMAL' => 'Običajno',
'POST_REVIEW' => 'Pregled prispevka',
'POST_REVIEW_EXPLAIN' => 'V tej temi je bil objavljen vsaj en nov prispevek. Morda boste zaradi tega želeli ponovno pregledati svoj prispevek.',
'POST_STORED' => 'Prispevek je bil uspešno poslan.',
'POST_STORED_MOD' => 'Prispevek je bilo uspešno poslan - pred javnim prikazom ga bo moral odobriti moderator.',
'POST_TOPIC_AS' => 'Objavi temo kot',
'PROGRESS_BAR' => 'Stanje poteka',
'QUOTE_DEPTH_EXCEEDED' => 'Gnezdite lahko do %1$d citatov.',
'SAVE' => 'Shrani',
'SAVE_DATE' => 'Shranjeno ob',
'SAVE_DRAFT' => 'Shrani osnutek',
'SAVE_DRAFT_CONFIRM' => 'Prosimo, pomnite, da shranjeni osnutki vsebujejo samo zadevo in sporočilo, drugi elementi pa bodo odstranjeni. Želite svoj osnutek shraniti zdaj?',
'SMILIES' => 'Smeški',
'SMILIES_ARE_OFF' => 'Smeški so <em>izključeni</em>',
'SMILIES_ARE_ON' => 'Smeški so <em>vključeni</em>',
'STICKY_ANNOUNCE_TIME_LIMIT' => 'Časovna omejitev lepljivka/obvestila',
'STICK_TOPIC_FOR' => 'Tema naj bo lepljivek za',
'STICK_TOPIC_FOR_EXPLAIN' => 'Vnesite 0 ali pustite prazno za neskončno trajanje lepljivka/obvestila.',
'STYLES_TIP' => 'Namig: Stile lahko hitro uveljavite nad izbranim besedilom.',
'TOO_FEW_CHARS' => 'Vaše sporočilo vsebuje premalo znakov.',
'TOO_FEW_POLL_OPTIONS' => 'Vnesti morate vsaj dve možnosti ankete.',
'TOO_MANY_ATTACHMENTS' => 'Ne morete dodati še ene priponke - omejitev je %d.',
'TOO_MANY_CHARS' => 'Vaše sporočilo vsebuje preveč znakov.',
'TOO_MANY_POLL_OPTIONS' => 'Poizkusili ste vnesti preveč možnosti ankete.',
'TOO_MANY_SMILIES' => 'Vaše sporočilo vsebuje preveč smeškov. Največje dovoljeno število smeškov je %d.',
'TOO_MANY_URLS' => 'Vaše sporočilo vsebuje preveč URLjev. Največje dovoljeno število URLjev je %d.',
'TOO_MANY_USER_OPTIONS' => 'Možnosti na uporabnika ne more biti več kot obstoječih možnosti ankete.',
'TOPIC_BUMPED' => 'Tema je bila uspešno obnovljena.',
'UNAUTHORISED_BBCODE' => 'Nekaterih BBCode ne morete uporabiti: %s.',
'UNGLOBALISE_EXPLAIN' => 'Če želite temo iz globalne spremeniti nazaj na navadno, morate izbrati forum, kjer jo želite prikazati.',
'UPDATE_COMMENT' => 'Posodobi komentar',
'URL_INVALID' => 'Navedeni URL ni veljaven.',
'URL_NOT_FOUND' => 'Navedene datoteke ni bilo moč najti.',
'URL_IS_OFF' => '[url] je <em>izključen</em>',
'URL_IS_ON' => '[url] je <em>vključen</em>',
'USER_CANNOT_BUMP' => 'Tem v tem forumu ne morete obuditi.',
'USER_CANNOT_DELETE' => 'Prispevkov v tem forumu ne morete brisati.',
'USER_CANNOT_EDIT' => 'Prispevkov v tem forumu ne morete urejati.',
'USER_CANNOT_REPLY' => 'V tem forumu ne morete pisati prispevkov.',
'USER_CANNOT_FORUM_POST' => 'Vrsta tega foruma ne podpira operacij za vnašanje.',
'VIEW_MESSAGE' => '%sOglej si svoj poslani prispevek%s',
'WRONG_FILESIZE' => 'Datoteka je prevelika - največja dovoljena velikost je %1d %2s.',
'WRONG_SIZE' => 'Slika mora biti široka vsaj %1$d pikslov in visoka vsaj %2$d pikslov ter široka največ %3$d pikslov in visoka največ %4$d pixels pikslov. Poslana slika je široka %5$d pikslov in visoka %6$d pikslov.',
'POLL_OPTIONS_EDIT_EXPLAIN' => 'Vsako možnost navedite v svoji vrstici. Vnesete lahko največ <strong>%d</strong> možnosti. Če boste odstranili ali dodali kakšno možnost, bodo vsi prejšnji glasovi izbrisani.',
'POST_APPROVAL_NOTIFY' => 'Ko bo vaše sporočilo odobreno, boste o tem obveščeni.',
'TOO_MANY_CHARS_POST' => 'Vaše sporočilo vsebuje %1$d znakov. Največje dovoljeno število znakov je %2$d.',
'TOO_MANY_CHARS_SIG' => 'Vaš podpis vsebuje %1$d znakov. Največje dovoljeno število znakov je %2$d.',
'VIEW_PRIVATE_MESSAGE' => '%sOglejte si svoja poslana zasebna sporočila%s',
));
?> | 63.149038 | 265 | 0.731176 |
a45ca7fb81960baa10dc306ab55dab6113856475 | 11,996 | sql | SQL | admin.sql | webcuser/webcuser | 63223b077427c84341212ee077f1da9b58f29676 | [
"MIT"
] | null | null | null | admin.sql | webcuser/webcuser | 63223b077427c84341212ee077f1da9b58f29676 | [
"MIT"
] | null | null | null | admin.sql | webcuser/webcuser | 63223b077427c84341212ee077f1da9b58f29676 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Creato il: Gen 14, 2022 alle 08:01
-- Versione del server: 10.4.22-MariaDB
-- Versione PHP: 7.4.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `admin`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dump dei dati per la tabella `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2014_10_12_200000_add_two_factor_columns_to_users_table', 1),
(4, '2019_08_19_000000_create_failed_jobs_table', 1),
(5, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(6, '2022_01_04_005457_create_posts_table', 1),
(7, '2022_01_04_005510_create_categories_table', 1),
(8, '2022_01_04_011628_create_permission_tables', 2);
-- --------------------------------------------------------
--
-- Struttura della tabella `model_has_permissions`
--
CREATE TABLE `model_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `model_has_roles`
--
CREATE TABLE `model_has_roles` (
`role_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dump dei dati per la tabella `model_has_roles`
--
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\Models\\User', 1),
(2, 'App\\Models\\User', 2);
-- --------------------------------------------------------
--
-- Struttura della tabella `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `permissions`
--
CREATE TABLE `permissions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `posts`
--
CREATE TABLE `posts` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`text` text COLLATE utf8mb4_unicode_ci NOT NULL,
`cat_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dump dei dati per la tabella `roles`
--
INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'user', 'web', '2022-01-04 00:18:52', '2022-01-04 00:18:52'),
(2, 'admin', 'web', '2022-01-04 00:18:57', '2022-01-04 00:18:57');
-- --------------------------------------------------------
--
-- Struttura della tabella `role_has_permissions`
--
CREATE TABLE `role_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`two_factor_secret` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`two_factor_recovery_codes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dump dei dati per la tabella `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `two_factor_secret`, `two_factor_recovery_codes`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'user', 'user@a.com', NULL, '$2y$10$/GkQ3/8.yTRDTIuw3M7X7uaufwtyuGN4CKoI9tao4M3vmZpW8xPrq', NULL, NULL, NULL, '2022-01-04 00:23:58', '2022-01-04 00:23:58'),
(2, 'admin', 'admin@a.com', NULL, '$2y$10$Lnq42E7Xj6Y4lIUnAKzB9eBYcOevcX0OpBTfVVCvwodDifB9XeJ/.', NULL, NULL, NULL, '2022-01-04 00:24:25', '2022-01-04 00:24:25');
--
-- Indici per le tabelle scaricate
--
--
-- Indici per le tabelle `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indici per le tabelle `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indici per le tabelle `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indici per le tabelle `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indici per le tabelle `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indici per le tabelle `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indici per le tabelle `permissions`
--
ALTER TABLE `permissions`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);
--
-- Indici per le tabelle `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
--
-- Indici per le tabelle `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- Indici per le tabelle `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`);
--
-- Indici per le tabelle `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD PRIMARY KEY (`permission_id`,`role_id`),
ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
--
-- Indici per le tabelle `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT per le tabelle scaricate
--
--
-- AUTO_INCREMENT per la tabella `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT per la tabella `permissions`
--
ALTER TABLE `permissions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `posts`
--
ALTER TABLE `posts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT per la tabella `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Limiti per le tabelle scaricate
--
--
-- Limiti per la tabella `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
--
-- Limiti per la tabella `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Limiti per la tabella `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
| 30.36962 | 179 | 0.702734 |
6ee07ec9e4e341f5c51a6450ae223ea9c43acc87 | 7,788 | html | HTML | static/originale/mate/c/cf/cfddb2.html | ed-evo/ripmath-evo | 0009293ddf7bcf69f3c83a0e3e432a571e4044ce | [
"MIT"
] | null | null | null | static/originale/mate/c/cf/cfddb2.html | ed-evo/ripmath-evo | 0009293ddf7bcf69f3c83a0e3e432a571e4044ce | [
"MIT"
] | 3 | 2021-09-20T22:04:30.000Z | 2022-02-26T02:00:46.000Z | static/originale/mate/c/cf/cfddb2.html | math-evo/ripmath-evo | 0009293ddf7bcf69f3c83a0e3e432a571e4044ce | [
"MIT"
] | 1 | 2021-11-01T02:03:42.000Z | 2021-11-01T02:03:42.000Z | <HTML>
<HEAD>
<TITLE> dimostrazione dellla derivata del prodotto di due funzioni
</TITLE>
</HEAD>
<BODY Bgcolor="ccffcc"> <P>
<center><br><br><br>
<table border=0 width=80% cellpadding=20>
<tr bgcolor="ccffcc">
<td> <CENTER>
<font color="FF0000" size=6>
Dimostrazione della regola della derivata del prodotto di due funzioni
</FONT> </CENTER>
<font size=3>
Avvertenza: per una migliore visualizzazione metti la pagina a tutto schermo<br>
</font><font size=5> Voglio dimostrare che se ho <br>
<font color="ff0000" size=6>
y = f(x)· g(x)</font><br> allora ne segue<br>
<font color="ff0000" size=6>y' = f'(x) · g(x) + f(x) · g'(x) </font><br>
Parto dal rapporto incrementale per la funzione
<font color="ff0000" size=6>
y = f(x)·g(x)</font><br>
il rapporto incrementale vale:<br>
<br> <font color="ff0000" size=5>
f(x + h)·g(x + h) - f(x)·g(x)<br>
lim<sub><font size=3>h->0</font></sub> -------------------------- = <br>
h<br></font>
Pero' io so fare la derivata solo quando il rapporto incrementale mi
coinvolge una sola funzione, quindi aggiungo e tolgo un termine
in modo
da spezzare quel rapporto incrementale in due rapporti incrementali:
<font size=3>(se aggiungo e contemporaneamente tolgo la stessa quantita' l' espressione
non mi canbia di valore)</font><br>
<font color="ff0000" size=5>
f(x + h)·g(x + h) - f(x)·g(x + h) +f(x)·g(x + h) - f(x)·g(x)<br>
lim<sub><font size=3>h->0</font></sub> ----------------------------------------------------- = <br>
h<br></font>
ora spezzo il limite in due limiti:<br>
<font color="ff0000" size=5>
f(x + h)·g(x + h) - f(x)·g(x + h)
f(x)·g(x + h) - f(x)·g(x)<br>
lim<sub><font size=3>h->0</font></sub> --------------------------- +
lim<sub><font size=3>h->0</font></sub> ------------------------- = <br>
h
h<br></font>
Per problemi di visualizzazione sullo schermo facciamo un limite per volta:
<hr> nel primo limite <br>
<font color="ff0000" size=5>
f(x + h)·g(x + h) - f(x)·g(x + h) <br>
lim<sub><font size=3>h->0</font></sub> ------------------------------- = <br>
h<br></font>
posso mettere in evidenza <font color="ff0000" size=5>g(x+h)</font>
ed ottengo il limite di un prodotto<br><br>
<font color="ff0000" size=5>
f(x + h) - f(x) <br>
lim<sub><font size=3>h->0</font></sub> g(x + h)· -------------------- = <br>
h<br></font>
e posso fare il prodotto dei limiti:<br>
<font color="ff0000" size=5>
f(x + h) - f(x) <br>
lim<sub><font size=3>h->0</font></sub> g(x + h)·
lim<sub><font size=3>h->0</font></sub> -------------------- = <br>
h<br></font>
il primo limite quando h tende a zero vale <font color="ff0000" size=5>g(x)</font>
ed il secondo e' <font color="ff0000" size=5>f'(x) </font>
quindi <br>
<font color="ff0000" size=5>= g(x)·f'(x) = f'(x)·g(x)</font><hr>
nel secondo limite <br>
<font color="ff0000" size=5>
f(x)·g(x + h) - f(x)·g(x) <br>
lim<sub><font size=3>h->0</font></sub> ------------------------ = <br>
h<br></font>
posso mettere in evidenza <font color="ff0000" size=5>f(x)</font> ed ottengo il limite di un prodotto<br><br>
<font color="ff0000" size=5>
g(x + h) - g(x) <br>
lim<sub><font size=3>h->0</font></sub> f(x)· -------------------- = <br>
h<br></font>
e posso fare il prodotto dei limiti:<br>
<font color="ff0000" size=5>
g(x + h) - g(x) <br>
lim<sub><font size=3>h->0</font></sub> f(x)·
lim<sub><font size=3>h->0</font></sub> -------------------- = <br>
h<br></font>
il primo limite non dipende da h e vale <font color="ff0000" size=5>f(x)</font>
ed il secondo e' <font color="ff0000" size=5>g'(x) </font>
quindi <br>
<font color="ff0000" size=5>= f(x)·g'(x)</font><br><hr>
Raccogliendo i risultati l'espressione iniziale vale<br>
<font color="ff0000" size=5> = f'(x)·g(x) + f(x)·g'(x) </font><br>
come volevamo
</font>
</td>
</tr>
</table>
<p>
</center>
</BODY>
</HTML> | 46.357143 | 113 | 0.605162 |
d9a71376be2d1c28c288a052521b5f16818fcc2a | 1,200 | rs | Rust | tests/exhaust-queue.rs | mxxo/iou | a23bcaff62c730ae04dfc5cc27bdeff74a88eefa | [
"Apache-2.0",
"MIT"
] | 193 | 2019-11-08T14:05:18.000Z | 2020-09-21T01:46:18.000Z | tests/exhaust-queue.rs | mxxo/iou | a23bcaff62c730ae04dfc5cc27bdeff74a88eefa | [
"Apache-2.0",
"MIT"
] | 35 | 2019-11-08T13:36:16.000Z | 2020-09-22T12:44:51.000Z | tests/exhaust-queue.rs | mxxo/iou | a23bcaff62c730ae04dfc5cc27bdeff74a88eefa | [
"Apache-2.0",
"MIT"
] | 13 | 2019-11-08T16:22:53.000Z | 2020-09-07T08:48:32.000Z | // exhaust the SQ/CQ to prove that everything is working properly
#[test]
fn exhaust_queue_with_prepare_sqe() {
let mut io_uring = iou::IoUring::new(8).unwrap();
for counter in 0..64 {
unsafe {
let mut sqe = io_uring.prepare_sqe().unwrap();
sqe.prep_nop();
sqe.set_user_data(counter);
io_uring.submit_sqes_and_wait(1).unwrap();
let cqe = io_uring.peek_for_cqe().unwrap();
assert_eq!(cqe.user_data(), counter);
}
}
}
#[test]
fn exhaust_queue_with_prepare_sqes() {
let mut io_uring = iou::IoUring::new(8).unwrap();
for base in (0..64).filter(|x| x % 4 == 0) {
unsafe {
let mut counter = base;
let mut sqes = io_uring.prepare_sqes(4).unwrap();
for mut sqe in sqes.hard_linked() {
sqe.prep_nop();
sqe.set_user_data(counter);
counter += 1;
}
io_uring.submit_sqes_and_wait(4).unwrap();
for counter in base..counter {
let cqe = io_uring.peek_for_cqe().unwrap();
assert_eq!(cqe.user_data(), counter);
}
}
}
}
| 27.906977 | 65 | 0.5375 |
5c924b8fae8fb5b686a79844122de0017a31a1fd | 1,284 | css | CSS | design-system/css/base.css | glenn-sorrentino/design-system | 591d9519d0663cdc1250b05ff01b864b81e12b5e | [
"CC-BY-4.0"
] | 15 | 2019-01-30T20:47:17.000Z | 2021-12-19T03:23:24.000Z | design-system/css/base.css | glenn-sorrentino/design-system | 591d9519d0663cdc1250b05ff01b864b81e12b5e | [
"CC-BY-4.0"
] | 17 | 2018-12-10T01:36:24.000Z | 2019-04-20T22:46:42.000Z | design-system/css/base.css | glenn-sorrentino/design-system | 591d9519d0663cdc1250b05ff01b864b81e12b5e | [
"CC-BY-4.0"
] | 2 | 2019-01-30T22:14:40.000Z | 2021-08-09T02:36:22.000Z | @media (prefers-color-scheme: light) {
::selection {
background-color: var(--color-dark);
color: var(--color-light);
}
a {
color: var(--color-dark);
}
body {
background-color: var(--color-shade-lm);
}
}
@media (prefers-color-scheme: dark) {
::selection {
background-color: var(--color-light);
color: var(--color-dark);
}
body {
background-color: var(--shade-dm);
}
a {
color: var(--color-light);
}
}
html {
scroll-padding-top: calc(var(--spacing-xxlarge) * 1.5);
}
body {
display: flex;
flex-flow: column;
height: 100%;
}
a {
cursor: pointer;
}
p + ul {
margin-left: var(--spacing-base);
}
ul {
margin: var(--spacing-small) 0;
}
ul li {
margin: var(--spacing-base) 0;
}
ul li:first-of-type {
margin: 0;
}
img {
margin: var(--spacing-base) 0;
width: 100%;
}
header, section, footer {
display: flex;
justify-content: center;
}
section {
margin: 0 0 calc(var(--spacing-xxlarge) * 1.5) 0;
}
.wrapper {
max-width: 1280px;
width: 100%;
display: flex;
padding: 0 var(--spacing-large);
flex-direction: column;
}
@media only screen and (max-width: 768px) {
.wrapper {
padding: 0 var(--spacing-medium);
}
section {
margin: 0 0 var(--spacing-xxlarge) 0;
}
}
| 13.806452 | 57 | 0.587227 |
23b1e16a56c2b0cb43b624277b54c6a25b124954 | 3,332 | kt | Kotlin | scratchoff-sample/src/main/java/com/jackpocket/scratchoff/test/MainActivity.kt | GRSahana/ohos_scratchoff | ecf2b5f4b85f05c3a5b9b4a4900bfe80bdde23d6 | [
"Apache-2.0"
] | 483 | 2016-07-25T18:32:16.000Z | 2022-03-24T01:37:03.000Z | scratchoff-sample/src/main/java/com/jackpocket/scratchoff/test/MainActivity.kt | GRSahana/ohos_scratchoff | ecf2b5f4b85f05c3a5b9b4a4900bfe80bdde23d6 | [
"Apache-2.0"
] | 15 | 2016-07-29T11:00:55.000Z | 2021-09-17T14:28:55.000Z | scratchoff-sample/src/main/java/com/jackpocket/scratchoff/test/MainActivity.kt | GRSahana/ohos_scratchoff | ecf2b5f4b85f05c3a5b9b4a4900bfe80bdde23d6 | [
"Apache-2.0"
] | 52 | 2016-07-25T19:30:52.000Z | 2021-10-18T03:42:10.000Z | package com.jackpocket.scratchoff.test
import android.os.Bundle
import android.util.Log
import android.view.MotionEvent
import android.view.View
import android.view.animation.LinearInterpolator
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.jackpocket.scratchoff.ScratchoffController
import com.jackpocket.scratchoff.views.ScratchableLinearLayout
import java.lang.ref.WeakReference
import java.util.concurrent.TimeUnit
class MainActivity: AppCompatActivity(), ScratchoffController.ThresholdChangedListener, View.OnTouchListener {
private lateinit var controller: ScratchoffController
private var scratchPercentTitleView = WeakReference<TextView>(null)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
this.scratchPercentTitleView = WeakReference(findViewById(R.id.scratch_value_title))
this.controller = ScratchoffController.findByViewId(this, R.id.scratch_view)
.setThresholdChangedListener(this)
.setTouchRadiusDip(this, 25)
.setThresholdCompletionPercent(.4f)
.setClearAnimationEnabled(true)
.setClearAnimationDuration(1, TimeUnit.SECONDS)
.setClearAnimationInterpolator(LinearInterpolator())
// .setTouchRadiusPx(25)
// .setThresholdAccuracyQuality(Quality.LOW)
// .setThresholdTargetRegionsProvider({
// val inset = (min(it.width, it.height) * 0.15F).toInt()
//
// listOf(
// Rect(inset, inset, it.width - inset, it.height - inset)
// )
// })
// .setMatchLayoutWithBehindView(findViewById(R.id.scratch_view_behind))
// .setStateRestorationEnabled(false)
.attach()
}
override fun onResume() {
super.onResume()
this.controller.addTouchObserver(this)
}
override fun onPause() {
super.onPause()
this.controller.removeTouchObservers()
}
override fun onDestroy() {
this.controller.onDestroy()
super.onDestroy()
}
override fun onScratchThresholdReached(controller: ScratchoffController) {
// Do something?
}
override fun onScratchPercentChanged(controller: ScratchoffController, percentCompleted: Float) {
scratchPercentTitleView.get()?.text = "Scratched ${percentCompleted * 100}%"
}
override fun onTouch(view: View, event: MotionEvent): Boolean {
when (event.action) {
MotionEvent.ACTION_DOWN -> Log.d(TAG, "Observed ACTION_DOWN")
MotionEvent.ACTION_UP -> Log.d(TAG, "Observed ACTION_UP")
}
// Our return is ignored here
return false
}
fun resetActionClicked(view: View?) {
// Reset the scratchable View's background color, as the ScratchableLayoutDrawer
// will set the background to Color.TRANSPARENT after capturing the content
findViewById<ScratchableLinearLayout>(R.id.scratch_view)
.setBackgroundColor(-0xc36521)
controller.attach()
}
companion object {
val TAG = "ScratchoffTest"
}
} | 34.350515 | 110 | 0.661765 |
38df9287e1a4972eddfc358b64c1843ccc6abf86 | 207 | h | C | MDCurveKitDemo/MDCurveKitDemo/MDCurveLabel/MDCurveDemoLabel.h | yangchenlarkin/MDCurveKit | 514f403777a35fc321bd8b0ea896d431b0869bb1 | [
"MIT"
] | 2 | 2015-07-28T18:26:11.000Z | 2019-01-07T06:48:07.000Z | MDCurveKitDemo/MDCurveKitDemo/MDCurveLabel/MDCurveDemoLabel.h | yangchenlarkin/MDCurveKit | 514f403777a35fc321bd8b0ea896d431b0869bb1 | [
"MIT"
] | null | null | null | MDCurveKitDemo/MDCurveKitDemo/MDCurveLabel/MDCurveDemoLabel.h | yangchenlarkin/MDCurveKit | 514f403777a35fc321bd8b0ea896d431b0869bb1 | [
"MIT"
] | null | null | null | //
// MDCurveDemoLabel.h
// MDCurveKitDemo
//
// Created by 杨晨 on 6/16/14.
// Copyright (c) 2014 剑川道长. All rights reserved.
//
#import "MDCurveLabel.h"
@interface MDCurveDemoLabel : MDCurveLabel
@end
| 14.785714 | 49 | 0.690821 |
fa43b62685dad7a40ea975717646b529866c4a82 | 345 | asm | Assembly | libsrc/interrupts/im2/im2_RegHookFirst.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 38 | 2021-06-18T12:56:15.000Z | 2022-03-12T20:38:40.000Z | libsrc/interrupts/im2/im2_RegHookFirst.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 2 | 2021-06-20T16:28:12.000Z | 2021-11-17T21:33:56.000Z | libsrc/interrupts/im2/im2_RegHookFirst.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 6 | 2021-06-18T18:18:36.000Z | 2021-12-22T08:01:32.000Z | ; CALLER linkage for function pointers
SECTION code_clib
PUBLIC im2_RegHookFirst
PUBLIC _im2_RegHookFirst
EXTERN im2_RegHookFirst_callee
EXTERN ASMDISP_IM2_REGHOOKFIRST_CALLEE
.im2_RegHookFirst
._im2_RegHookFirst
pop bc
pop de
pop hl
push hl
push de
push bc
jp im2_RegHookFirst_callee + ASMDISP_IM2_REGHOOKFIRST_CALLEE
| 16.428571 | 63 | 0.814493 |
9683fd1a56658e0b427a3bf7618202bcc472209c | 5,293 | php | PHP | tests/EntityMap/EntityMapWithoutStatsTest.php | fiiSoft/fiisoft-entity-indexer | 23563c391a92947ce0405b7b8152140bccfa306a | [
"MIT"
] | null | null | null | tests/EntityMap/EntityMapWithoutStatsTest.php | fiiSoft/fiisoft-entity-indexer | 23563c391a92947ce0405b7b8152140bccfa306a | [
"MIT"
] | null | null | null | tests/EntityMap/EntityMapWithoutStatsTest.php | fiiSoft/fiisoft-entity-indexer | 23563c391a92947ce0405b7b8152140bccfa306a | [
"MIT"
] | null | null | null | <?php
namespace FiiSoft\Test\EntityIndexer\EntityMap;
use FiiSoft\EntityIndexer\EntityMap\EntityMapWithoutStats;
use FiiSoft\Test\EntityIndexer\Doubles\FakeEntity;
use FiiSoft\Test\EntityIndexer\Doubles\FakeIntegerId;
class EntityMapWithoutStatsTest extends \PHPUnit_Framework_TestCase
{
public function test_it_can_index_entities_with_indexed_property_null()
{
$map = new EntityMapWithoutStats([
'unique' => [
['name'],
['age', 'symbol'],
],
'multi' => [
['symbol'],
],
]);
$entityOne = new FakeEntity(new FakeIntegerId(), ['name' => 'ala', 'age' => 16, 'symbol' => 'x', 'sex' => 'f']);
$entityTwo = new FakeEntity(new FakeIntegerId(), ['name' => 'ola', 'age' => 17, 'symbol' => 'y', 'sex' => 'f']);
$entityThree = new FakeEntity(new FakeIntegerId(), ['name' => null, 'age' => 15, 'symbol' => 'z', 'sex' => 'f']);
$entityFour = new FakeEntity(new FakeIntegerId(), ['name' => 'ela', 'age' => 15, 'symbol' => null, 'sex' => 'f']);
$entityFive = new FakeEntity(new FakeIntegerId(), ['name' => null, 'age' => 15, 'symbol' => null, 'sex' => 'f']);
$entitySix = new FakeEntity(new FakeIntegerId(), ['name' => null, 'age' => 18, 'symbol' => 'z', 'sex' => 'f']);
$map->rememberEntity($entityOne);
$map->rememberEntity($entityTwo);
$map->rememberEntity($entityThree);
$map->rememberEntity($entityFour);
$map->rememberEntity($entityFive);
$map->rememberEntity($entitySix);
$findOneWithNameAla = $map->findOneEntity(['name' => 'ala']);
self::assertSame($entityOne, $findOneWithNameAla);
$findOneWithAge15AndSymbolZ = $map->findOneEntity(['age' => 15, 'symbol' => 'z']);
self::assertSame($entityThree, $findOneWithAge15AndSymbolZ);
$findOneWithNameNull = $map->findOneEntity(['name' => null]);
self::assertSame($entityThree, $findOneWithNameNull);
$findOneWithNameNullAndAge18 = $map->findOneEntity(['name' => null, 'age' => 18]);
self::assertSame($entitySix, $findOneWithNameNullAndAge18);
$findOneWithNameAlaAndSymbolX = $map->findOneEntity(['name' => 'ala', 'symbol' => 'x']);
self::assertSame($entityOne, $findOneWithNameAlaAndSymbolX);
$findAllWithNameAlaAndSymbolX = $map->findAllEntities(['name' => 'ala', 'symbol' => 'x']);
$this->checkCollectionsOfEntities([$entityOne], $findAllWithNameAlaAndSymbolX);
$findWithNameNullAndAge15 = $map->findAllEntities(['name' => null, 'age' => 15]);
$this->checkCollectionsOfEntities([$entityThree, $entityFive], $findWithNameNullAndAge15);
$findOneWithNameNullAndSymbolZ = $map->findOneEntity(['name' => null, 'symbol' => 'z']);
self::assertSame($entityThree, $findOneWithNameNullAndSymbolZ);
$findOneWithNameNullAndSymbolNull = $map->findOneEntity(['name' => null, 'symbol' => null]);
self::assertSame($entityFive, $findOneWithNameNullAndSymbolNull);
$findAllWithNameNullAndSymbolZ = $map->findAllEntities(['name' => null, 'symbol' => 'z']);
$this->checkCollectionsOfEntities([$entityThree, $entitySix], $findAllWithNameNullAndSymbolZ);
$findAllWithSymbolNull = $map->findAllEntities(['symbol' => null]);
$this->checkCollectionsOfEntities([$entityFour, $entityFive], $findAllWithSymbolNull);
$findOneWithSymbolNull = $map->findOneEntity(['symbol' => null]);
self::assertSame($entityFour, $findOneWithSymbolNull);
$findWithNameNull = $map->findAllEntities(['name' => null]);
$this->checkCollectionsOfEntities([$entityThree, $entityFive, $entitySix], $findWithNameNull);
$findByAge15 = $map->findAllEntities(['age' => 15]);
$this->checkCollectionsOfEntities([$entityThree, $entityFour, $entityFive], $findByAge15);
$findByAge15WithSymbolNull = $map->findAllEntities(['age' => 15, 'symbol' => null]);
$this->checkCollectionsOfEntities([$entityFour, $entityFive], $findByAge15WithSymbolNull);
$findBySymbolZ = $map->findAllEntities(['symbol' => 'z']);
$this->checkCollectionsOfEntities([$entityThree, $entitySix], $findBySymbolZ);
$map->forgetEntity($entityThree);
self::assertEmpty($map->findAllEntities(['age' => 15, 'symbol' => 'z']));
$map->forgetEntity($entitySix);
$this->checkCollectionsOfEntities([$entityFive], $map->findAllEntities(['name' => null]));
}
/**
* @param FakeEntity[] $expectedEntities
* @param FakeEntity[] $actualEntities
* @return void
*/
private function checkCollectionsOfEntities(array $expectedEntities, array $actualEntities)
{
self::assertCount(count($expectedEntities), $actualEntities);
foreach ($expectedEntities as $expected) {
foreach ($actualEntities as $actual) {
if ($expected === $actual) {
continue 2;
}
}
self::fail('Expected entity '.$expected.' not found!');
}
}
}
| 47.684685 | 122 | 0.603627 |
e728916b555e5f819d815b2a8a312fe718e46edc | 437 | js | JavaScript | src/skills/computed.js | Shadownc/react-vue-skills | 0240ad52f6405e0fff407805b9cc24c6dec4b85a | [
"MIT"
] | 1 | 2022-01-19T01:49:40.000Z | 2022-01-19T01:49:40.000Z | src/skills/computed.js | Shadownc/react-vue-skills | 0240ad52f6405e0fff407805b9cc24c6dec4b85a | [
"MIT"
] | null | null | null | src/skills/computed.js | Shadownc/react-vue-skills | 0240ad52f6405e0fff407805b9cc24c6dec4b85a | [
"MIT"
] | 3 | 2021-12-22T02:48:31.000Z | 2022-01-19T01:49:42.000Z | import React, { useMemo, useState } from "react"
export default function Computed (){
const [ num1, setNum1 ] = useState(10)
const [ num2, setNum2 ] = useState(10)
const num3 = useMemo((a, b) => {
return num1 + num2
}, [ num1, num2 ])
const onAdd = () => {
setNum1(num1 + 10)
}
return (
<div className="computed">
<button onClick={ onAdd }>+10</button>
<div>计算结果:{ num3 }</div>
</div>
)
}
| 19.863636 | 48 | 0.567506 |
cf5a872424cfc171ad6461a53cd94710086485e4 | 2,297 | css | CSS | style.css | Lucas-Campos-Davis/Pomodoro | b088d775c13126770538c6f6c1f2e4c9f04126f5 | [
"MIT"
] | null | null | null | style.css | Lucas-Campos-Davis/Pomodoro | b088d775c13126770538c6f6c1f2e4c9f04126f5 | [
"MIT"
] | null | null | null | style.css | Lucas-Campos-Davis/Pomodoro | b088d775c13126770538c6f6c1f2e4c9f04126f5 | [
"MIT"
] | null | null | null | body {
font-family: 'Montserrat', sans-serif;
color: #ffffff;
margin: 0;
background-color: #121212;
}
.container{
display: flex;
flex-direction: column;
flex: auto;
align-items: center;
justify-content: center;
}
.site-title {
margin: 0;
padding: 10px 20px;
font-size: 30px;
font-weight: 100;
background-color: #2e2e2e;
}
#timer{
border: 1px solid #000000;
border-radius: 15px;
background-color: #272727;
padding-left: 30px;
padding-right: 30px;
margin: 10px;
margin-top: 30px;
}
#time{
font-size: 150px;
font-family: 'Courier Prime', monospace;
}
#number-holders{
display: flex;
flex-direction: row;
align-items: center;
border: 1px solid #000000;
background-color: #272727;
border-radius: 5px;
}
.number-holder{
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
}
#buttons{
padding: 10px;
border-radius: 5px;
border: 1px solid #000;
background-color: #272727;
margin-bottom: 5px;
}
button{
border-radius: 5px;
border: 1px solid #000;
background-color: #383838;
color: #ffffff;
font-family: 'Montserrat', sans-serif;
}
input{
width:50px;
font-family: 'Montserrat', sans-serif;
}
#notification{
visibility: hidden;
background-color: rgb(15, 68, 42);
color: #fff;
text-align: center;
border-radius: 5px;
border: 1px solid #000;
padding: 10px;
margin-top: 40px;
z-index: 1;
bottom: 30px;
}
#notification.show {
visibility: visible; /* Show the toast */
/* Add animation: Take 0.5 seconds to fade in and out the toast.
However, delay the fade out process for 2.5 seconds */
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
/* Animations to fade the toast in and out */
@-webkit-keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@-webkit-keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}
@keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
} | 21.073394 | 68 | 0.616456 |
f37a9604852b17272cd241e78100545af5fceb9d | 9,396 | lua | Lua | spec/Pointer_spec.lua | deepakjois/luarestructure | 45772847d711042dd7916494114bd6cef0dbf5fb | [
"MIT"
] | 1 | 2020-04-22T04:37:59.000Z | 2020-04-22T04:37:59.000Z | spec/Pointer_spec.lua | deepakjois/luarestructure | 45772847d711042dd7916494114bd6cef0dbf5fb | [
"MIT"
] | 2 | 2017-06-03T09:54:45.000Z | 2017-06-04T05:10:04.000Z | spec/Pointer_spec.lua | deepakjois/luarestructure | 45772847d711042dd7916494114bd6cef0dbf5fb | [
"MIT"
] | null | null | null | local r = require("restructure")
local VoidPointer = r.VoidPointer
describe('Pointer', function()
describe('decode', function()
it('should handle null pointers', function()
local stream = r.DecodeStream.new(string.char(0))
local pointer = r.Pointer.new(r.uint8, r.uint8)
assert.is_nil(pointer:decode(stream, {_startOffset = 50}))
end)
it('should use local offsets from start of parent by default', function()
local stream = r.DecodeStream.new(string.char(1, 53))
local pointer = r.Pointer.new(r.uint8, r.uint8)
assert.are_equal(53,pointer:decode(stream, {_startOffset = 0}))
end)
it('should support immediate offsets', function()
local stream = r.DecodeStream.new(string.char(1, 53))
local pointer = r.Pointer.new(r.uint8, r.uint8, {type = 'immediate'})
assert.are_equal(53,pointer:decode(stream))
end)
it('should support offsets relative to the parent', function()
local stream = r.DecodeStream.new(string.char(0, 0, 1, 53))
stream.buffer.pos = 2
local pointer = r.Pointer.new(r.uint8, r.uint8, {type = 'parent'})
assert.are_equal(53,pointer:decode(stream, {parent = { _startOffset = 2}}))
end)
it('should support global offsets', function()
local stream = r.DecodeStream.new(string.char(1, 2, 4, 0, 0, 0, 53))
local pointer = r.Pointer.new(r.uint8, r.uint8, {type = 'global'})
stream.buffer.pos = 2
assert.are_equal(53,pointer:decode(stream, { parent = { parent = {_startOffset = 2 } } }))
end)
it('should support offsets relative to a property on the parent', function()
local stream = r.DecodeStream.new(string.char(1, 0, 0, 0, 0, 53))
local pointer = r.Pointer.new(r.uint8, r.uint8, {relativeTo = 'parent.ptr'})
assert.are_equal(53,pointer:decode(stream, {_startOffset = 0, parent = { ptr = 4 }}))
end)
it('should support returning pointer if there is no decode type', function()
local stream = r.DecodeStream.new(string.char(4))
local pointer = r.Pointer.new(r.uint8, 'void')
assert.are_equal(4,pointer:decode(stream, { _startOffset = 0 }))
end)
it('should support decoding pointers lazily #debug', function()
local stream = r.DecodeStream.new(string.char(1, 53))
local struct = r.Struct.new({
{ ptr = r.Pointer.new(r.uint8, r.uint8, {lazy = true}) }
})
local res = struct:decode(stream)
-- Object.getOwnPropertyDescriptor(res, 'ptr').get.should.be.a('function')
-- Object.getOwnPropertyDescriptor(res, 'ptr').enumerable.should.equal(true)
assert.are_equal(53,res.ptr)
end)
end)
describe('size', function()
it('should add to local pointerSize', function()
local pointer = r.Pointer.new(r.uint8, r.uint8)
local ctx = { pointerSize = 0}
assert.are_equal(1,pointer:size(10, ctx))
assert.are_equal(1,ctx.pointerSize)
end)
it('should add to immediate pointerSize', function()
local pointer = r.Pointer.new(r.uint8, r.uint8, {type = 'immediate'})
local ctx = {pointerSize = 0}
assert.are_equal(1,pointer:size(10, ctx))
assert.are_equal(1,ctx.pointerSize)
end)
it('should add to parent pointerSize', function()
local pointer = r.Pointer.new(r.uint8, r.uint8, {type = 'parent'})
local ctx = { parent = { pointerSize = 0 } }
assert.are_equal(1,pointer:size(10, ctx))
assert.are_equal(1,ctx.parent.pointerSize)
end)
it('should add to global pointerSize', function()
local pointer = r.Pointer.new(r.uint8, r.uint8, {type = 'global'})
local ctx = { parent = { parent = { parent = { pointerSize = 0 }}}}
assert.are_equal(1,pointer:size(10, ctx))
assert.are_equal(1,ctx.parent.parent.parent.pointerSize)
end)
it('should handle void pointers', function()
local pointer = r.Pointer.new(r.uint8, 'void')
local ctx = { pointerSize = 0 }
assert.are_equal(1,pointer:size(VoidPointer.new(r.uint8, 50), ctx))
assert.are_equal(1,ctx.pointerSize)
end)
it('should throw if no type and not a void pointer', function()
local pointer = r.Pointer.new(r.uint8, 'void')
local ctx = {pointerSize = 0}
assert.has_error(function() pointer:size(30, ctx) end, "Must be a VoidPointer")
end)
it('should return a fixed size without a value', function()
local pointer = r.Pointer.new(r.uint8, r.uint8)
assert.are_equal(1,pointer:size())
end)
end)
describe('encode', function()
it('should handle null pointers', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8)
local ctx = {
pointerSize = 0,
startOffset = 0,
pointerOffset = 0,
pointers = {}
}
ptr:encode(stream, nil, ctx)
assert.are_equal(string.char(0), stream:getContents())
assert.are_equal(0,ctx.pointerSize)
end)
it('should handle local offsets', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8)
local ctx = {
pointerSize = 0,
startOffset = 0,
pointerOffset = 1,
pointers = {}
}
ptr:encode(stream, 10, ctx)
assert.are_equal(2,ctx.pointerOffset)
assert.are_equal(string.char(1), stream:getContents())
assert.are.same({
{ type = r.uint8, val = 10, parent = ctx }
}, ctx.pointers)
end)
it('should handle immediate offsets', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8, {type = 'immediate'})
local ctx = {
pointerSize = 0,
startOffset = 0,
pointerOffset = 1,
pointers = {}
}
ptr:encode(stream, 10, ctx)
assert.are_equal(2,ctx.pointerOffset)
assert.are.same({
{ type = r.uint8, val = 10, parent = ctx }
}, ctx.pointers)
assert.are_equal(string.char(0), stream:getContents())
end)
it('should handle immediate offsets', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8, {type = 'immediate'})
local ctx = {
pointerSize= 0,
startOffset= 0,
pointerOffset= 1,
pointers= {}
}
ptr:encode(stream, 10, ctx)
assert.are_equal(2,ctx.pointerOffset)
assert.are_same({
{ type = r.uint8, val = 10, parent = ctx }
},ctx.pointers)
assert.are_equal(string.char(0),stream:getContents())
end)
it('should handle offsets relative to parent', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8, {type = 'parent'})
local ctx = {
parent = {
pointerSize = 0,
startOffset = 3,
pointerOffset = 5,
pointers = {}
}
}
ptr:encode(stream, 10, ctx)
assert.are_equal(6,ctx.parent.pointerOffset)
assert.are.same(ctx.parent.pointers, {
{ type = r.uint8, val = 10, parent = ctx }
})
assert.are_equal(string.char(2), stream:getContents())
end)
it('should handle global offsets', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8, {type = 'global'})
local ctx = {
parent = {
parent = {
parent = {
pointerSize = 0,
startOffset = 3,
pointerOffset = 5,
pointers = {}
}
}
}
}
ptr:encode(stream, 10, ctx)
assert.are_equal(6,ctx.parent.parent.parent.pointerOffset)
assert.are.same({
{ type = r.uint8, val = 10, parent = ctx }
},ctx.parent.parent.parent.pointers)
assert.are_equal(string.char(5), stream:getContents())
end)
it('should support offsets relative to a property on the parent', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, r.uint8, {relativeTo = 'ptr'})
local ctx = {
pointerSize = 0,
startOffset = 0,
pointerOffset = 10,
pointers = {},
val = {
ptr = 4
}
}
ptr:encode(stream, 10, ctx)
assert.are_equal(11,ctx.pointerOffset)
assert.are.same({
{ type = r.uint8, val = 10, parent = ctx }
},ctx.pointers)
assert.are_equal(string.char(6), stream:getContents())
end)
it('should support void pointers', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, 'void')
local ctx = {
pointerSize = 0,
startOffset = 0,
pointerOffset = 1,
pointers = {}
}
ptr:encode(stream, VoidPointer.new(r.uint8, 55), ctx)
assert.are_equal(2,ctx.pointerOffset)
assert.are.same({
{ type = r.uint8, val = 55, parent = ctx }
},ctx.pointers)
assert.are_equal(string.char(1), stream:getContents())
end)
it('should throw if not a void pointer instance', function()
local stream = r.EncodeStream.new()
local ptr = r.Pointer.new(r.uint8, 'void')
local ctx = {
pointerSize = 0,
startOffset = 0,
pointerOffset = 1,
pointers = {}
}
assert.has_error(function() ptr:encode(stream, 44, ctx) end, "Must be a VoidPointer")
end)
end)
end)
| 33.437722 | 96 | 0.60281 |
8181a130eaf7ca53aae1d232872008bed5c57f23 | 12,643 | rs | Rust | src/lib.rs | rkruppe/beevage.rs | 2f5d2681078de524803d32ea5cd1eed694e16409 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/lib.rs | rkruppe/beevage.rs | 2f5d2681078de524803d32ea5cd1eed694e16409 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/lib.rs | rkruppe/beevage.rs | 2f5d2681078de524803d32ea5cd1eed694e16409 | [
"Apache-2.0",
"MIT"
] | null | null | null | //! [Bounding Volume Hierarchy (BVH)][bvh] construction for ray tracing, and construction *only*.
//!
//! Beevage constructs high-quality binary BVHs in three-dimensional space.
//! It works with any kind of shape that supports bounding box calculations.
//! Only construction is implemented, this crate doesn't come with any traversal operations.
//! Consequently, it is agnostic both w.r.t. what kinds of geometric primitives you put into it
//! and what exactly you later do with the BVH.
//! The construction method of choice produces trees that work best for ray tracing, but otherwise
//! it is pretty general-purpose.
//!
//!
//! [bvh]: https://en.wikipedia.org/wiki/Bounding_volume_hierarchy
extern crate ordered_float;
extern crate rayon;
pub extern crate cgmath;
pub extern crate beebox;
use std::f32;
use std::mem;
use std::marker::PhantomData;
use std::ops::{Index, Range};
use std::cmp::min;
use std::sync::atomic::{AtomicUsize, Ordering};
use cgmath::Vector3;
use beebox::Aabb;
use ordered_float::NotNaN;
use rayon::prelude::*;
/// A completed BVH.
pub struct Bvh<'a> {
pub root: Node,
pub primitives: Vec<PrimRef<'a>>,
pub node_count: usize,
}
/// This type represents a geometric primitive in a leaf node of the BVH.
///
/// Conceptually this is just a pointer (with lifetime `'p`) to an element of the geometric
/// primitives slice passed into the construction routine. Its representation, however, is the
/// *index* of that primitive in that slice. The reasons for that are mostly implementation
/// convenience and the possibility for a space optimization.
#[derive(Copy, Clone)]
pub struct PrimRef<'p>(usize, PhantomData<&'p ()>); // FIXME should be u32
impl<'p> PrimRef<'p> {
fn new(index: usize) -> Self {
PrimRef(index, PhantomData)
}
/// Return the index of the corresponding primitive.
pub fn index(&self) -> usize {
self.0
}
}
/// This split axis of an interior node.
pub enum Axis {
X,
Y,
Z,
}
// TODO create a builder for this
/// Configuration for the binned SAH construction algorithm.
#[derive(Copy, Clone, Debug)]
pub struct Config {
/// The number of buckets to use for split plane selection.
pub bucket_count: usize, // FIXME this should be u32
/// The SAH cost of a traversal step, relative to one primitive intersection test.
/// (It is assumed that all primitives are equally expensive to test for test.)
pub traversal_cost: f32, // FIXME don't assume that all primitives are equally expensive
/// The maximum depth of the tree. If this depth is reached, a leaf node is forced regardless
/// of SAH cost and number of primitives.
pub max_depth: usize,
}
impl Axis {
fn new(axis_id: usize) -> Self {
match axis_id {
0 => Axis::X,
1 => Axis::Y,
2 => Axis::Z,
i => panic!("non-existent axis {}", i),
}
}
}
// FIXME arena allocation for the Nodes
/// A node in the BVH. All nodes, whether interior or leaves, have a bounding box.
pub enum Node {
/// A leaf node encompassing a variable number of primitives.
Leaf {
/// Bounding box of the leaf. Note that this is not necessarily encompass all primitives'
/// bounding boxes, since some construction algorithms use "spatial splits": assingning
/// one primitive to *several* nodes with smaller bounding boxes which encompass only
/// parts of the primitive.
bb: Aabb,
/// The primitives of this leaf. This range refers to `Bvh::primitives`, i.e.,
/// the leaf's primitives are `bvh.primitives[primitive_range]`.
primitive_range: Range<usize>, // FIXME it should be Range<u32>
},
/// A leaf node with two children.
Inner {
/// The union of the child nodes' bounding boxes.
bb: Aabb,
/// The child nodes.
children: Box<(Node, Node)>,
/// The axis used for the split plane.
axis: Axis,
},
}
/// Data shared by all subtree builders
#[derive(Debug)]
struct BuilderCommon {
node_count: AtomicUsize,
prim_bbs: Box<[Aabb]>,
_root_bb: Aabb, // TODO use it for SBVH
config: Config,
}
#[derive(Clone, Debug)]
struct Bucket {
bb: Aabb,
count: usize,
}
impl Bucket {
fn empty() -> Self {
Bucket {
count: 0,
bb: Aabb::empty(),
}
}
}
#[derive(Debug)]
struct Buckets<'c> {
common: &'c BuilderCommon,
centroid_bb: Aabb,
axis: usize,
buckets: Vec<Bucket>,
}
impl<'c> Buckets<'c> {
fn new<I>(common: &'c BuilderCommon, centroids: I) -> Result<Self, ()>
where I: Iterator<Item = Vector3<f32>>
{
let centroid_bb = Aabb::new(centroids);
let axis = centroid_bb.largest_axis();
if centroid_bb.min()[axis] == centroid_bb.max()[axis] {
return Err(());
}
let bucket_count = common.config.bucket_count;
Ok(Buckets {
common: common,
centroid_bb: centroid_bb,
axis: axis,
buckets: vec![Bucket::empty(); bucket_count],
})
}
fn index(&self, x: Vector3<f32>) -> usize {
let (left_border, right_border) = (self.centroid_bb.min()[self.axis],
self.centroid_bb.max()[self.axis]);
let relative_pos = (x[self.axis] - left_border) / (right_border - left_border);
let bucket_count = self.common.config.bucket_count;
min((bucket_count as f32 * relative_pos) as usize,
bucket_count - 1)
}
fn add_primitive(&mut self, bb: Aabb) {
let b = self.index(bb.centroid());
self.buckets[b].bb.add_box(bb);
self.buckets[b].count += 1;
}
fn child<R>(&self, range: R) -> (Aabb, usize)
where Vec<Bucket>: Index<R, Output = [Bucket]>
{
let mut bb = Aabb::empty();
let mut count = 0;
for bucket in &self.buckets[range] {
bb.add_box(bucket.bb);
count += bucket.count;
}
(bb, count)
}
}
/// Data for the construction process of a particular subtree
struct SubtreeBuilder<'c, 'p: 'c> {
common: &'c BuilderCommon,
prims: &'c mut [PrimRef<'p>],
bb: Aabb,
prim_offset: usize,
depth: usize,
}
impl<'c, 'p> SubtreeBuilder<'c, 'p> {
fn new(common: &'c BuilderCommon,
prims: &'c mut [PrimRef<'p>],
bb: Aabb,
prim_offset: usize,
depth: usize)
-> Self {
assert!(depth < common.config.max_depth,
"BVH is becoming unreasonably deep --- infinite loop?");
common.node_count.fetch_add(1, Ordering::SeqCst);
SubtreeBuilder {
common: common,
prims: prims,
bb: bb,
prim_offset: prim_offset,
depth: depth + 1,
}
}
fn make_inner(mut self, buckets: &Buckets, split: usize) -> Node {
let bb = self.bb;
let mid = self.partition(buckets, split);
let (prims_l, prims_r) = self.prims.split_at_mut(mid);
let offset_l = self.prim_offset;
let offset_r = offset_l + mid;
let (bb_l, count_l) = buckets.child(..split);
let (bb_r, count_r) = buckets.child(split..);
assert_eq!(mid, count_l);
assert_eq!(count_l, prims_l.len());
assert_eq!(count_r, prims_r.len());
let (l, r) = (SubtreeBuilder::new(self.common, prims_l, bb_l, offset_l, self.depth),
SubtreeBuilder::new(self.common, prims_r, bb_r, offset_r, self.depth));
let children = rayon::join(move || l.build(), move || r.build());
Node::Inner {
bb: bb,
children: Box::new(children),
axis: Axis::new(buckets.axis),
}
}
fn make_leaf(self) -> Node {
let start = self.prim_offset;
let end = start + self.prims.len();
Node::Leaf {
bb: self.bb,
primitive_range: start..end,
}
}
fn build(self) -> Node {
if self.prims.len() == 1 {
return self.make_leaf();
}
if let Ok(buckets) = self.buckets() {
let (split_cost, split) = self.best_split(&buckets);
let leaf_cost = self.prims.len() as f32;
if leaf_cost <= split_cost {
self.make_leaf()
} else {
self.make_inner(&buckets, split)
}
} else {
// Couldn't construct buckets, perhaps because the centroids are all clumped together.
// Give up and put all remaining primitives in a big leaf
self.make_leaf()
}
}
fn buckets(&self) -> Result<Buckets<'c>, ()> {
let prim_bbs = &self.common.prim_bbs;
let centroids = self.prims.iter().map(|p| prim_bbs[p.index()].centroid());
let mut buckets = try!(Buckets::new(self.common, centroids));
for prim in self.prims.iter() {
buckets.add_primitive(self.common.prim_bbs[prim.index()]);
}
Ok(buckets)
}
fn best_split(&self, buckets: &Buckets) -> (f32, usize) {
let cfg = &self.common.config;
let possible_splits = 1..cfg.bucket_count;
let mut costs = Vec::with_capacity(possible_splits.len());
for split in possible_splits.clone() {
let (bb0, count0) = buckets.child(..split);
let (bb1, count1) = buckets.child(split..);
let cost0 = count0 as f32 * bb0.surface_area() / self.bb.surface_area();
let cost1 = count1 as f32 * bb1.surface_area() / self.bb.surface_area();
let cost = cfg.traversal_cost + cost0 + cost1;
costs.push(NotNaN::new(cost).unwrap());
}
let (cost_not_nan, split) = costs.into_iter().zip(possible_splits).min().unwrap();
(cost_not_nan.into_inner(), split)
}
fn partition(&mut self, buckets: &Buckets, split_bucket: usize) -> usize {
// The primitives slice is composed of three sub-slices (in this order):
// 1. Those known to be left of the split plane,
// 2. The still-unclassified ones
// 3. Those known to be right of the split plane
// We start with everything uncategorized and grow the left and right slices in the loop.
// The slices are represented by integers (left, remaining) s.t. [0..left] is the left
// slice, [left..left+remaining] is the uncategorized slice, and [left+remaining..]
// is the right slice.
// FIXME this is a pretty naive partitioning algorithm, there are better ones
let mut left = 0;
let mut remaining = self.prims.len();
let prim_bbs = &self.common.prim_bbs;
let is_left = |p: &PrimRef| buckets.index(prim_bbs[p.index()].centroid()) < split_bucket;
while remaining > 0 {
let uncategorized = &mut self.prims[left..left + remaining];
// Split off the first element of uncategorized, to be able to swap it if necessary
let (uncat_start, uncat_rest) = uncategorized.split_at_mut(1);
let prim = &mut uncat_start[0];
remaining -= 1;
if is_left(prim) {
left += 1;
} else if let Some(last_uncat) = uncat_rest.last_mut() {
mem::swap(prim, last_uncat);
}
}
left
}
}
/// The interface between `beevage` and geometric primitives.
pub trait Primitive: Send + Sync {
/// Return the bounding box of the primitive.
fn bounding_box(&self) -> Aabb;
}
/// Construct a BVH using the surface area heuristic approximated via binning. See:
///
/// > Wald, Ingo. "On fast construction of SAH-based bounding volume hierarchies."
/// > 2007 IEEE Symposium on Interactive Ray Tracing. IEEE, 2007.
///
/// # Returns
///
/// The root node of the BVH, and the number of nodes in the BVH.
pub fn binned_sah<P: Primitive>(config: Config, prims: &[P], root_bb: Aabb) -> Bvh {
let prim_bbs: Vec<_> = prims.par_iter().map(Primitive::bounding_box).collect();
assert!(prim_bbs.len() == prim_bbs.capacity());
let common = BuilderCommon {
config: config,
prim_bbs: prim_bbs.into_boxed_slice(),
node_count: AtomicUsize::new(0),
_root_bb: root_bb,
};
let mut prim_refs: Vec<_> = (0..prims.len()).map(PrimRef::new).collect();
let root;
{
let builder = SubtreeBuilder::new(&common, &mut prim_refs, root_bb, 0, 0);
root = builder.build();
}
Bvh {
root: root,
primitives: prim_refs,
node_count: common.node_count.load(Ordering::SeqCst),
}
}
| 34.925414 | 98 | 0.60223 |
dded1fb96b65e5eb53d7d9fbdd5f1a5baa4de654 | 2,584 | h | C | L1Trigger/L1TMuonBayes/interface/MuCorrelator/MuCorrelatorInputMaker.h | thesps/cmssw | ad5315934948ce96699b29cc1d5b03a59f99634f | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TMuonBayes/interface/MuCorrelator/MuCorrelatorInputMaker.h | thesps/cmssw | ad5315934948ce96699b29cc1d5b03a59f99634f | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TMuonBayes/interface/MuCorrelator/MuCorrelatorInputMaker.h | thesps/cmssw | ad5315934948ce96699b29cc1d5b03a59f99634f | [
"Apache-2.0"
] | null | null | null | /*
* MuonCorrelatorInputMaker.h
*
* Created on: Jan 30, 2019
* Author: Karol Bunkowski kbunkow@cern.ch
*/
#ifndef MUCORRELATOR_MUONCORRELATORINPUTMAKER_H_
#define MUCORRELATOR_MUONCORRELATORINPUTMAKER_H_
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCandFwd.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "L1Trigger/L1TMuonBayes/interface/MuonStubMakerBase.h"
#include "L1Trigger/L1TMuonBayes/interface/MuonStubsInput.h"
#include "L1Trigger/L1TMuonBayes/interface/AngleConverterBase.h"
#include "L1Trigger/L1TMuonBayes/interface/MuCorrelator/MuCorrelatorConfig.h"
namespace edm {
class EventSetup;
}
class MuCorrelatorInputMaker : public MuonStubMakerBase {
public:
MuCorrelatorInputMaker(const edm::ParameterSet& edmCfg, const edm::EventSetup& es, MuCorrelatorConfigPtr config, MuStubsInputTokens& muStubsInputTokens);
virtual ~MuCorrelatorInputMaker();
private:
virtual bool acceptDigi(uint32_t rawId, unsigned int iProcessor, l1t::tftype procType) {
return true;
}
//the phi and eta digis are merged (even thought it is artificial)
virtual void addDTphiDigi(MuonStubPtrs2D& muonStubsInLayers, const L1MuDTChambPhDigi& digi,
const L1MuDTChambThContainer *dtThDigis,
unsigned int iProcessor,
l1t::tftype procTyp);
virtual void addDTetaStubs(MuonStubPtrs2D& muonStubsInLayers, const L1MuDTChambThDigi& thetaDigi,
unsigned int iProcessor, l1t::tftype procTyp);
virtual void addCSCstubs(MuonStubPtrs2D& muonStubsInLayers, unsigned int rawid, const CSCCorrelatedLCTDigi& digi,
unsigned int iProcessor, l1t::tftype procTyp);
virtual void addRPCstub(MuonStubPtrs2D& muonStubsInLayers, const RPCDetId& roll, const RpcCluster& cluster,
unsigned int iProcessor, l1t::tftype procTyp);
virtual void addStub(MuonStubPtrs2D& muonStubsInLayers, unsigned int iLayer, MuonStub& stub);
//logic layer numbers
uint32_t getLayerNumber(const DTChamberId& detid, bool eta = false) const;
uint32_t getLayerNumber(const CSCDetId& detid, bool eta = false) const;
uint32_t getLayerNumber(const RPCDetId& detid) const;
MuCorrelatorConfigPtr config;
AngleConverterBase angleConverter;
};
#endif /* INTERFACE_MUCORRELATOR_MUONCORRELATORINPUTMAKER_H_ */
| 35.39726 | 155 | 0.80031 |
d5d1315085dd6930f44c962c37663eb8e4ece8ef | 353 | h | C | utility.h | SuperBatata/Nano-Doctor | c3aa0437b2f02ae89cc46706e2e54870b9cd1a04 | [
"MIT"
] | null | null | null | utility.h | SuperBatata/Nano-Doctor | c3aa0437b2f02ae89cc46706e2e54870b9cd1a04 | [
"MIT"
] | null | null | null | utility.h | SuperBatata/Nano-Doctor | c3aa0437b2f02ae89cc46706e2e54870b9cd1a04 | [
"MIT"
] | null | null | null | #ifndef UTILITY_H_INCLUDED
#define UTILITY_H_INCLUDED
#include "fonction.h"
int collisionbb( SDL_Rect posj , SDL_Rect posobj,SDL_Rect camera );
int collisionpit(int debut[],int fin[],int * gravity,int n,SDL_Rect posj,SDL_Rect camera );
int collisionplatform(int debut[],int fin[],int *gravity,int n,SDL_Rect posj,SDL_Rect camera ,int haut[]);
#endif
| 44.125 | 106 | 0.773371 |
85811972ebe24cb9bb3008f6f05d575cfc29066f | 27 | js | JavaScript | src/middleware/socket.js | top319VIP/DMC-WECHAT | de23b3aa1690df9e27943d0575aafb4099156041 | [
"MIT"
] | null | null | null | src/middleware/socket.js | top319VIP/DMC-WECHAT | de23b3aa1690df9e27943d0575aafb4099156041 | [
"MIT"
] | null | null | null | src/middleware/socket.js | top319VIP/DMC-WECHAT | de23b3aa1690df9e27943d0575aafb4099156041 | [
"MIT"
] | null | null | null |
export default socket; | 6.75 | 24 | 0.703704 |
f06fc951f19eb4e8125b6b359564797ed74974db | 2,101 | js | JavaScript | routes/pagosRouter.js | Kiddmac/recaudos | de35c5ff029084498151784c5ce1b44334ea4633 | [
"MIT"
] | null | null | null | routes/pagosRouter.js | Kiddmac/recaudos | de35c5ff029084498151784c5ce1b44334ea4633 | [
"MIT"
] | null | null | null | routes/pagosRouter.js | Kiddmac/recaudos | de35c5ff029084498151784c5ce1b44334ea4633 | [
"MIT"
] | null | null | null | const express = require ('express');
const PagosService = require('../services/pagosService');
const validatorHandler = require('../middlewares/validatorHandler');
const {queryPagoSchema, createPagoSchema, updatePagoSchema, getPagoSchema, deletePagoSchema} = require('../schemas/pagosSchema')
const passport = require('passport')
const service = new PagosService;
const router = express.Router();
router.get('/',
passport.authenticate('jwt', {session: false}),
validatorHandler(queryPagoSchema, 'query'),
async (req,res,next)=> {
try {
const pagos = await service.find(req.query);
res.json(pagos)
} catch (err) {
next(err)
}
})
router.get('/:id',
passport.authenticate('jwt', {session: false}),
validatorHandler(getPagoSchema, 'id'),
async (req,res,next)=> {
try {
const { id } = req.params
const pago = await service.findOne(id)
res.json(pago)
} catch (err) {
next(err)
}
})
router.post('/',
passport.authenticate('jwt', {session: false}),
validatorHandler(createPagoSchema, 'body'),
async (req,res,next)=> {
try {
const body = req.body
const pago = await service.create(body)
res.json(pago)
} catch (err) {
next(err)
}
})
router.patch('/:id',
passport.authenticate('jwt', {session: false}),
validatorHandler(updatePagoSchema, 'id'),
async (req,res,next)=> {
try {
const { id } = req.params
const changes = req.body
const pago = await service.update(id, changes)
res.json(pago)
} catch (err) {
next(err)
}
})
router.delete('/:id',
passport.authenticate('jwt', {session: false}),
validatorHandler(deletePagoSchema,'id'),
async (req,res,next)=> {
try {
const { id } = req.params
const pago = await service.delete(id)
res.json(pago)
} catch (err) {
next(err)
}
})
module.exports = router; | 26.2625 | 128 | 0.569253 |
4c346f7c8cd25f690d713a2e14c57ce0dde8a40a | 1,285 | php | PHP | src/Listeners/AddUserLoginProviderAttribute.php | Littlegolden/flarum-ext-auth-wechat | 017f4fd79c9e9afb2ca582dc309c2290a6ed8bc9 | [
"MITNFA"
] | null | null | null | src/Listeners/AddUserLoginProviderAttribute.php | Littlegolden/flarum-ext-auth-wechat | 017f4fd79c9e9afb2ca582dc309c2290a6ed8bc9 | [
"MITNFA"
] | null | null | null | src/Listeners/AddUserLoginProviderAttribute.php | Littlegolden/flarum-ext-auth-wechat | 017f4fd79c9e9afb2ca582dc309c2290a6ed8bc9 | [
"MITNFA"
] | null | null | null | <?php
/*
* This file is part of nomiscz/flarum-ext-auth-wechat.
*
* Copyright (c) 2020 NomisCZ.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace NomisCZ\WeChatAuth\Listeners;
use Flarum\Api\Event\Serializing;
use Flarum\Api\Serializer\UserSerializer;
use Illuminate\Contracts\Events\Dispatcher;
class AddUserLoginProviderAttribute
{
/**
* @param Dispatcher $events
*/
public function subscribe(Dispatcher $events)
{
$events->listen(Serializing::class, [$this, 'serializing']);
}
/**
* @param Serializing $event
*/
public function serializing(Serializing $event)
{
if ($event->isSerializer(UserSerializer::class)) {
$userLoginProviders = $event->model->loginProviders();
$userLoginProvidersCount = $userLoginProviders->count();
$userProvider = $userLoginProviders->where('provider', 'wechat')->first();
$event->attributes['WeChatAuth'] = [
'isLinked' => $userProvider !== null,
'identifier' => null, // Hidden, don't expose this information
'providersCount' => $userLoginProvidersCount,
];
}
}
} | 28.555556 | 86 | 0.634241 |
67a68dd0f50b403d34d40f957cd5952ad98805bc | 166 | swift | Swift | src/xcode/ENA/ENA/Source/HTTPClient/Service/Models/Receive/SubmissionTANModel.swift | tlaufkoetter/cwa-app-ios | 73593585062e21d4da141f9890415b5396ddc473 | [
"Apache-2.0"
] | null | null | null | src/xcode/ENA/ENA/Source/HTTPClient/Service/Models/Receive/SubmissionTANModel.swift | tlaufkoetter/cwa-app-ios | 73593585062e21d4da141f9890415b5396ddc473 | [
"Apache-2.0"
] | 8 | 2021-07-22T21:59:55.000Z | 2022-02-27T10:30:41.000Z | src/xcode/ENA/ENA/Source/HTTPClient/Service/Models/Receive/SubmissionTANModel.swift | tlaufkoetter/cwa-app-ios | 73593585062e21d4da141f9890415b5396ddc473 | [
"Apache-2.0"
] | null | null | null | //
// 🦠 Corona-Warn-App
//
struct SubmissionTANModel: Codable {
let submissionTAN: String
enum CodingKeys: String, CodingKey {
case submissionTAN = "tan"
}
}
| 13.833333 | 37 | 0.692771 |
6e241d2e8cc8cca3ba6f9e38d7946ada569a3b49 | 408 | html | HTML | _includes/blog.html | samsir/com | a40fbc40c3c204f437744be28f8caae8ce892b3a | [
"MIT"
] | null | null | null | _includes/blog.html | samsir/com | a40fbc40c3c204f437744be28f8caae8ce892b3a | [
"MIT"
] | null | null | null | _includes/blog.html | samsir/com | a40fbc40c3c204f437744be28f8caae8ce892b3a | [
"MIT"
] | null | null | null | <div id="medium-widget"></div>
<script src="{{ site.path }}/assets/js/medium-widget.js"></script>
<script>MediumWidget.Init({
renderTo: '#medium-widget',
params: {
"resource": "https://medium.com/@samsir",
"postsPerLine": 1,
"limit": 4,
"picture": "small",
"fields": ["description", "author", "claps", "publishAt"],
"ratio": "square"
}
})</script>
| 29.142857 | 66 | 0.553922 |
4db63442d66d4ae76a0624365309bb81abbd1bc0 | 4,274 | html | HTML | index.html | MKAbuMattar/chocolate-pizza | cafb4ed2e860a6da60be3a4cdb728e6a08c4cc45 | [
"MIT"
] | null | null | null | index.html | MKAbuMattar/chocolate-pizza | cafb4ed2e860a6da60be3a4cdb728e6a08c4cc45 | [
"MIT"
] | null | null | null | index.html | MKAbuMattar/chocolate-pizza | cafb4ed2e860a6da60be3a4cdb728e6a08c4cc45 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/style.css">
<title>Chocolate Pizza</title>
</head>
<body>
<nav class="navbar">
<a href="#" class="logo">
<img src="./icon/logo.svg" class="logo-img" alt="">
<h2>Delicious <span class="logo-subtext">the best food blog on the web.</span></h2>
</a>
<ul class="icons">
<li>
<a href="#">
<img src="./icon/facebook.svg" alt="">
</a>
</li>
<li>
<a href="#">
<img src="./icon/twitter.svg" alt="">
</a>
</li>
<li>
<a href="#">
<img src="./icon/instagram.svg" alt="">
</a>
</li>
<li>
<a href="#">
<img src="./icon/pinterest.svg" alt="">
</a>
</li>
<li>
<a href="#">
<img src="./icon/rss.svg" alt="">
</a>
</li>
<li>
<a href="#">
<img src="./icon/mail.svg" alt="">
</a>
</li>
</ul>
</nav>
<div class="float-fix"></div>
<main>
<section class="insulator"></section>
<section class="article-title">
<h2>chocolate pizza <span>posted on 15 dec 2013 / desserts</span></h2>
<button class="btn print">
<img src="./icon/printer.svg" class="print-img" alt="">
print
</button>
<img class="hero" src="./img/hero.png" alt="">
</section>
<article>
<p>For the fig-swirl: Melt butter over medium heat in a saucepan. Add brown sugar and stir to dissolve. Halve all
of the figs and toss in the saucepan with water and lemon juice. Cook over medium heat, stirring frequently,
until you have a chunky-jammy mixture. Add salt with one or two stirs, set aside and let cool completely.</p>
<p>Ice cream: In a small pot over medium heat, combine milk, and granulated sugar until sugar is completely
dissolved and the milk is just barely lukewarm. Whisk in the egg yolks. Set mixture in the fridge and wait until
the fig mixture is cooled.</p>
<p>Using an ice cream machine, pour liquids into the frozen basin and process according to manufacturer
instructions, i.e., let spin and thicken for 20 minutes before adding mascarpone, fig jam mixture, and the nuts.
Continue to process for +/- 10 minutes. Pour semi-frozen mixture into a pyrex dish or glass tupperware. Freeze
for
at least two hours before serving.</p>
</article>
<section class="notebook">
<div class="pattern">
<div class="lest">
<ul class="lestleft">
<li>11/2 cups milk</li>
<li>1/2 cup mascarpone</li>
<li>1/2 tsp pink salt</li>
<li>1 lb Black Mission Figs</li>
<li>1/2 cup brown sugar</li>
<li>2-4 tbsp water</li>
</ul>
<ul class="lestright">
<li>11/2 cups heavy cream</li>
<li class="checked"><span class="del"> 1/3 granulated sugar</span></li>
<li class="checked"><span class="del">2 egg yolks</span></li>
<li>1 lemon, juiced</li>
<li>2 tbsp butter</li>
<li>1 cup honey roasted pecans, roughly chopped</li>
</ul>
</div>
</div>
</section>
<div class="float-fix"></div>
<section class="insulator"></section>
<section class="author">
<div class="author-section">
<img class="author-img" src="./img/img.jpg" alt="">
<div class="author-info">
<p class="author-name">Vanessa Stevenson</p>
<p class="author-des">Food enthusiast, photography fan. Add a pinch of raw foodism and that'spretty much who I
am.</p>
</div>
</div>
<button class="btn share-btn">SHARE RECIPE</button>
</section>
<div class="float-fix"></div>
</main>
<footer>
<div class="lines-out"><img class="footer-logo" src="./icon/logo.svg" alt=""></div>
<p>Delicious © 2013. All Rights Reserved.</p>
<p>Proudly published with Ghost.</p>
</footer>
</body>
</html> | 35.616667 | 120 | 0.562003 |
42ccdb15dac469ef51e1b5d1d8bf761c49a83bf7 | 10,202 | kt | Kotlin | flank-scripts/src/test/kotlin/flank/scripts/github/GithubApiTest.kt | pawelpasterz/flank | 899340f8bfea81decbe9c7ee310d9becedef52d3 | [
"Apache-2.0"
] | null | null | null | flank-scripts/src/test/kotlin/flank/scripts/github/GithubApiTest.kt | pawelpasterz/flank | 899340f8bfea81decbe9c7ee310d9becedef52d3 | [
"Apache-2.0"
] | 119 | 2020-10-04T14:42:50.000Z | 2021-03-01T13:33:56.000Z | flank-scripts/src/test/kotlin/flank/scripts/github/GithubApiTest.kt | pawelpasterz/flank | 899340f8bfea81decbe9c7ee310d9becedef52d3 | [
"Apache-2.0"
] | null | null | null | package flank.scripts.github
import com.github.kittinunf.result.Result
import com.google.common.truth.Truth.assertThat
import flank.scripts.FuelTestRunner
import flank.scripts.ci.releasenotes.GitHubRelease
import flank.scripts.exceptions.GitHubException
import flank.scripts.github.objects.GitHubCommit
import flank.scripts.github.objects.GitHubCreateIssueCommentRequest
import flank.scripts.github.objects.GitHubCreateIssueCommentResponse
import flank.scripts.github.objects.GitHubCreateIssueRequest
import flank.scripts.github.objects.GitHubCreateIssueResponse
import flank.scripts.github.objects.GitHubUpdateIssueRequest
import flank.scripts.github.objects.GitHubWorkflowRunsSummary
import flank.scripts.github.objects.GithubPullRequest
import flank.scripts.github.objects.IssueState
import kotlinx.coroutines.runBlocking
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(FuelTestRunner::class)
class GithubApiTest {
@Test
fun `Should return success for correct delete tag request call`() {
// when
val actual = deleteOldTag("success", "user", "password")
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
}
@Test
fun `Should return failure for incorrect delete tag request call`() {
// when
val actual = deleteOldTag("failure", "user", "password")
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
@Test
fun `Should return success for correct get latest tag request call`() {
runBlocking {
// when
val actual = getLatestReleaseTag("success")
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(GitHubRelease::class.java)
}
}
@Test
fun `Should return failure for incorrect get latest tag request call`() {
runBlocking {
// when
val actual = getLatestReleaseTag("failure")
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `Should return success for correct pr details by commit request call`() {
runBlocking {
// when
val actual = getPrDetailsByCommit("success", "success")
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response?.first()).isInstanceOf(GithubPullRequest::class.java)
}
}
@Test
fun `Should return failure for incorrect pr details by commit request call`() {
runBlocking {
// when
val actual = getPrDetailsByCommit("sha", "failure")
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `Should return failure for incorrect get pull request result`() {
runBlocking {
// when
val actual = getGitHubPullRequest("failure", 0)
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `Should return success for correct get pull request result`() {
runBlocking {
// when
val actual = getGitHubPullRequest("success", 1)
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(GithubPullRequest::class.java)
}
}
@Test
fun `Should return failure for incorrect get issue result`() {
runBlocking {
// when
val actual = getGitHubIssue("failure", 0)
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `Should return success for correct get issue result`() {
runBlocking {
// when
val actual = getGitHubIssue("success", 1)
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(GithubPullRequest::class.java)
}
}
@Test
fun `should return issue list`() {
runBlocking {
// when
val actual = getGitHubIssueList("success", emptyList())
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response?.first()).isInstanceOf(GithubPullRequest::class.java)
}
}
@Test
fun `should return failure for incorrect issue list result`() {
runBlocking {
// when
val actual = getGitHubIssueList("failure")
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `should return commit list`() {
runBlocking {
// when
val actual = getGitHubCommitList("success")
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response?.first()).isInstanceOf(GitHubCommit::class.java)
}
}
@Test
fun `should return failure for incorrect commit list result`() {
runBlocking {
// when
val actual = getGitHubCommitList("failure")
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `should return workflow summary for by workflow name`() {
runBlocking {
// when
val actual = getGitHubWorkflowRunsSummary("success", "test-workflow.yml")
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(GitHubWorkflowRunsSummary::class.java)
}
}
@Test
fun `should return failure for incorrect workflow summary result`() {
runBlocking {
// when
val actual = getGitHubWorkflowRunsSummary("failure", "test-workflow.yml")
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `should create new issue comment and return comment response`() {
runBlocking {
// when
val payload = GitHubCreateIssueCommentRequest("Any body!")
val actual = postNewIssueComment("success", 123, payload)
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(GitHubCreateIssueCommentResponse::class.java)
}
}
@Test
fun `should return failure when problem with comment creation occurred`() {
runBlocking {
// when
val payload = GitHubCreateIssueCommentRequest("Any body!")
val actual = postNewIssueComment("failure", 123, payload)
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `should create new issue and return issue response`() {
runBlocking {
// when
val payload = GitHubCreateIssueRequest(body = "Any body!", title = "Any title")
val actual = postNewIssue("success", payload)
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(GitHubCreateIssueResponse::class.java)
}
}
@Test
fun `should return failure when problem with issue creation occurred`() {
runBlocking {
// when
val payload = GitHubCreateIssueRequest(body = "Any body!", title = "Any title")
val actual = postNewIssue("failure", payload)
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
@Test
fun `should update an issue`() {
// when
val payload = GitHubUpdateIssueRequest(state = IssueState.CLOSED)
val actual = patchIssue("success", 123, payload)
// then
assertThat(actual).isInstanceOf(Result.Success::class.java)
val (response, _) = actual
assertThat(response).isInstanceOf(ByteArray::class.java)
}
@Test
fun `should return failure when problem with updating issue occurred`() {
runBlocking {
// when
val payload = GitHubUpdateIssueRequest(state = IssueState.CLOSED)
val actual = patchIssue("failure", 123, payload)
// then
assertThat(actual).isInstanceOf(Result.Failure::class.java)
val (_, exception) = actual
assertThat(exception).isInstanceOf(GitHubException::class.java)
}
}
}
| 33.123377 | 91 | 0.613017 |
75eaeb7328954058f37d1e30be2f0712892be5e4 | 1,618 | php | PHP | src/responses/friend/Friend.php | AbedMass/hypixel-php | dcf11f7c3784bd560ce1dcb41864d5867213855f | [
"MIT"
] | 115 | 2015-01-11T13:55:58.000Z | 2022-02-18T19:53:27.000Z | src/responses/friend/Friend.php | AbedMass/hypixel-php | dcf11f7c3784bd560ce1dcb41864d5867213855f | [
"MIT"
] | 37 | 2015-02-10T18:39:48.000Z | 2022-02-12T16:51:42.000Z | src/responses/friend/Friend.php | AbedMass/hypixel-php | dcf11f7c3784bd560ce1dcb41864d5867213855f | [
"MIT"
] | 54 | 2015-02-10T17:05:56.000Z | 2021-12-06T21:05:40.000Z | <?php
namespace Plancke\HypixelPHP\responses\friend;
use Plancke\HypixelPHP\classes\APIHolding;
use Plancke\HypixelPHP\exceptions\HypixelPHPException;
use Plancke\HypixelPHP\fetch\FetchParams;
use Plancke\HypixelPHP\fetch\Response;
use Plancke\HypixelPHP\HypixelPHP;
use Plancke\HypixelPHP\responses\player\Player;
/**
* Class Friend
* @package Plancke\HypixelPHP\responses\friend
*/
class Friend extends APIHolding {
protected $friend;
protected $uuid;
public function __construct(HypixelPHP $HypixelPHP, $friend, $uuid) {
parent::__construct($HypixelPHP);
$this->friend = $friend;
$this->uuid = $uuid;
}
/**
* Returns whether or not the Player
* sent the friend request
*
* @return bool
*/
public function wasSender() {
return !$this->wasReceiver();
}
/**
* Returns whether or not the Player
* received the friend request
*
* @return bool
*/
public function wasReceiver() {
return $this->friend['uuidReceiver'] == $this->uuid;
}
/**
* @return null|Response|Player
* @throws HypixelPHPException
*/
public function getOtherPlayer() {
if ($this->wasReceiver()) {
return $this->getHypixelPHP()->getPlayer([FetchParams::PLAYER_BY_UUID => $this->friend['uuidSender']]);
} else {
return $this->getHypixelPHP()->getPlayer([FetchParams::PLAYER_BY_UUID => $this->friend['uuidReceiver']]);
}
}
/**
* @return int
*/
public function getSince() {
return $this->friend['started'];
}
} | 24.892308 | 117 | 0.62979 |
35e7725ba5f6053d1faf86a10776d3e70e2266b9 | 2,390 | swift | Swift | iOS/Intermediate/DataPersistence/code/HelloDataPersistence3/HelloDataPersistence3/ViewController.swift | michaeldesu/academy-curriculum | ac6ff819a03f8eb01055ebbb2bf08a95f011e09b | [
"CC-BY-4.0"
] | 170 | 2020-07-03T04:53:04.000Z | 2021-12-22T10:00:56.000Z | iOS/Intermediate/DataPersistence/code/HelloDataPersistence3/HelloDataPersistence3/ViewController.swift | michaeldesu/academy-curriculum | ac6ff819a03f8eb01055ebbb2bf08a95f011e09b | [
"CC-BY-4.0"
] | null | null | null | iOS/Intermediate/DataPersistence/code/HelloDataPersistence3/HelloDataPersistence3/ViewController.swift | michaeldesu/academy-curriculum | ac6ff819a03f8eb01055ebbb2bf08a95f011e09b | [
"CC-BY-4.0"
] | 48 | 2020-06-22T03:48:33.000Z | 2021-08-19T05:53:24.000Z | //
// ViewController.swift
// HelloDataPersistence3
//
// Created by arjuna sky kok on 16/08/19.
// Copyright © 2019 arjuna sky kok. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
do {
let fm = FileManager.default
let docsurl = try fm.url(for: .documentDirectory,
in: .userDomainMask, appropriateFor: nil, create: false)
let customClass = CustomClass(stringVariable: "String", integerVariable: 45)
let propertyListEncoder = PropertyListEncoder()
propertyListEncoder.outputFormat = .xml
let customClassDataInXML = try propertyListEncoder.encode(customClass)
let customClassFileInXML = docsurl.appendingPathComponent("customClassInXML.txt")
try customClassDataInXML.write(to: customClassFileInXML, options: .atomic)
let customClassDataFromFileInXML = try Data(contentsOf: customClassFileInXML)
dump(customClassDataFromFileInXML)
let stringCustomClassDataFromFileInXML = try String(contentsOf: customClassFileInXML)
dump(stringCustomClassDataFromFileInXML)
propertyListEncoder.outputFormat = .binary
let customClassDataInBinary = try propertyListEncoder.encode(customClass)
let customClassFileInBinary = docsurl.appendingPathComponent("customClassInBinary.txt")
try customClassDataInBinary.write(to: customClassFileInBinary, options: .atomic)
let customClassDataFromFileInBinary = try Data(contentsOf: customClassFileInBinary)
dump(customClassDataFromFileInBinary)
let propertyListDecoder = PropertyListDecoder()
var customClassFromFile = try propertyListDecoder.decode(CustomClass.self, from: customClassDataFromFileInBinary)
dump(customClassFromFile)
customClassFromFile = try propertyListDecoder.decode(CustomClass.self, from: customClassDataFromFileInXML)
dump(customClassFromFile)
} catch {
print("catch \(error)")
}
}
}
| 39.180328 | 125 | 0.64728 |
d2bb6c9bf00eee26db342c95414385a8748614e8 | 108 | php | PHP | platform/applications/admin/config/template.php | alexjones999/starter-public-edition-4 | 6ff272fc3ab3d881f8ce5ac9b8d3bc58384ff39b | [
"MIT"
] | 168 | 2015-01-14T07:27:33.000Z | 2022-02-17T13:23:59.000Z | platform/applications/admin/config/template.php | alexjones999/starter-public-edition-4 | 6ff272fc3ab3d881f8ce5ac9b8d3bc58384ff39b | [
"MIT"
] | 45 | 2015-01-13T09:59:01.000Z | 2021-01-18T16:53:43.000Z | platform/applications/admin/config/template.php | alexjones999/starter-public-edition-4 | 6ff272fc3ab3d881f8ce5ac9b8d3bc58384ff39b | [
"MIT"
] | 107 | 2015-01-13T10:39:35.000Z | 2021-09-06T13:31:31.000Z | <?php defined('BASEPATH') OR exit('No direct script access allowed.');
$config['theme'] = 'admin_default';
| 27 | 70 | 0.694444 |
ec175a88a3582e7a30a9393d03c554ce03c173ad | 2,689 | swift | Swift | Tests/GeometriaTests/Generalized/Triangle+CoordinatesTests.swift | LuizZak/Geometria | 827d09de0527d6c744772b55a150a0c593d7e919 | [
"MIT"
] | 4 | 2021-09-05T19:01:01.000Z | 2021-12-06T15:37:34.000Z | Tests/GeometriaTests/Generalized/Triangle+CoordinatesTests.swift | LuizZak/Geometria | 827d09de0527d6c744772b55a150a0c593d7e919 | [
"MIT"
] | 1 | 2021-09-03T00:07:08.000Z | 2021-09-03T00:07:36.000Z | Tests/GeometriaTests/Generalized/Triangle+CoordinatesTests.swift | LuizZak/Geometria | 827d09de0527d6c744772b55a150a0c593d7e919 | [
"MIT"
] | 1 | 2022-02-20T17:05:51.000Z | 2022-02-20T17:05:51.000Z | import XCTest
import Geometria
class Triangle_CoordinatesTests: XCTestCase {
typealias Triangle = Triangle3D
typealias Coordinates = Triangle.Coordinates
func testProjectToWorld_aPoint() {
let sut = Triangle(
a: .zero,
b: .init(x: 10, y: 10, z: 10),
c: .init(x: 10, y: 0, z: 10)
)
let coordinates = Coordinates(
wa: 1.0,
wb: 0.0,
wc: 0.0
)
let result = sut.projectToWorld(coordinates)
XCTAssertEqual(result.x, 0.0)
XCTAssertEqual(result.y, 0.0)
XCTAssertEqual(result.z, 0.0)
}
func testProjectToWorld_bPoint() {
let sut = Triangle(
a: .zero,
b: .init(x: 10, y: 10, z: 10),
c: .init(x: 10, y: 0, z: 10)
)
let coordinates = Coordinates(
wa: 0.0,
wb: 1.0,
wc: 0.0
)
let result = sut.projectToWorld(coordinates)
XCTAssertEqual(result.x, 10.0)
XCTAssertEqual(result.y, 10.0)
XCTAssertEqual(result.z, 10.0)
}
func testProjectToWorld_cPoint() {
let sut = Triangle(
a: .zero,
b: .init(x: 10, y: 10, z: 10),
c: .init(x: 10, y: 0, z: 10)
)
let coordinates = Coordinates(
wa: 0.0,
wb: 0.0,
wc: 1.0
)
let result = sut.projectToWorld(coordinates)
XCTAssertEqual(result.x, 10.0)
XCTAssertEqual(result.y, 0.0)
XCTAssertEqual(result.z, 10.0)
}
func testProjectToWorld_center() {
let sut = Triangle(
a: .zero,
b: .init(x: 10, y: 10, z: 10),
c: .init(x: 10, y: 0, z: 10)
)
let coordinates = Coordinates(
wa: 1.0 / 3.0,
wb: 1.0 / 3.0,
wc: 1.0 / 3.0
)
let result = sut.projectToWorld(coordinates)
XCTAssertEqual(result.x, 6.666666666666666)
XCTAssertEqual(result.y, 3.333333333333333)
XCTAssertEqual(result.z, 6.666666666666666)
}
func testProjectToWorld_extrapolated() {
let sut = Triangle(
a: .zero,
b: .init(x: 10, y: 10, z: 10),
c: .init(x: 10, y: 0, z: 10)
)
let coordinates = Coordinates(
wa: 0.0,
wb: 2.0,
wc: 0.0
)
let result = sut.projectToWorld(coordinates)
XCTAssertEqual(result.x, 20.0)
XCTAssertEqual(result.y, 20.0)
XCTAssertEqual(result.z, 20.0)
}
}
| 26.106796 | 52 | 0.477873 |
d2bbc05a5332bf7b562abd75bc04f65dbdc6b4dd | 5,602 | php | PHP | resources/views/theUnion/acercaDe.blade.php | DiegoClrX/LaravelFinal | a377cdade819a516b9f731ce15acec56fee9d96d | [
"MIT"
] | null | null | null | resources/views/theUnion/acercaDe.blade.php | DiegoClrX/LaravelFinal | a377cdade819a516b9f731ce15acec56fee9d96d | [
"MIT"
] | null | null | null | resources/views/theUnion/acercaDe.blade.php | DiegoClrX/LaravelFinal | a377cdade819a516b9f731ce15acec56fee9d96d | [
"MIT"
] | null | null | null | <x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Dashboard') }}
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
{{-- Vista Restaurantes --}}
<!-- tailwind.config.js -->
<!-- component -->
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
<div x-data="{ cartOpen: false , isOpen: false }" class="bg-white">
<header>
<div class="container mx-auto px-6 py-3">
<div class="flex items-center justify-between">
<div class="hidden w-full text-gray-600 md:flex md:items-center">
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.2721 10.2721C16.2721 12.4813 14.4813 14.2721 12.2721 14.2721C10.063 14.2721 8.27214 12.4813 8.27214 10.2721C8.27214 8.06298 10.063 6.27212 12.2721 6.27212C14.4813 6.27212 16.2721 8.06298 16.2721 10.2721ZM14.2721 10.2721C14.2721 11.3767 13.3767 12.2721 12.2721 12.2721C11.1676 12.2721 10.2721 11.3767 10.2721 10.2721C10.2721 9.16755 11.1676 8.27212 12.2721 8.27212C13.3767 8.27212 14.2721 9.16755 14.2721 10.2721Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M5.79417 16.5183C2.19424 13.0909 2.05438 7.39409 5.48178 3.79417C8.90918 0.194243 14.6059 0.054383 18.2059 3.48178C21.8058 6.90918 21.9457 12.6059 18.5183 16.2059L12.3124 22.7241L5.79417 16.5183ZM17.0698 14.8268L12.243 19.8965L7.17324 15.0698C4.3733 12.404 4.26452 7.97318 6.93028 5.17324C9.59603 2.3733 14.0268 2.26452 16.8268 4.93028C19.6267 7.59603 19.7355 12.0268 17.0698 14.8268Z" fill="currentColor" />
</svg>
<span class="mx-1 text-sm">ESP</span>
</div>
<div class="w-full text-gray-700 md:text-center text-2xl font-semibold">
The Union
</div>
<div class="flex items-center justify-end w-full">
<a href="{{Route('cart.checkout')}}">
<svg class="h-5 w-5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor">
<path d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
</svg>
</a>
</div>
</div>
{{-- Menu --}}
<div class="relative mt-6 max-w-lg mx-auto">
<span class="absolute inset-y-0 left-0 pl-3 flex items-center">
<svg class="h-5 w-5 text-gray-500" viewBox="0 0 24 24" fill="none">
<path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</span>
<input class="w-full border rounded-md pl-10 pr-4 py-2 focus:border-blue-500 focus:outline-none focus:shadow-outline" type="text" placeholder="Search">
</div>
</div>
</header>
{{-- CONTENIDO --}}
<main class="my-8">
<div class="container mx-auto px-6">
<img src="{{ url('storage/restaurantes/img', [$restaurante->foto]) }}" style = "width: 30%; margin-left: 35%" alt="">
<h3 class="text-gray-700 text-2xl font-medium" style="text-align: center">{{$restaurante->nombre}}</h3>
<div class="grid gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 mt-6">
<p class="text-xl font-bold text-gray-500 hover:text-gray-400" style="width:100%; margin-left: 175%">Telefono: {{$restaurante->telefono}}</p>
<input type="hidden" name="latitud" id="latitud" value="{{$restaurante->latitud}}">
<input type="hidden" name="longitud" id="longitud" value="{{$restaurante->longitud}}">
</div>
<div id="map" style="width: 100%; height: 500px;"></div>
<div class="flex justify-center">
</div>
</div>
</main>
<footer class="bg-gray-200">
<div class="container mx-auto px-6 py-3 flex justify-between items-center">
<p class="text-xl font-bold text-gray-500 hover:text-gray-400">The Union</p>
<p class="py-2 text-gray-500 sm:py-0">All rights reserved</p>
</div>
</footer>
</div>
</div>
</div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBDaeWicvigtP9xPv919E-RNoxfvC-Hqik&callback=iniciarMap"></script>
<script>
iniciarMap();
function iniciarMap(){
var latitud = parseFloat(document.getElementById('latitud').value);
var longitud = parseFloat(document.getElementById('longitud').value);
console.log(latitud);
console.log(longitud);
var coord = {lat:latitud ,lng: longitud};
var map = new google.maps.Map(document.getElementById('map'),{
zoom: 18,
center: coord
});
var marker = new google.maps.Marker({
position: coord,
map: map
});
}
</script>
</x-app-layout>
| 55.465347 | 970 | 0.576758 |
438303e089d8ed25140519a68261b28fce4f7857 | 190 | swift | Swift | ZwaaiLogic/Redux/AppActions.swift | Zwaai-app/zwaai-ios | 6123bb889d6ce0b0f4d73e7c2896d45f7d3676f3 | [
"MIT"
] | null | null | null | ZwaaiLogic/Redux/AppActions.swift | Zwaai-app/zwaai-ios | 6123bb889d6ce0b0f4d73e7c2896d45f7d3676f3 | [
"MIT"
] | 2 | 2020-07-31T06:07:03.000Z | 2020-07-31T06:11:51.000Z | ZwaaiLogic/Redux/AppActions.swift | Zwaai-app/zwaai-ios | 6123bb889d6ce0b0f4d73e7c2896d45f7d3676f3 | [
"MIT"
] | null | null | null | public enum AppAction: Equatable, Prism {
case history(HistoryAction)
case zwaai(ZwaaiAction)
case settings(SettingsAction)
case meta(AppMetaAction)
case resetAppState
}
| 23.75 | 41 | 0.742105 |
d2b5bc3ebb5758b046d7000c5c01a64ac52d864c | 718 | php | PHP | src/MessageBus/StaticAnalysis/Rules/MethodReturnTypeIsVoidRule.php | nepada/message-bus | f09d0b966b8f9785ff0c0a158d29fccf6eeb3ebe | [
"BSD-3-Clause"
] | 3 | 2020-07-21T19:38:22.000Z | 2021-04-18T16:48:16.000Z | src/MessageBus/StaticAnalysis/Rules/MethodReturnTypeIsVoidRule.php | nepada/message-bus | f09d0b966b8f9785ff0c0a158d29fccf6eeb3ebe | [
"BSD-3-Clause"
] | 37 | 2021-02-20T16:49:50.000Z | 2022-03-01T04:04:43.000Z | src/MessageBus/StaticAnalysis/Rules/MethodReturnTypeIsVoidRule.php | nepada/message-bus | f09d0b966b8f9785ff0c0a158d29fccf6eeb3ebe | [
"BSD-3-Clause"
] | null | null | null | <?php
declare(strict_types = 1);
namespace Nepada\MessageBus\StaticAnalysis\Rules;
use Nepada\MessageBus\StaticAnalysis\StaticAnalysisFailedException;
final class MethodReturnTypeIsVoidRule
{
/**
* @param \ReflectionMethod $method
* @throws StaticAnalysisFailedException
*/
public function validate(\ReflectionMethod $method): void
{
$returnType = $method->getReturnType();
if ($returnType === null || $returnType->getName() !== 'void') {
throw StaticAnalysisFailedException::with(
sprintf('Method "%s" return type must be void', $method->getName()),
$method->getDeclaringClass()->getName(),
);
}
}
}
| 25.642857 | 84 | 0.635097 |
d0ec092cb93f1b12d7d59f92654927014caa6c00 | 194 | css | CSS | public/css/quienes-somos.css | PangoNiggas/frameworksPrimeraUnidad | 7241dadfb5c654a064a3550b1fc503fcab8572d7 | [
"MIT"
] | null | null | null | public/css/quienes-somos.css | PangoNiggas/frameworksPrimeraUnidad | 7241dadfb5c654a064a3550b1fc503fcab8572d7 | [
"MIT"
] | null | null | null | public/css/quienes-somos.css | PangoNiggas/frameworksPrimeraUnidad | 7241dadfb5c654a064a3550b1fc503fcab8572d7 | [
"MIT"
] | null | null | null | #png{
margin-right: 60px;
}
#rich{
margin-right: 70px;
}
h3{
margin-left: 20px;
}
p{
margin-top: 40px;
margin-right: 40px;
margin-left: 40px;
text-align: justify;
} | 11.411765 | 24 | 0.57732 |
d2885459d7e48bba6d6146a9eabaed6d6cd27087 | 8,942 | php | PHP | resources/views/certificates/create.blade.php | DenisBuarque/Laravel-consulta-registros-imovel | 84f46a3a292753fa9f3d1cdc574ad264328cb742 | [
"MIT"
] | 1 | 2022-01-20T10:37:19.000Z | 2022-01-20T10:37:19.000Z | resources/views/certificates/create.blade.php | DenisBuarque/Laravel-consulta-registros-imovel | 84f46a3a292753fa9f3d1cdc574ad264328cb742 | [
"MIT"
] | null | null | null | resources/views/certificates/create.blade.php | DenisBuarque/Laravel-consulta-registros-imovel | 84f46a3a292753fa9f3d1cdc574ad264328cb742 | [
"MIT"
] | 1 | 2022-01-13T07:57:24.000Z | 2022-01-13T07:57:24.000Z | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
@if (session('alert'))
<div class="alert alert-danger">
{{ session('alert') }}
</div>
@endif
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="panel panel-default">
<div class="panel-heading">
Formulário solicitação de certidão
<a href="{{ route('certificates.index') }}" class="pull-right">Listar Registros</a>
</div>
<div class="panel-body">
<script>
function habilitaCampos() {
var value = document.getElementById('registry').value;
if (value === '1') {
document.getElementById('box-registry').style.display = "block";
} else if (value === '2') {
document.getElementById('box-registry').style.display = "none";
} else {
document.getElementById('box-registry').style.display = "none";
}
}
function closeInputs(){
document.getElementById('box-registry').style.display = "none";
}
let myGreeting = setTimeout(function() {
closeInputs();
clearAlert();
}, 100);
function clearAlert() {
window.clearTimeout(myGreeting);
}
</script>
<form method="POST" action="{{ route('certificates.store') }}" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<div class="row">
<div class="col-md-3 form-group">
<label for="client_id">* Solicitante:</label>
<select name="client_id" class="form-control" id="client_id">
<option value=""></option>
@foreach($clients as $key => $value)
@if(!empty($value->company))
<option value="{{ $value->id }}">{{ $value->company }}</option>
@else
<option value="{{ $value->id }}">{{ $value->name }}</option>
@endif
@endforeach
</select>
</div>
<div class="col-md-3 form-group">
<label for="registry">* Cartorio:</label>
<select name="registry" class="form-control" id="registry" onchange="habilitaCampos()">
<option value=""></option>
<option value="1">Cartório de registros</option>
<option value="2">Cartório de notas</option>
</select>
</div>
<div class="col-md-3 form-group">
<label for="craft">* Cartório de ofício:</label>
<select name="craft" class="form-control" id="craft">
<option value=""></option>
<option value="1">1º Registro de imóvel</option>
<option value="2">2º Registro de imóvel</option>
<option value="3">3º Registro de imóvel</option>
<option value="4">1º Ofício</option>
<option value="5">2º Ofício</option>
<option value="6">3º Ofício</option>
<option value="7">4º Ofício</option>
<option value="8">5º Ofício</option>
<option value="9">6º Ofício</option>
</select>
</div>
<div class="col-md-3 form-group">
<label for="certificate">* Tipo de certidão:</label>
<select name="certificate" class="form-control" id="certificate">
<option value=""></option>
<option value="1">Certidão de ônus</option>
<option value="2">Certidão de inteiro teor</option>
<option value="3">Certidão vintenária</option>
<option value="4">Certidão cinquentenária</option>
<option value="5">Certidão de escritura</option>
<option value="6">Certidão de procuração</option>
</select>
</div>
<div class="col-md-12 form-group">
<label for="imovel_id">* Endereço do imóvel:</label>
<select name="imovel_id" class="form-control" id="imovel_id">
<option value=""></option>
@foreach($imovels as $key => $value)
<option value="{{ $value->id }}">{{ $value->client->name }} - {{ $value->address }}, {{ $value->number }}, {{ $value->city }}/{{ $value->state }}</option>
@endforeach
</select>
</div>
<div id='box-registry'>
<div class="col-md-3 form-group">
<label for="book">Livro de Registro:</label>
<input type="text" name="book" class="form-control" value="{{ old('book') ? old('book') : '' }}" maxlength="20">
</div>
<div class="col-md-3 form-group">
<label for="sheet">Nº Folha:</label>
<input type="text" name="sheet" class="form-control" value="{{ old('sheet') ? old('sheet') : '' }}" maxlength="20">
</div>
<div class="col-md-3 form-group">
<label for="transcription">Transcrição:</label>
<input type="text" name="transcription" class="form-control" value="{{ old('transcription') ? old('transcription') : '' }}" maxlength="20">
</div>
<div class="col-md-3 form-group">
<label for="date_registry">Data do registro:</label>
<input type="date" name="date_registry" class="form-control" value="{{ old('date_registry') ? old('date_registry') : '' }}" maxlength="10">
</div>
</div>
<div class="col-md-12 form-group">
<label for="imovel_id">Observações sobre o imóvel:</label>
<textarea name="description" class="description"></textarea>
</div>
<div class="col-md-8 form-group">
<br>
<label for="witness_2">Foto de documento do imóvel</label>
<input type="file" name="arquivo[]" multiple="true">
</div>
<div class="col-md-4 form-group">
<br>
<button type="submit" class="btn btn-primary btn-block">Salvar Dados</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
| 55.197531 | 194 | 0.369492 |
bec61e45cdd4208bd785ea81939c41931dde454e | 1,662 | swift | Swift | TableviewCells/InterviewQuestionCell.swift | jtsmrd/Intrview | fe9c7fa0240990683048fbbb020b14df1140bd7b | [
"MIT"
] | 1 | 2020-07-13T13:01:51.000Z | 2020-07-13T13:01:51.000Z | TableviewCells/InterviewQuestionCell.swift | jtsmrd/Intrview | fe9c7fa0240990683048fbbb020b14df1140bd7b | [
"MIT"
] | null | null | null | TableviewCells/InterviewQuestionCell.swift | jtsmrd/Intrview | fe9c7fa0240990683048fbbb020b14df1140bd7b | [
"MIT"
] | null | null | null | //
// InterviewQuestionCell.swift
// SnapInterview
//
// Created by JT Smrdel on 1/18/17.
// Copyright © 2017 SmrdelJT. All rights reserved.
//
import UIKit
protocol InterviewQuestionCellDelegate {
func editInterviewQuestion(interviewQuestion: InterviewQuestion)
}
class InterviewQuestionCell: UITableViewCell {
@IBOutlet weak var questionNumberLabel: UILabel!
@IBOutlet weak var interviewQuestionLabel: UILabel!
@IBOutlet weak var timeLimitLabel: UILabel!
@IBOutlet weak var editButton: UIButton!
var interviewQuestion: InterviewQuestion!
var delegate: InterviewQuestionCellDelegate!
override func awakeFromNib() {
super.awakeFromNib()
backgroundColor = UIColor.clear
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
func configureCell(interviewQuestion: InterviewQuestion, viewOnly: Bool) {
self.editButton.isHidden = viewOnly
self.interviewQuestion = interviewQuestion
self.interviewQuestionLabel.text = interviewQuestion.question
self.timeLimitLabel.text = "\(String(describing: interviewQuestion.timeLimitInSeconds!)) secs"
if let questionNumber = interviewQuestion.displayOrder {
let number = questionNumber + 1
self.questionNumberLabel.text = "Question \(number)"
}
}
@IBAction func editButtonAction(_ sender: Any) {
delegate.editInterviewQuestion(interviewQuestion: interviewQuestion)
}
}
| 29.678571 | 102 | 0.690734 |
650e93f40d797c0460bad1ce4c72fe47deb0c2b7 | 3,313 | py | Python | datasets/base_dataset.py | iclr2022submission4/cgca | 3e6ea65c0ebf72a8291dde3ffdb06b50e4d2900a | [
"MIT"
] | 13 | 2022-01-10T05:28:26.000Z | 2022-02-02T10:22:42.000Z | datasets/base_dataset.py | iclr2022submission4/cgca | 3e6ea65c0ebf72a8291dde3ffdb06b50e4d2900a | [
"MIT"
] | null | null | null | datasets/base_dataset.py | iclr2022submission4/cgca | 3e6ea65c0ebf72a8291dde3ffdb06b50e4d2900a | [
"MIT"
] | null | null | null | import torch
import random
from torch.utils.data import Dataset, DataLoader
from abc import ABC
from models.base_model import Model
from torch.utils.tensorboard import SummaryWriter
from typing import List
class BaseDataset(Dataset, ABC):
name = 'base'
def __init__(self, config: dict, mode: str = 'train'):
self.config = config
self.mode = mode
self.device = config['device']
self.data_dim = config['data_dim']
self.summary_name = self.name
'''
Note that dataset's __getitem__() returns (x_coord, x_feat, y_coord, y_feat, name)
But the collated batch returns type of (SparseTensorWrapper, SparseTensorWrapper)
'''
def __getitem__(self, idx) \
-> (torch.tensor, torch.tensor, torch.tensor, torch.tensor, List[str]):
# sparse tensor and tensor should have equal size
raise NotImplemented
def __iter__(self):
while True:
idx = random.randint(0, len(self) - 1)
yield self[idx]
def collate_fn(self, batch: List) -> dict:
# convert list of dict to dict of list
batch = {k: [d[k] for d in batch] for k in batch[0]}
return batch
def evaluate(self, model: Model, writer: SummaryWriter, step):
training = model.training
model.eval()
data_loader = DataLoader(
self,
batch_size=self.config['eval_batch_size'],
num_workers=self.config['num_workers'],
collate_fn=self.collate_fn,
drop_last=False,
)
print('')
eval_losses = []
for eval_step, data in enumerate(data_loader):
mode = self.mode
if len(self.config['eval_datasets']) != 1:
mode += '_' + self.summary_name
eval_loss = model.evaluate(data, step, mode)
eval_losses.append(eval_loss)
print('\r[Evaluating, Step {:7}, Loss {:5}]'.format(
eval_step, '%.3f' % eval_loss), end=''
)
print('')
model.write_dict_summaries(step)
model.train(training)
def test(self, model: Model, writer: SummaryWriter, step):
raise NotImplementedError()
def visualize(self, model: Model, options: List, step):
training = model.training
model.eval()
# fix vis_indices
vis_indices = self.config['vis']['indices']
if isinstance(vis_indices, int):
# sample data points from n data points with equal interval
n = len(self)
vis_indices = torch.linspace(0, n - 1, vis_indices).int().tolist()
# override to the index when in overfitting debug mode
if isinstance(self.config['overfit_one_ex'], int):
vis_indices = torch.tensor([self.config['overfit_one_ex']])
for option in options:
# calls the visualizing function
if hasattr(model, option):
getattr(model, option)(self, vis_indices, step)
else:
raise ValueError(
'model {} has no method {}'.format(
model.__class__.__name__, option
)
)
model.train(training)
def visualize_test(self, model: Model, writer: SummaryWriter, step):
training = model.training
model.eval()
# fix vis_indices
vis_indices = self.config['vis']['indices']
if isinstance(vis_indices, int):
# sample data points from n data points with equal interval
vis_indices = torch.linspace(0, len(self) - 1, vis_indices).int().tolist()
# override to the index when in overfitting debug mode
if isinstance(self.config['overfit_one_ex'], int):
vis_indices = torch.tensor([self.config['overfit_one_ex']])
model.visualize_test(self, vis_indices, step)
model.train(training)
| 29.061404 | 83 | 0.705101 |
d9a55e34aa414e77ad4e7f3c73553a6236e1fa4d | 1,082 | swift | Swift | My University/CoreDataEntityProtocol.swift | yura-voevodin/my-university-ios | 6faecb08b95c27fc1884d3ba9b1e01cea9c631a6 | [
"Apache-2.0"
] | 2 | 2020-09-16T10:21:48.000Z | 2020-09-30T17:10:37.000Z | My University/CoreDataEntityProtocol.swift | yura-voevodin/my-university-ios | 6faecb08b95c27fc1884d3ba9b1e01cea9c631a6 | [
"Apache-2.0"
] | null | null | null | My University/CoreDataEntityProtocol.swift | yura-voevodin/my-university-ios | 6faecb08b95c27fc1884d3ba9b1e01cea9c631a6 | [
"Apache-2.0"
] | null | null | null | //
// CoreDataEntityProtocol.swift
// My University
//
// Created by Yura Voevodin on 09.05.2020.
// Copyright © 2020 Yura Voevodin. All rights reserved.
//
import CoreData
protocol CoreDataEntityProtocol: NSManagedObject {
// MARK: - Properties
var id: Int64 { get set }
var name: String? { get set }
var isFavorite: Bool { get set }
var slug: String? { get set }
var uuid: UUID? { get set }
var firstSymbol: String? { get set }
var university: UniversityEntity? { get set }
var records: NSSet? { get set }
// MARK: - Methods
func shareURL(for date: Date) -> URL?
}
extension CoreDataEntityProtocol {
func pageParameters(with date: Date) -> WebsitePageParameters? {
guard let slug = slug else {
return nil
}
guard let universityURL = university?.url else {
return nil
}
let dateString = DateFormatter.short.string(from: date)
return WebsitePageParameters(slug: slug, university: universityURL, date: dateString)
}
}
| 25.162791 | 93 | 0.621996 |
92dee50d30288f8840b874208ae135d663ec281d | 339 | swift | Swift | Source/ATOMIZPOD.swift | intersignature/ATOMIZPodss | 968d761cf9978f63146935881bdbd3015f44d709 | [
"MIT"
] | null | null | null | Source/ATOMIZPOD.swift | intersignature/ATOMIZPodss | 968d761cf9978f63146935881bdbd3015f44d709 | [
"MIT"
] | null | null | null | Source/ATOMIZPOD.swift | intersignature/ATOMIZPodss | 968d761cf9978f63146935881bdbd3015f44d709 | [
"MIT"
] | null | null | null | //
// ATOMIZPOD.swift
// TestPod
//
// Created by Drink Sirichai on 21/6/2564 BE.
//
import Foundation
public class ATOMIZPoD {
public static let main = ATOMIZPoD()
open func print_A() {
print("aa")
}
open func print_B() {
print("bb")
}
open func print_C() {
print("cc")
}
}
| 11.689655 | 46 | 0.542773 |
f86fb02b51c32299ced3be84f130ff680633444a | 424 | sql | SQL | Database backup/Proposal Event Scheduler Remover in 15 Days.sql | saimonu123/melowebapp | 97a9838584e951c2a8b8615496aee2b37bd8edf8 | [
"MIT"
] | 2 | 2019-06-04T19:26:19.000Z | 2019-07-16T19:00:51.000Z | Database backup/Proposal Event Scheduler Remover in 15 Days.sql | saimonu123/melowebapp | 97a9838584e951c2a8b8615496aee2b37bd8edf8 | [
"MIT"
] | 1 | 2021-11-06T11:23:37.000Z | 2021-11-06T11:23:37.000Z | Database backup/Proposal Event Scheduler Remover in 15 Days.sql | saimonu123/melowebapp | 97a9838584e951c2a8b8615496aee2b37bd8edf8 | [
"MIT"
] | 3 | 2021-07-11T15:37:45.000Z | 2022-01-05T01:15:15.000Z | -- SELECT createdAt FROM proposal WHERE createdAt - CURDATE() < 15;
-- SELECT CURDATE(); -- Yıl Ay Gün getirir
-- SELECT curtime(); -- Saat Dakika Saniye Getir
CREATE EVENT proposal_Remover_id15Days
ON SCHEDULE EVERY 1 DAY
ON COMPLETION PRESERVE -- Çalıştıktan sonra drop olmasın
DO
UPDATE proposal SET isActive = 0 WHERE create_time >= now() + INTERVAL 15 DAY;
-- DROP EVENT proposal_Remover_id15Days;
SHOW EVENTS | 35.333333 | 81 | 0.75 |
611888b6fa772dc7738c460d6d467965f0f8869d | 52 | css | CSS | src/app/dashboard/explore/weight/hourly-weight/hourly-weight.component.css | Lema-Bkr/Apiwatch-Frontend | b936b72d2874d9d1ee088acbe04d6f08fbee7f40 | [
"Apache-2.0"
] | 4 | 2020-05-12T06:29:26.000Z | 2021-04-19T10:27:55.000Z | src/app/dashboard/explore/weight/hourly-weight/hourly-weight.component.css | Lema-Bkr/Apiwatch-Frontend | b936b72d2874d9d1ee088acbe04d6f08fbee7f40 | [
"Apache-2.0"
] | 212 | 2019-11-16T14:57:50.000Z | 2022-03-02T10:55:03.000Z | src/app/dashboard/explore/weight/hourly-weight/hourly-weight.component.css | Lema-Bkr/Apiwatch-Frontend | b936b72d2874d9d1ee088acbe04d6f08fbee7f40 | [
"Apache-2.0"
] | 7 | 2020-06-23T18:57:34.000Z | 2020-12-21T19:46:56.000Z | #graph-hour-weight{
width: 99%;
height: 55vh;
}
| 10.4 | 19 | 0.615385 |
32b39692250de4f0e74990f1e5778ada2b4701b6 | 1,362 | lua | Lua | bindings/lua/Polycode/ResourceManager.lua | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | bindings/lua/Polycode/ResourceManager.lua | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | bindings/lua/Polycode/ResourceManager.lua | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | require "Polycode/EventDispatcher"
class "ResourceManager" (EventDispatcher)
function ResourceManager:ResourceManager(...)
local arg = {...}
if type(arg[1]) == "table" and count(arg) == 1 then
if ""..arg[1].__classname == "EventDispatcher" then
self.__ptr = arg[1].__ptr
return
end
end
for k,v in pairs(arg) do
if type(v) == "table" then
if v.__ptr ~= nil then
arg[k] = v.__ptr
end
end
end
if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
self.__ptr = Polycode.ResourceManager(unpack(arg))
end
end
function ResourceManager:getNumResourceLoaders()
local retVal = Polycode.ResourceManager_getNumResourceLoaders(self.__ptr)
return retVal
end
function ResourceManager:getResources(resourceType)
local retVal = Polycode.ResourceManager_getResources(self.__ptr, resourceType)
if retVal == nil then return nil end
for i=1,count(retVal) do
local __c = _G["shared_ptr<Resource"]("__skip_ptr__")
__c.__ptr = retVal[i]
retVal[i] = __c
end
return retVal
end
function ResourceManager:removeResource(resource)
local retVal = Polycode.ResourceManager_removeResource(self.__ptr, resource.__ptr)
end
function ResourceManager:Update(elapsed)
local retVal = Polycode.ResourceManager_Update(self.__ptr, elapsed)
end
function ResourceManager:__delete()
if self then Polycode.delete_ResourceManager(self.__ptr) end
end
| 25.698113 | 83 | 0.754038 |
92c9a5a383029356947e7722d78702642186d868 | 1,910 | c | C | resource/oc_logger/examples/test_logging.c | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 301 | 2015-01-20T16:11:32.000Z | 2021-11-25T04:29:36.000Z | resource/oc_logger/examples/test_logging.c | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 13 | 2015-06-04T09:55:15.000Z | 2020-09-23T00:38:07.000Z | resource/oc_logger/examples/test_logging.c | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 233 | 2015-01-26T03:41:59.000Z | 2022-03-18T23:54:04.000Z | //******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// 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.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#include "oc_logger.h"
#include "targets/oc_console_logger.h"
#include "targets/oc_ostream_logger.h"
#include <stdio.h>
/* Example of basic usage of the C library: */
void basic_demo(void)
{
oc_log_ctx_t *log;
log = oc_make_console_logger();
if(0 == log)
{
fprintf(stderr, "Unable to initialize logging subsystem.\n");
return;
}
oc_log_write(log, "Hello, World!");
oc_log_set_module(log, "FabulousModule");
oc_log_set_level(log, 50);
oc_log_write(log, "Hello again, World!");
oc_log_destroy(log);
}
/* Example of calling a C++ log implementation from C: */
void cpp_demo(void)
{
oc_log_ctx_t *log;
log = oc_make_ostream_logger();
if(0 == log)
{
fprintf(stderr, "Unable to initialize logging subsystem.\n");
return;
}
oc_log_write(log, "Hello from C++, World!");
oc_log_set_module(log, "BestModuleEver");
oc_log_set_level(log, 50);
oc_log_write(log, "Hello again from C++, World!");
oc_log_write(log, "Hello once more from C++, World!");
oc_log_destroy(log);
}
int main(void)
{
basic_demo();
cpp_demo();
return 0;
}
| 23.012048 | 75 | 0.635079 |
bf6e7775c36987bc374937feaa59888d083b21c9 | 2,429 | rs | Rust | src/lib.rs | Wackyator/CoffeeHouse-Rust-API-Wrapper | ab54ab2dc77a39861a8af924d0c0a0f6b960fe34 | [
"MIT"
] | 2 | 2021-02-21T16:34:56.000Z | 2021-02-21T16:40:17.000Z | src/lib.rs | Wackyator/CoffeeHouse-Rust-API-Wrapper | ab54ab2dc77a39861a8af924d0c0a0f6b960fe34 | [
"MIT"
] | null | null | null | src/lib.rs | Wackyator/CoffeeHouse-Rust-API-Wrapper | ab54ab2dc77a39861a8af924d0c0a0f6b960fe34 | [
"MIT"
] | null | null | null | extern crate reqwest;
mod structs;
mod error;
use std::result;
pub type Result<T> = result::Result<T, crate::error::Error>;
pub mod lydia {
use crate::structs::{
SuccessResponse,
ErrorResponse,
ThoughtResponse,
};
use crate::error::Error;
pub struct LydiaAI {
api_endpoint: String,
access_key: String,
session_id: String,
client: reqwest::Client,
}
impl LydiaAI {
pub fn new(access_key: &str) -> Self {
Self {
api_endpoint: String::from("https://api.intellivoid.net/coffeehouse/v1/lydia"),
access_key: String::from(access_key),
client: reqwest::Client::new(),
session_id: String::new(),
}
}
}
impl LydiaAI {
pub fn construct_url(&self, route: &str) -> String {
format!("{}/{}", self.api_endpoint, route)
}
pub async fn create_session(&mut self) -> crate::Result<SuccessResponse> {
let res = self.client.get(&self.construct_url("session/create"))
.query(&[("access_key", &self.access_key)])
.header("user-agent", "Mozilla/5.0")
.send().await?;
match res.status().as_u16() {
200 => {
let session = res.json::<SuccessResponse>().await?;
self.session_id = session.results.session_id.clone();
Ok(session)
},
_ => {
let err = res.json::<ErrorResponse>().await?;
Err(Error::from(err))
},
}
}
pub async fn think_thought(&self, input: String) -> crate::Result<ThoughtResponse> {
let res = self.client.get(&self.construct_url("session/think"))
.query(&[("access_key", &self.access_key), ("session_id", &self.session_id), ("input", &input)])
.header("user-agent", "Mozilla/5.0")
.send().await?;
match res.status().as_u16() {
200 => {
let thought = res.json::<ThoughtResponse>().await?;
Ok(thought)
},
_ => {
let err = res.json::<ErrorResponse>().await?;
Err(Error::from(err))
},
}
}
}
}
| 29.987654 | 112 | 0.477563 |
e548024308d6dbb22a5710bfcb2645bd77023046 | 3,150 | ts | TypeScript | src/app/components/settings/settings.component.ts | POLSL-GRUPA-2/gornik-zabrze-training-app-front | 91b59d6e29ee8bcc9fca0b6b5fa329cfa3359385 | [
"MIT"
] | null | null | null | src/app/components/settings/settings.component.ts | POLSL-GRUPA-2/gornik-zabrze-training-app-front | 91b59d6e29ee8bcc9fca0b6b5fa329cfa3359385 | [
"MIT"
] | null | null | null | src/app/components/settings/settings.component.ts | POLSL-GRUPA-2/gornik-zabrze-training-app-front | 91b59d6e29ee8bcc9fca0b6b5fa329cfa3359385 | [
"MIT"
] | null | null | null | import { Component, OnInit } from '@angular/core'
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'
import { User } from 'src/app/_models/user'
import { UserService } from 'src/app/services/user/user.service'
@Component({
selector: 'app-settings',
templateUrl: './settings.component.html',
styleUrls: ['./settings.component.scss'],
})
export class SettingsComponent implements OnInit {
form!: FormGroup
user!: User
firstName!: FormControl
lastName!: FormControl
email!: FormControl
password!: FormControl
hide = true
constructor(
private formBuilder: FormBuilder,
private userService: UserService
) {}
ngOnInit(): void {
this.getCurrentUser()
this.form = this.formBuilder.group({
first_name: this.firstName,
last_name: this.lastName,
email: this.email,
password: this.password,
})
}
initStuff(): void {
this.firstName = new FormControl(this.user.first_name, [
Validators.required,
])
this.lastName = new FormControl(this.user.last_name, [Validators.required])
this.email = new FormControl(this.user.email, [
Validators.required,
Validators.email,
])
this.password = new FormControl('', [
Validators.required,
Validators.pattern(
'^(?=[^A-Z]*[A-Z])(?=[^a-z]*[a-z])(?=\\D*\\d)[A-Za-z\\d!$%@#£€*?&]{8,}$'
),
])
}
submit(): void {
this.form = this.formBuilder.group({
id: this.user.id,
first_name: this.firstName,
last_name: this.lastName,
email: this.email,
password: this.password,
})
this.userService
.changeUserData(this.form.getRawValue())
.subscribe((res) => {})
}
getEmail() {
if (this.email?.hasError('required')) {
return 'Wprowadź wartość'
} else if (this.email?.hasError('email')) {
return 'Niepoprawny email'
}
return ''
}
isEmailValid() {
if (this.email?.hasError('required')) {
return false
} else if (this.email?.hasError('email')) {
return false
}
return true
}
checkIfFirstNameChanged() {
if (this.firstName?.hasError('required')) {
return 'Wprowadź wartość'
}
if (this.firstName.value == this.user.first_name) {
return false
} else return true
}
isFirstNameValid() {
if (this.firstName?.hasError('required')) {
return false
}
return true
}
getLastName() {
if (this.lastName?.hasError('required')) {
return 'Wprowadź wartość'
}
return ''
}
isLastNameValid() {
if (this.lastName?.hasError('required')) {
return false
}
return true
}
getPassword() {
if (this.password?.hasError('pattern')) {
return 'Hasło min 8 znaków, 1 wielka litera, 1 mała litera, 1 cyfra'
}
return ''
}
isPasswordValid() {
if (this.password?.hasError('required')) {
return false
} else if (this.password?.hasError('pattern')) {
return false
}
return true
}
getCurrentUser(): void {
this.userService.getCurrentUser().subscribe((res) => {
this.user = res
this.initStuff()
})
}
}
| 23.333333 | 80 | 0.613968 |
128562046ed73e1f79d157012066535b9343d90d | 559 | c | C | kernel/src/string/os_sint_to_string.c | Mcpg/cmike | 4a9494d6394ff9f48c629801275d3049c8fce199 | [
"MIT"
] | 4 | 2020-01-20T20:55:17.000Z | 2022-01-09T23:27:26.000Z | kernel/src/string/os_sint_to_string.c | Mcpg/cmike | 4a9494d6394ff9f48c629801275d3049c8fce199 | [
"MIT"
] | 8 | 2019-11-16T20:11:14.000Z | 2019-11-16T20:19:32.000Z | kernel/src/string/os_sint_to_string.c | Mcpg/cmike | 4a9494d6394ff9f48c629801275d3049c8fce199 | [
"MIT"
] | 1 | 2020-01-20T20:55:20.000Z | 2020-01-20T20:55:20.000Z | #include <mikeos.h>
void _os_sint_to_string(int* ax, int* bx, int* cx, int* dx, int* si, int* di)
{
*ax = (int) os_sint_to_string((int) *ax);
}
char* os_sint_to_string(int number)
{
static char buffer[7] = {0, 0, 0, 0, 0, 0, 0};
for (int i = 0; i < 6; i++)
{
if (number < 0 && i == 0)
{
buffer[6] = '-';
number *= -1;
}
buffer[i] = (number % 10) + '0';
number /= 10;
if (number == 0)
break;
}
os_string_reverse(&buffer[0]);
return &buffer[0];
} | 21.5 | 77 | 0.461538 |
8a44d1a436368bc0b160701abea072f2c64f8b87 | 2,008 | rs | Rust | src/lib.rs | mech-machines/stats | 30a391de2270dfa415b15fde387ddcbcb263e0c9 | [
"Apache-2.0"
] | null | null | null | src/lib.rs | mech-machines/stats | 30a391de2270dfa415b15fde387ddcbcb263e0c9 | [
"Apache-2.0"
] | null | null | null | src/lib.rs | mech-machines/stats | 30a391de2270dfa415b15fde387ddcbcb263e0c9 | [
"Apache-2.0"
] | null | null | null | extern crate mech_core;
extern crate mech_utilities;
#[macro_use]
extern crate lazy_static;
use mech_core::{Transaction, ValueIterator, ValueMethods};
use mech_core::{Value, Table, TableIndex};
use mech_core::{Quantity, ToQuantity, QuantityMath, hash_string};
lazy_static! {
static ref ROW: u64 = hash_string("row");
static ref COLUMN: u64 = hash_string("column");
static ref TABLE: u64 = hash_string("table");
}
#[no_mangle]
pub extern "C" fn stats_average(arguments: &Vec<(u64, ValueIterator)>) {
// TODO test argument count is 1
let (in_arg_name, vi) = &arguments[0];
let (_ , mut out) = arguments.last().unwrap().clone();
let mut in_rows = vi.rows();
let mut in_columns = vi.columns();
if *in_arg_name == *ROW {
out.resize(in_rows, 1);
for i in 1..=in_rows {
let mut sum: Value = Value::from_u32(0);
for j in 1..=in_columns {
match vi.get(&TableIndex::Index(i),&TableIndex::Index(j)) {
Some((value,_)) => {
sum = sum.add(value)
}
_ => ()
}
}
out.set_unchecked(i, 1, Value::from_f32(sum.as_f32().unwrap() / vi.columns() as f32));
}
} else if *in_arg_name == *COLUMN {
out.resize(1, in_columns);
for (i,m) in (1..=in_columns).zip(vi.column_iter.clone()) {
let mut sum: Value = Value::from_u32(0);
for (j,k) in (1..=in_rows).zip(vi.row_iter.clone()) {
match vi.get(&k,&m) {
Some((value,_)) => {
sum = sum.add(value)
}
_ => ()
}
}
out.set_unchecked(1, i, Value::from_f32(sum.as_f32().unwrap() / vi.rows() as f32));
}
} else if *in_arg_name == *TABLE {
out.resize(1, 1);
let mut sum: Value = Value::from_u32(0);
for (value,_) in vi.clone() {
sum = sum.add(value)
}
out.set_unchecked(1, 1, Value::from_f32(sum.as_f32().unwrap() / (vi.rows() * vi.columns()) as f32));
} else {
// TODO Warn about unknown argument
}
} | 31.873016 | 112 | 0.574701 |
0539663a4cc2622762f5db2e8ef7f0987d7b614f | 4,599 | rb | Ruby | spec/presenters/scoped_search_results_presenter_spec.rb | soniaturcotte/finder-frontend | 7ebe4dfbb9f53369bec2174e07450a0cd6183f0b | [
"MIT"
] | null | null | null | spec/presenters/scoped_search_results_presenter_spec.rb | soniaturcotte/finder-frontend | 7ebe4dfbb9f53369bec2174e07450a0cd6183f0b | [
"MIT"
] | null | null | null | spec/presenters/scoped_search_results_presenter_spec.rb | soniaturcotte/finder-frontend | 7ebe4dfbb9f53369bec2174e07450a0cd6183f0b | [
"MIT"
] | null | null | null | require "spec_helper"
RSpec.describe ScopedSearchResultsPresenter do
let(:view_content) { double(:view_content, render: 'pagination_html') }
before do
@scope_title = double
@unscoped_result_count = double
@scoped_results = [
{ "title_with_highlighting" => "scoped_result_1" },
{ "title_with_highlighting" => "scoped_result_2" },
{ "title_with_highlighting" => "scoped_result_3" },
{ "title_with_highlighting" => "scoped_result_4" },
]
@unscoped_results = [
{ "title_with_highlighting" => "unscoped_result_1" },
{ "title_with_highlighting" => "unscoped_result_2" },
{ "title_with_highlighting" => "unscoped_result_3" },
]
@search_response = {
"result_count" => "50",
"results" => @scoped_results,
"scope" => {
"title" => @scope_title,
},
"unscoped_results" => {
"total" => @unscoped_result_count,
"results" => @unscoped_results,
},
}
@search_parameters = double(
:params,
search_term: 'words',
debug_score: 1,
start: 1,
count: 1,
build_link: 1,
)
end
it "return a hash that has is_scoped set to true" do
results = ScopedSearchResultsPresenter.new(@search_response, @search_parameters, view_content)
expect(results.to_hash[:is_scoped?]).to eq(true)
end
it "return a hash with the scope_title set to the scope title from the @search_response" do
results = ScopedSearchResultsPresenter.new(@search_response, @search_parameters, view_content)
expect(results.to_hash[:scope_title]).to eq(@scope_title)
end
it "return a hash result count set to the scope title from the @search_response" do
results = ScopedSearchResultsPresenter.new(@search_response, @search_parameters, view_content)
expect(results.to_hash[:unscoped_result_count]).to eq("#{@unscoped_result_count} results")
end
context "presentable result list" do
it "return all scoped results with unscoped results inserted at position 4" do
results = ScopedSearchResultsPresenter.new(@search_response, @search_parameters, view_content).to_hash
##
# This test is asserting that the format of `presentable_list` is:
# [result, result, result, {results: list_of_results, is_multiple_results: true}, result ...]
# Where list_of_results are the top three results from an unscoped request to rummager
# and a flag `is_multiple_results` set to true.
##
simplified_expected_results_list = [
{ "title_with_highlighting" => "scoped_result_1" },
{ "title_with_highlighting" => "scoped_result_2" },
{ "title_with_highlighting" => "scoped_result_3" },
{
"is_multiple_results" => true,
"results" => [
{ "title_with_highlighting" => "unscoped_result_1" },
{ "title_with_highlighting" => "unscoped_result_2" },
{ "title_with_highlighting" => "unscoped_result_3" },
]
},
{ "title_with_highlighting" => "scoped_result_4" },
]
# Scoped results
simplified_expected_results_list[0..2].each_with_index do |result, i|
expect(results[:results][i][:title_with_highlighting]).to eq(result["title_with_highlighting"])
end
# Check un-scoped sub-list has flag
expect(results[:results][3][:is_multiple_results]).to eq(true)
# iterate unscoped sublist of results
simplified_expected_results_list[3]["results"].each_with_index do |result, i|
expect(results[:results][3][:results][i][:title_with_highlighting]).to eq(result["title_with_highlighting"])
end
# check remaining result
expect(results[:results][4][:title_with_highlighting]).to eq(simplified_expected_results_list[4]["title_with_highlighting"])
end
end
context "no scoped results returned" do
before do
@no_results = []
@search_response["unscoped_results"]["results"] = @no_results
end
it "not not include unscoped results in the presentable_list if there aren't any" do
results = ScopedSearchResultsPresenter.new(@search_response, @search_parameters, view_content).to_hash
@scoped_results.each_with_index do |result, i|
expect(results[:results][i][:title_with_highlighting]).to eq(result["title_with_highlighting"])
end
end
it "not set unscoped_results_any? to false" do
results = ScopedSearchResultsPresenter.new(@search_response, @search_parameters, view_content).to_hash
expect(results.to_hash[:unscoped_results_any?]).to be_falsy
end
end
end
| 37.08871 | 130 | 0.67993 |
d9ab11228611e0547cc95208bb144cbfb778bf98 | 10,364 | rs | Rust | executors/src/numa_utils.rs | stsydow/rust-executors | 5aa28fc023387c0ef7ccca3072dd19460d658982 | [
"MIT"
] | 26 | 2018-07-19T20:38:22.000Z | 2022-01-18T12:38:00.000Z | executors/src/numa_utils.rs | stsydow/rust-executors | 5aa28fc023387c0ef7ccca3072dd19460d658982 | [
"MIT"
] | 12 | 2019-04-09T14:15:05.000Z | 2021-10-16T13:38:13.000Z | executors/src/numa_utils.rs | stsydow/rust-executors | 5aa28fc023387c0ef7ccca3072dd19460d658982 | [
"MIT"
] | 1 | 2020-11-10T10:51:36.000Z | 2020-11-10T10:51:36.000Z | // Copyright 2017-2020 Lars Kroll. See the LICENSE
// file at the top-level directory of this distribution.
//
// Licensed under the MIT license
// <LICENSE or http://opensource.org/licenses/MIT>.
// This file may not be copied, modified, or distributed
// except according to those terms.
//! This module contains helpers for executors that are NUMA-ware.
//!
//! In particular the [ProcessingUnitDistance](ProcessingUnitDistance) code,
//! which allows a the description of costs associated with schedulling a function
//! on a different processing unit than it was originally assigned to.
//use hwloc2::{CpuBindFlags, ObjectType, Topology, TopologyObject};
//use std::collections::HashMap;
use core_affinity::CoreId;
use std::iter::FromIterator;
/// A full distance matrix between all processing units on a system
#[derive(Debug, PartialEq)]
pub struct ProcessingUnitDistance {
distance_matrix: Box<[Box<[i32]>]>,
}
impl ProcessingUnitDistance {
/// Create a new instance from the underlying distance matrix
///
/// Distance matrices must be square.
///
/// # Panics
///
/// This function will panic if the passed matrix is not square.
pub fn new(distance_matrix: Box<[Box<[i32]>]>) -> Self {
// make sure it's a square matrix
let num_rows = distance_matrix.len();
for row in distance_matrix.iter() {
assert_eq!(num_rows, row.len(), "A PU distance matrix must be square!");
}
ProcessingUnitDistance { distance_matrix }
}
/// A completely empty matrix where all lookups will fail
///
/// This can be used as a placeholder when compiling with feature numa-aware,
/// but not actually pinning any threads.
pub fn empty() -> Self {
ProcessingUnitDistance {
distance_matrix: Vec::new().into_boxed_slice(),
}
}
/// Materialise the `distance` function into a full matrix of `size` x `size`
///
/// The `distance` function will be invoked with row_index as first argument
/// and column_index as second argument for each value in `0..size`.
/// Both indices should be interpreted as if they were `CoreId.id` values.
///
/// The value for `distance(i, i)` should probably be 0, but it is unlikely that any code will rely on this.
pub fn from_function<F>(size: usize, distance: F) -> Self
where
F: Fn(usize, usize) -> i32,
{
let mut matrix: Vec<Box<[i32]>> = Vec::with_capacity(size);
for row_index in 0..size {
let mut row: Vec<i32> = Vec::with_capacity(size);
for column_index in 0..size {
let d = distance(row_index, column_index);
row.push(d);
}
matrix.push(row.into_boxed_slice());
}
ProcessingUnitDistance {
distance_matrix: matrix.into_boxed_slice(),
}
}
/// Get the weighted distance between `pu1` and `pu2` according to this matrix.
///
/// # Panics
///
/// This function will panic if core ids are outside of the matrix bounds.
pub fn distance(&self, pu1: CoreId, pu2: CoreId) -> i32 {
self.distance_matrix[pu1.id][pu2.id]
}
// Unfinished. Continue this once the hwloc library is more stable
// pub fn from_topology() -> Result<Self, CalcError> {
// let topo = Topology::new().ok_or(CalcError("Topology is unavailable.".to_string()))?;
// let mut root_distances: HashMap<String, u32> = HashMap::new();
// let pus = collect_root_distances(&mut root_distances, one_norm, &topo)?;
// let mut distance_matrix: Vec<Vec<u32>> = Vec::with_capacity(pus.len());
// let _ = fill_matrix(&mut distance_matrix, &root_distances, &pus)?;
// let partially_boxed_matrix: Vec<Box<[u32]>> = distance_matrix
// .into_iter()
// .map(|row| row.into_boxed_slice())
// .collect();
// let boxed_matrix = partially_boxed_matrix.into_boxed_slice();
// Ok(PUDistance {
// distance_matrix: boxed_matrix,
// })
// }
}
impl FromIterator<Vec<i32>> for ProcessingUnitDistance {
fn from_iter<I: IntoIterator<Item = Vec<i32>>>(iter: I) -> Self {
let mut v: Vec<Box<[i32]>> = Vec::new();
for i in iter {
v.push(i.into_boxed_slice());
}
ProcessingUnitDistance::new(v.into_boxed_slice())
}
}
impl FromIterator<Box<[i32]>> for ProcessingUnitDistance {
fn from_iter<I: IntoIterator<Item = Box<[i32]>>>(iter: I) -> Self {
let mut v: Vec<Box<[i32]>> = Vec::new();
for i in iter {
v.push(i);
}
ProcessingUnitDistance::new(v.into_boxed_slice())
}
}
/// Trivial distance function for non-NUMA architectures
///
/// Produces a 0 distance for `i==j` and 1 otherwise.
pub fn equidistance(i: usize, j: usize) -> i32 {
if i == j {
0
} else {
1
}
}
/*
* Unfinished. Continue this once the hwloc library is more stable
*/
// type TopologyObjectNorm = fn(&TopologyObject) -> u32;
// fn one_norm(_object: &TopologyObject) -> u32 {
// 1
// }
// fn fill_matrix(
// distance_matrix: &mut Vec<Vec<u32>>,
// root_distances: &HashMap<String, u32>,
// pus: &[&TopologyObject],
// ) -> Result<(), CalcError> {
// Ok(())
// }
// fn collect_root_distances<'a, 'b>(
// distance_map: &'a mut HashMap<String, u32>,
// norm: TopologyObjectNorm,
// topology: &'b Topology,
// ) -> Result<Box<[&'b TopologyObject]>, CalcError> {
// let mut collector = DistanceCollector {
// norm,
// distance_map,
// pus: Vec::new(),
// };
// println!("About to start at the root...");
// let root = topology.object_at_root();
// println!("Root is ok");
// let root_name = root.name();
// println!("Root name is ok");
// println!("Root has name={}", root_name);
// collector.descend(root, 0)?;
// Ok(collector.pus.into_boxed_slice())
// }
// struct DistanceCollector<'a, 'b> {
// norm: TopologyObjectNorm,
// distance_map: &'a mut HashMap<String, u32>,
// pus: Vec<&'b TopologyObject>,
// }
// impl<'a, 'b> DistanceCollector<'a, 'b> {
// fn descend(&mut self, node: &'b TopologyObject, path_cost: u32) -> Result<(), CalcError> {
// println!("Descending into node={}", node.name());
// if self.distance_map.insert(node.name(), path_cost).is_some() {
// return Err(CalcError(format!("Node at {} is not unique!", node.name())));
// }
// if node.object_type() == ObjectType::PU {
// self.pus.push(node);
// debug_assert_eq!(0, node.arity(), "PUs should have no children!");
// Ok(())
// } else {
// let new_cost = path_cost + (self.norm)(node);
// for i in 0..node.arity() {
// self.descend(node.children()[i as usize], new_cost)?;
// }
// Ok(())
// }
// }
// }
// #[derive(Debug, Clone)]
// pub(crate) struct CalcError(String);
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_pu_distance_creation() {
let mat = vec![vec![0, 1], vec![1, 0]];
let pud: ProcessingUnitDistance = mat.into_iter().collect();
let pud2 = ProcessingUnitDistance::from_function(2, equidistance);
assert_eq!(pud, pud2);
let core1 = CoreId { id: 0 };
let core2 = CoreId { id: 1 };
assert_eq!(0, pud.distance(core1, core1));
assert_eq!(0, pud.distance(core2, core2));
assert_eq!(1, pud.distance(core1, core2));
assert_eq!(1, pud.distance(core2, core1));
}
#[test]
fn test_empty_pu_distance() {
let mat: Vec<Vec<i32>> = Vec::new();
let pud: ProcessingUnitDistance = mat.into_iter().collect();
let pud2 = ProcessingUnitDistance::empty();
assert_eq!(pud, pud2);
}
/*
* Unfinished. Continue this once the hwloc library is more stable
*/
// #[test]
// fn test_root_distance_collection() {
// let topo = Topology::new().expect("topology");
// let mut root_distances: HashMap<String, u32> = HashMap::new();
// let pus = collect_root_distances(&mut root_distances, one_norm, &topo).expect("collection");
// let pu_names: Vec<String> = pus.iter().map(|pu| pu.name()).collect();
// println!("PUs: {:?}", pu_names);
// println!("Distances: {:?}", root_distances);
// }
// #[test]
// fn test_core_ids() {
// use hwloc2::{CpuBindFlags, Topology};
// let core_ids = core_affinity::get_core_ids().unwrap();
// println!("cores: {:?}", core_ids);
// let topo = Topology::new().unwrap();
// for i in 0..topo.depth() {
// println!("*** Objects at level {}", i);
// for (idx, object) in topo.objects_at_depth(i).iter().enumerate() {
// println!("{}: {}", idx, object);
// }
// }
// // Show current binding
// //topo.set_cpubind(Bitmap::from(1), CpuBindFlags::CPUBIND_THREAD).expect("thread binding");
// core_affinity::set_for_current(core_ids[0]);
// println!(
// "Current CPU Binding: {:?}",
// topo.get_cpubind(CpuBindFlags::CPUBIND_THREAD)
// );
// // Check if Process Binding for CPUs is supported
// println!(
// "CPU Binding (current process) supported: {}",
// topo.support().cpu().set_current_process()
// );
// println!(
// "CPU Binding (any process) supported: {}",
// topo.support().cpu().set_process()
// );
// // Check if Thread Binding for CPUs is supported
// println!(
// "CPU Binding (current thread) supported: {}",
// topo.support().cpu().set_current_thread()
// );
// println!(
// "CPU Binding (any thread) supported: {}",
// topo.support().cpu().set_thread()
// );
// // Check if Memory Binding is supported
// println!(
// "Memory Binding supported: {}",
// topo.support().memory().set_current_process()
// );
// // Debug Print all the Support Flags
// println!("All Flags:\n{:?}", topo.support());
// }
}
| 35.251701 | 112 | 0.578348 |
e75ec70051f58f956545790c52a49cb2d30768ce | 1,202 | js | JavaScript | src/storybook/feed.stories.js | haakenlid/db-feed | bb4d7ace64b23f3e0d0365dec93f628d27be91d0 | [
"MIT"
] | null | null | null | src/storybook/feed.stories.js | haakenlid/db-feed | bb4d7ace64b23f3e0d0365dec93f628d27be91d0 | [
"MIT"
] | null | null | null | src/storybook/feed.stories.js | haakenlid/db-feed | bb4d7ace64b23f3e0d0365dec93f628d27be91d0 | [
"MIT"
] | null | null | null | import React from 'react'
import { boolean, text } from '@storybook/addon-knobs/react'
import { storiesOf } from '@storybook/react'
import { withNotes } from '@storybook/addon-notes'
import { baseProps, randomProps } from './utils'
import Provider from './Provider'
import { FeedStory } from 'components/FeedStory'
import LoadingIndicator from 'components/LoadingIndicator'
import Feed from 'components/Feed'
storiesOf('Feed', module)
.addWithJSX(
'FeedStory',
withNotes(
'Single feed story. The props can be edited in the Knobs panel.'
)(() => {
const props = {
host: text('host', baseProps.host),
title: text('title', baseProps.title),
image: text('image', baseProps.image),
}
return <FeedStory {...props} />
})
)
.addWithJSX(
'LoadingIndicator',
withNotes(
'loading indicator can be stopped and started in the Knobs panel.'
)(() => (
<LoadingIndicator
isLoading={boolean('isLoading', false)}
children={text('message', '') || null}
/>
))
)
.add(
'Feed',
withNotes('Newsfeed with sample data.')(() => (
<Provider>
<Feed />
</Provider>
))
)
| 26.130435 | 72 | 0.613145 |
9b900e796a22be52bcbd90b387ee4a5018da4f17 | 1,249 | js | JavaScript | views/detail/js/list.js | caibiao/datadict | 88e7ddb2f9f3ae68c8821e5bf978faee2e3a1a6a | [
"MIT"
] | null | null | null | views/detail/js/list.js | caibiao/datadict | 88e7ddb2f9f3ae68c8821e5bf978faee2e3a1a6a | [
"MIT"
] | 3 | 2017-12-21T01:54:26.000Z | 2018-01-24T08:20:27.000Z | views/detail/js/list.js | caibiao/datadict | 88e7ddb2f9f3ae68c8821e5bf978faee2e3a1a6a | [
"MIT"
] | null | null | null | $(function(){
$('#detail-add-button').click(function() {
$('#detail-add-modal').modal('show').find('#detail-add-modal-view').html('');
$('#detail-add-modal').modal('show').find('#detail-add-modal-view').load($(this).attr('href'));
return false;
});
$('.update-button').click(function() {
$('#detail-add-modal').modal('show').find('#detail-add-modal-view').html('');
$('#detail-add-modal').modal('show').find('#detail-add-modal-view').load($(this).attr('href'));
return false;
});
$('.disabled-button').click(function() {
$btn = $(this);
if(confirm('确定停用吗?')) {
$.ajax({
url: $btn.attr('href'),
dataType: 'json',
})
.success(function(json) {
$btn.hide();
$btn.parent().find('.enabled-button').show();
});
}
return false;
});
$('.enabled-button').click(function() {
$btn = $(this);
if(confirm('确定启用吗?')) {
$.ajax({
url: $btn.attr('href'),
dataType: 'json',
})
.success(function(json) {
$btn.hide();
$btn.parent().find('.disabled-button').show();
});
}
return false;
});
});
| 27.152174 | 103 | 0.47478 |
929102345e6f3c24a1da3c720965b05f12b805b9 | 368 | h | C | Classes/Logging/POSLogger.h | pavelosipov/POSErrorHandling | ec5416cd6d6a6aa364c02c0d603d1b3c5c142871 | [
"MIT"
] | null | null | null | Classes/Logging/POSLogger.h | pavelosipov/POSErrorHandling | ec5416cd6d6a6aa364c02c0d603d1b3c5c142871 | [
"MIT"
] | null | null | null | Classes/Logging/POSLogger.h | pavelosipov/POSErrorHandling | ec5416cd6d6a6aa364c02c0d603d1b3c5c142871 | [
"MIT"
] | null | null | null | //
// POSLogger.h
// POSErrorHandling
//
// Created by Pavel Osipov on 09/08/2018.
// Copyright © 2018 Pavel Osipov. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol POSLogger <NSObject>
- (void)logError:(nullable NSString *)format, ...;
- (void)logInfo:(nullable NSString *)format, ...;
@end
NS_ASSUME_NONNULL_END
| 17.52381 | 55 | 0.714674 |
ddf70cd39c4a6642775706631762632824c295bd | 3,503 | php | PHP | resources/views/livewire/Empresa/configuracion.blade.php | RobertRaul/parkeo | 7a59c2a15107bcddff5c100bef3b3e968efbdab9 | [
"MIT"
] | null | null | null | resources/views/livewire/Empresa/configuracion.blade.php | RobertRaul/parkeo | 7a59c2a15107bcddff5c100bef3b3e968efbdab9 | [
"MIT"
] | null | null | null | resources/views/livewire/Empresa/configuracion.blade.php | RobertRaul/parkeo | 7a59c2a15107bcddff5c100bef3b3e968efbdab9 | [
"MIT"
] | null | null | null |
<div class="card card-light">
<div class="card-header container-fluid">
<div class="row">
<div class="col-md-10">
<h3>Configuraciones Empresa</h3>
</div>
</div>
</div>
<div class="card-body">
<div class="form-row">
<div class="col-md-2">
<label for="">Ruc:</label>
<input type="number" class="form-control" wire:model='empr_ruc'>
@error('empr_ruc') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
<div class="col-md-4">
<label for="">Razon Social:</label>
<input type="text" class="form-control" wire:model='empr_razon'>
@error('empr_razon') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
<div class="col-md-4">
<label for="">Direccion:</label>
<input type="text" class="form-control" wire:model='empr_direcc'>
@error('empr_direcc') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
<div class="col-md-2">
<label for="">Telefono:</label>
<input type="number" class="form-control" wire:model='empr_telef'>
@error('empr_telef') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
</div>
<div class="form-row">
<div class="col-md-2">
<label for="">Logo Actual:</label>
@if ($empr_logo==null)
<img src="{{ asset('images/logo/no_logo.png') }}" width="180" height="100" />
@else
<img src="{{ asset('images/logo/'. $empr_logo) }}" width="180" height="100" />
@endif
</div>
<div class="col-md-4">
<label for="">Logo:</label>
<input type="file" class="form-control" wire:model='empr_logo'>
@error('empr_logo') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
<div class="col-md-4">
<label for="">Email:</label>
<input type="text" class="form-control" wire:model='empr_email'>
@error('empr_email') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
<div class="col-md-2">
<label for="">Impresora Tickets:</label>
<select class="form-control" wire:model='empr_impr'>
<option value="Seleccionar">Seleccionar</option>
@foreach ($impresoras as $i)
<option value="{{ $i }}">{{ $i }}</option>
@endforeach
</select>
@error('empr_impr') <span class="error text-danger">{{ $message }}</span> @enderror
</div>
</div>
<div class="form-row mt-2">
<div class="col-md-3">
<button type="button" class="btn btn-primary" wire:click='Guardar' >Guardar</button>
<button type="button" class="btn btn-primary" wire:click='ListadoImpresoras' >Probando</button>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded',function()
{
window.onload = function()
{
window.livewire.emit("carga_impresora")
};
})
</script>
| 36.873684 | 111 | 0.488724 |
bd99203127764059d0093481e17a467925921cc4 | 335 | kt | Kotlin | modules/common_android/src/main/java/kekmech/ru/common_android/ResourcesExt.kt | tonykolomeytsev/mpeiapp | 28cd15c2cc23b91f88d5bae9f7e16907f9ec0365 | [
"MIT"
] | 14 | 2019-08-24T21:41:34.000Z | 2022-01-17T08:54:23.000Z | modules/common_android/src/main/java/kekmech/ru/common_android/ResourcesExt.kt | tonykolomeytsev/mpeiapp | 28cd15c2cc23b91f88d5bae9f7e16907f9ec0365 | [
"MIT"
] | 125 | 2019-09-29T21:51:42.000Z | 2021-09-25T13:46:36.000Z | modules/common_android/src/main/java/kekmech/ru/common_android/ResourcesExt.kt | tonykolomeytsev/mpeiapp | 28cd15c2cc23b91f88d5bae9f7e16907f9ec0365 | [
"MIT"
] | 8 | 2019-10-10T17:47:32.000Z | 2021-09-16T19:34:40.000Z | package kekmech.ru.common_android
import android.content.res.Resources
import android.util.TypedValue
import kotlin.math.roundToInt
fun Resources.dpToPx(dp: Int): Int = dpToPx(dp.toFloat())
fun Resources.dpToPx(dp: Float): Int = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
dp,
displayMetrics
).roundToInt()
| 22.333333 | 65 | 0.776119 |
50e7094269599834a2f33ea0e29eac0c7334e98d | 291,757 | go | Go | go/as/external/api/application.pb.go | sagar-patel-sls/chirpstack-ap | 485aa986a274cdbb7c11d31b7918e4a44f15c0bb | [
"MIT"
] | 1 | 2020-03-12T08:25:38.000Z | 2020-03-12T08:25:38.000Z | go/as/external/api/application.pb.go | sagar-patel-sls/chirpstack-ap | 485aa986a274cdbb7c11d31b7918e4a44f15c0bb | [
"MIT"
] | 3 | 2020-12-12T12:53:50.000Z | 2022-02-16T07:12:14.000Z | go/as/external/api/application.pb.go | sagar-patel-sls/chirpstack-api | 485aa986a274cdbb7c11d31b7918e4a44f15c0bb | [
"MIT"
] | null | null | null | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/external/api/application.proto
package api
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type IntegrationKind int32
const (
IntegrationKind_HTTP IntegrationKind = 0
IntegrationKind_INFLUXDB IntegrationKind = 1
IntegrationKind_THINGSBOARD IntegrationKind = 2
IntegrationKind_MYDEVICES IntegrationKind = 3
IntegrationKind_LORACLOUD IntegrationKind = 4
IntegrationKind_GCP_PUBSUB IntegrationKind = 5
IntegrationKind_AWS_SNS IntegrationKind = 6
IntegrationKind_AZURE_SERVICE_BUS IntegrationKind = 7
IntegrationKind_LOCCARTO IntegrationKind = 8
IntegrationKind_PILOT_THINGS IntegrationKind = 9
IntegrationKind_MQTT_GLOBAL IntegrationKind = 10
IntegrationKind_QUBITRO IntegrationKind = 11
)
var IntegrationKind_name = map[int32]string{
0: "HTTP",
1: "INFLUXDB",
2: "THINGSBOARD",
3: "MYDEVICES",
4: "LORACLOUD",
5: "GCP_PUBSUB",
6: "AWS_SNS",
7: "AZURE_SERVICE_BUS",
8: "LOCCARTO",
9: "PILOT_THINGS",
10: "MQTT_GLOBAL",
11: "QUBITRO",
}
var IntegrationKind_value = map[string]int32{
"HTTP": 0,
"INFLUXDB": 1,
"THINGSBOARD": 2,
"MYDEVICES": 3,
"LORACLOUD": 4,
"GCP_PUBSUB": 5,
"AWS_SNS": 6,
"AZURE_SERVICE_BUS": 7,
"LOCCARTO": 8,
"PILOT_THINGS": 9,
"MQTT_GLOBAL": 10,
"QUBITRO": 11,
}
func (x IntegrationKind) String() string {
return proto.EnumName(IntegrationKind_name, int32(x))
}
func (IntegrationKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{0}
}
type Marshaler int32
const (
Marshaler_JSON Marshaler = 0
Marshaler_PROTOBUF Marshaler = 1
Marshaler_JSON_V3 Marshaler = 2
)
var Marshaler_name = map[int32]string{
0: "JSON",
1: "PROTOBUF",
2: "JSON_V3",
}
var Marshaler_value = map[string]int32{
"JSON": 0,
"PROTOBUF": 1,
"JSON_V3": 2,
}
func (x Marshaler) String() string {
return proto.EnumName(Marshaler_name, int32(x))
}
func (Marshaler) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{1}
}
type InfluxDBPrecision int32
const (
InfluxDBPrecision_NS InfluxDBPrecision = 0
InfluxDBPrecision_U InfluxDBPrecision = 1
InfluxDBPrecision_MS InfluxDBPrecision = 2
InfluxDBPrecision_S InfluxDBPrecision = 3
InfluxDBPrecision_M InfluxDBPrecision = 4
InfluxDBPrecision_H InfluxDBPrecision = 5
)
var InfluxDBPrecision_name = map[int32]string{
0: "NS",
1: "U",
2: "MS",
3: "S",
4: "M",
5: "H",
}
var InfluxDBPrecision_value = map[string]int32{
"NS": 0,
"U": 1,
"MS": 2,
"S": 3,
"M": 4,
"H": 5,
}
func (x InfluxDBPrecision) String() string {
return proto.EnumName(InfluxDBPrecision_name, int32(x))
}
func (InfluxDBPrecision) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{2}
}
type InfluxDBVersion int32
const (
InfluxDBVersion_INFLUXDB_1 InfluxDBVersion = 0
InfluxDBVersion_INFLUXDB_2 InfluxDBVersion = 1
)
var InfluxDBVersion_name = map[int32]string{
0: "INFLUXDB_1",
1: "INFLUXDB_2",
}
var InfluxDBVersion_value = map[string]int32{
"INFLUXDB_1": 0,
"INFLUXDB_2": 1,
}
func (x InfluxDBVersion) String() string {
return proto.EnumName(InfluxDBVersion_name, int32(x))
}
func (InfluxDBVersion) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{3}
}
type Application struct {
// Application ID.
// This will be automatically assigned on create.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the application (must be unique).
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description of the application.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// ID of the organization to which the application belongs.
// After create, this can not be modified.
OrganizationId int64 `protobuf:"varint,4,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// ID of the service profile.
ServiceProfileId string `protobuf:"bytes,5,opt,name=service_profile_id,json=serviceProfileID,proto3" json:"service_profile_id,omitempty"`
// Payload codec.
// NOTE: These field have moved to the device-profile and will be removed
// in the next major release. When set, the device-profile payload_ fields
// have priority over the application payload_ fields.
PayloadCodec string `protobuf:"bytes,6,opt,name=payload_codec,json=payloadCodec,proto3" json:"payload_codec,omitempty"`
// Payload encoder script.
// NOTE: These field have moved to the device-profile and will be removed
// in the next major release. When set, the device-profile payload_ fields
// have priority over the application payload_ fields.
PayloadEncoderScript string `protobuf:"bytes,7,opt,name=payload_encoder_script,json=payloadEncoderScript,proto3" json:"payload_encoder_script,omitempty"`
// Payload decoder script.
// NOTE: These field have moved to the device-profile and will be removed
// in the next major release. When set, the device-profile payload_ fields
// have priority over the application payload_ fields.
PayloadDecoderScript string `protobuf:"bytes,8,opt,name=payload_decoder_script,json=payloadDecoderScript,proto3" json:"payload_decoder_script,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Application) Reset() { *m = Application{} }
func (m *Application) String() string { return proto.CompactTextString(m) }
func (*Application) ProtoMessage() {}
func (*Application) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{0}
}
func (m *Application) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Application.Unmarshal(m, b)
}
func (m *Application) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Application.Marshal(b, m, deterministic)
}
func (m *Application) XXX_Merge(src proto.Message) {
xxx_messageInfo_Application.Merge(m, src)
}
func (m *Application) XXX_Size() int {
return xxx_messageInfo_Application.Size(m)
}
func (m *Application) XXX_DiscardUnknown() {
xxx_messageInfo_Application.DiscardUnknown(m)
}
var xxx_messageInfo_Application proto.InternalMessageInfo
func (m *Application) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Application) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Application) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Application) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *Application) GetServiceProfileId() string {
if m != nil {
return m.ServiceProfileId
}
return ""
}
func (m *Application) GetPayloadCodec() string {
if m != nil {
return m.PayloadCodec
}
return ""
}
func (m *Application) GetPayloadEncoderScript() string {
if m != nil {
return m.PayloadEncoderScript
}
return ""
}
func (m *Application) GetPayloadDecoderScript() string {
if m != nil {
return m.PayloadDecoderScript
}
return ""
}
type ApplicationListItem struct {
// Application ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the application.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description of the application.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// ID of the organization to which the application belongs.
OrganizationId int64 `protobuf:"varint,4,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// ID of the service profile.
ServiceProfileId string `protobuf:"bytes,5,opt,name=service_profile_id,json=serviceProfileID,proto3" json:"service_profile_id,omitempty"`
// Service-profile name.
ServiceProfileName string `protobuf:"bytes,6,opt,name=service_profile_name,json=serviceProfileName,proto3" json:"service_profile_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationListItem) Reset() { *m = ApplicationListItem{} }
func (m *ApplicationListItem) String() string { return proto.CompactTextString(m) }
func (*ApplicationListItem) ProtoMessage() {}
func (*ApplicationListItem) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{1}
}
func (m *ApplicationListItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationListItem.Unmarshal(m, b)
}
func (m *ApplicationListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationListItem.Marshal(b, m, deterministic)
}
func (m *ApplicationListItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationListItem.Merge(m, src)
}
func (m *ApplicationListItem) XXX_Size() int {
return xxx_messageInfo_ApplicationListItem.Size(m)
}
func (m *ApplicationListItem) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationListItem.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationListItem proto.InternalMessageInfo
func (m *ApplicationListItem) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *ApplicationListItem) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ApplicationListItem) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ApplicationListItem) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *ApplicationListItem) GetServiceProfileId() string {
if m != nil {
return m.ServiceProfileId
}
return ""
}
func (m *ApplicationListItem) GetServiceProfileName() string {
if m != nil {
return m.ServiceProfileName
}
return ""
}
type CreateApplicationRequest struct {
// Application object to create.
Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateApplicationRequest) Reset() { *m = CreateApplicationRequest{} }
func (m *CreateApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateApplicationRequest) ProtoMessage() {}
func (*CreateApplicationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{2}
}
func (m *CreateApplicationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateApplicationRequest.Unmarshal(m, b)
}
func (m *CreateApplicationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateApplicationRequest.Marshal(b, m, deterministic)
}
func (m *CreateApplicationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateApplicationRequest.Merge(m, src)
}
func (m *CreateApplicationRequest) XXX_Size() int {
return xxx_messageInfo_CreateApplicationRequest.Size(m)
}
func (m *CreateApplicationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateApplicationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateApplicationRequest proto.InternalMessageInfo
func (m *CreateApplicationRequest) GetApplication() *Application {
if m != nil {
return m.Application
}
return nil
}
type CreateApplicationResponse struct {
// Application ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateApplicationResponse) Reset() { *m = CreateApplicationResponse{} }
func (m *CreateApplicationResponse) String() string { return proto.CompactTextString(m) }
func (*CreateApplicationResponse) ProtoMessage() {}
func (*CreateApplicationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{3}
}
func (m *CreateApplicationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateApplicationResponse.Unmarshal(m, b)
}
func (m *CreateApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateApplicationResponse.Marshal(b, m, deterministic)
}
func (m *CreateApplicationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateApplicationResponse.Merge(m, src)
}
func (m *CreateApplicationResponse) XXX_Size() int {
return xxx_messageInfo_CreateApplicationResponse.Size(m)
}
func (m *CreateApplicationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateApplicationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateApplicationResponse proto.InternalMessageInfo
func (m *CreateApplicationResponse) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type GetApplicationRequest struct {
// Application ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetApplicationRequest) Reset() { *m = GetApplicationRequest{} }
func (m *GetApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*GetApplicationRequest) ProtoMessage() {}
func (*GetApplicationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{4}
}
func (m *GetApplicationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetApplicationRequest.Unmarshal(m, b)
}
func (m *GetApplicationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetApplicationRequest.Marshal(b, m, deterministic)
}
func (m *GetApplicationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetApplicationRequest.Merge(m, src)
}
func (m *GetApplicationRequest) XXX_Size() int {
return xxx_messageInfo_GetApplicationRequest.Size(m)
}
func (m *GetApplicationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetApplicationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetApplicationRequest proto.InternalMessageInfo
func (m *GetApplicationRequest) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type GetApplicationResponse struct {
// Application object.
Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetApplicationResponse) Reset() { *m = GetApplicationResponse{} }
func (m *GetApplicationResponse) String() string { return proto.CompactTextString(m) }
func (*GetApplicationResponse) ProtoMessage() {}
func (*GetApplicationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{5}
}
func (m *GetApplicationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetApplicationResponse.Unmarshal(m, b)
}
func (m *GetApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetApplicationResponse.Marshal(b, m, deterministic)
}
func (m *GetApplicationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetApplicationResponse.Merge(m, src)
}
func (m *GetApplicationResponse) XXX_Size() int {
return xxx_messageInfo_GetApplicationResponse.Size(m)
}
func (m *GetApplicationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetApplicationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetApplicationResponse proto.InternalMessageInfo
func (m *GetApplicationResponse) GetApplication() *Application {
if m != nil {
return m.Application
}
return nil
}
type UpdateApplicationRequest struct {
// Application object to update.
Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateApplicationRequest) Reset() { *m = UpdateApplicationRequest{} }
func (m *UpdateApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateApplicationRequest) ProtoMessage() {}
func (*UpdateApplicationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{6}
}
func (m *UpdateApplicationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateApplicationRequest.Unmarshal(m, b)
}
func (m *UpdateApplicationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateApplicationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateApplicationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateApplicationRequest.Merge(m, src)
}
func (m *UpdateApplicationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateApplicationRequest.Size(m)
}
func (m *UpdateApplicationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateApplicationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateApplicationRequest proto.InternalMessageInfo
func (m *UpdateApplicationRequest) GetApplication() *Application {
if m != nil {
return m.Application
}
return nil
}
type DeleteApplicationRequest struct {
// Application ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteApplicationRequest) Reset() { *m = DeleteApplicationRequest{} }
func (m *DeleteApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteApplicationRequest) ProtoMessage() {}
func (*DeleteApplicationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{7}
}
func (m *DeleteApplicationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteApplicationRequest.Unmarshal(m, b)
}
func (m *DeleteApplicationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteApplicationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteApplicationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteApplicationRequest.Merge(m, src)
}
func (m *DeleteApplicationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteApplicationRequest.Size(m)
}
func (m *DeleteApplicationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteApplicationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteApplicationRequest proto.InternalMessageInfo
func (m *DeleteApplicationRequest) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type ListApplicationRequest struct {
// Max number of applications to return in the result-test.
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Offset in the result-set (for pagination).
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// ID of the organization to filter on.
OrganizationId int64 `protobuf:"varint,3,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// Search on name (optional).
Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListApplicationRequest) Reset() { *m = ListApplicationRequest{} }
func (m *ListApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*ListApplicationRequest) ProtoMessage() {}
func (*ListApplicationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{8}
}
func (m *ListApplicationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListApplicationRequest.Unmarshal(m, b)
}
func (m *ListApplicationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListApplicationRequest.Marshal(b, m, deterministic)
}
func (m *ListApplicationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListApplicationRequest.Merge(m, src)
}
func (m *ListApplicationRequest) XXX_Size() int {
return xxx_messageInfo_ListApplicationRequest.Size(m)
}
func (m *ListApplicationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListApplicationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListApplicationRequest proto.InternalMessageInfo
func (m *ListApplicationRequest) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListApplicationRequest) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *ListApplicationRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *ListApplicationRequest) GetSearch() string {
if m != nil {
return m.Search
}
return ""
}
type ListApplicationResponse struct {
// Total number of applications available within the result-set.
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// Applications within this result-set.
Result []*ApplicationListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListApplicationResponse) Reset() { *m = ListApplicationResponse{} }
func (m *ListApplicationResponse) String() string { return proto.CompactTextString(m) }
func (*ListApplicationResponse) ProtoMessage() {}
func (*ListApplicationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{9}
}
func (m *ListApplicationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListApplicationResponse.Unmarshal(m, b)
}
func (m *ListApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListApplicationResponse.Marshal(b, m, deterministic)
}
func (m *ListApplicationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListApplicationResponse.Merge(m, src)
}
func (m *ListApplicationResponse) XXX_Size() int {
return xxx_messageInfo_ListApplicationResponse.Size(m)
}
func (m *ListApplicationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListApplicationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListApplicationResponse proto.InternalMessageInfo
func (m *ListApplicationResponse) GetTotalCount() int64 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *ListApplicationResponse) GetResult() []*ApplicationListItem {
if m != nil {
return m.Result
}
return nil
}
type HTTPIntegrationHeader struct {
// Key
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Value
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HTTPIntegrationHeader) Reset() { *m = HTTPIntegrationHeader{} }
func (m *HTTPIntegrationHeader) String() string { return proto.CompactTextString(m) }
func (*HTTPIntegrationHeader) ProtoMessage() {}
func (*HTTPIntegrationHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{10}
}
func (m *HTTPIntegrationHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HTTPIntegrationHeader.Unmarshal(m, b)
}
func (m *HTTPIntegrationHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HTTPIntegrationHeader.Marshal(b, m, deterministic)
}
func (m *HTTPIntegrationHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_HTTPIntegrationHeader.Merge(m, src)
}
func (m *HTTPIntegrationHeader) XXX_Size() int {
return xxx_messageInfo_HTTPIntegrationHeader.Size(m)
}
func (m *HTTPIntegrationHeader) XXX_DiscardUnknown() {
xxx_messageInfo_HTTPIntegrationHeader.DiscardUnknown(m)
}
var xxx_messageInfo_HTTPIntegrationHeader proto.InternalMessageInfo
func (m *HTTPIntegrationHeader) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *HTTPIntegrationHeader) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
type HTTPIntegration struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// The headers to use when making HTTP callbacks.
Headers []*HTTPIntegrationHeader `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
// The URL to call for uplink data.
// Deprecated: use event_endpoint_url.
UplinkDataUrl string `protobuf:"bytes,3,opt,name=uplink_data_url,json=uplinkDataURL,proto3" json:"uplink_data_url,omitempty"`
// The URL to call for join notifications.
// Deprecated: use event_endpoint_url.
JoinNotificationUrl string `protobuf:"bytes,4,opt,name=join_notification_url,json=joinNotificationURL,proto3" json:"join_notification_url,omitempty"`
// The URL to call for ACK notifications (for confirmed downlink data).
// Deprecated: use event_endpoint_url.
AckNotificationUrl string `protobuf:"bytes,5,opt,name=ack_notification_url,json=ackNotificationURL,proto3" json:"ack_notification_url,omitempty"`
// The URL to call for error notifications.
// Deprecated: use event_endpoint_url.
ErrorNotificationUrl string `protobuf:"bytes,6,opt,name=error_notification_url,json=errorNotificationURL,proto3" json:"error_notification_url,omitempty"`
// The URL to call for device-status notifications.
// Deprecated: use event_endpoint_url.
StatusNotificationUrl string `protobuf:"bytes,7,opt,name=status_notification_url,json=statusNotificationURL,proto3" json:"status_notification_url,omitempty"`
// The URL to call for location notifications.
// Deprecated: use event_endpoint_url.
LocationNotificationUrl string `protobuf:"bytes,8,opt,name=location_notification_url,json=locationNotificationURL,proto3" json:"location_notification_url,omitempty"`
// The URL to call for tx ack notifications (downlink acknowledged by gateway
// for transmission). Deprecated: use event_endpoint_url.
TxAckNotificationUrl string `protobuf:"bytes,9,opt,name=tx_ack_notification_url,json=txAckNotificationURL,proto3" json:"tx_ack_notification_url,omitempty"`
// The URL to call for integration notifications.
// Deprecated: use event_endpoint_url.
IntegrationNotificationUrl string `protobuf:"bytes,10,opt,name=integration_notification_url,json=integrationNotificationURL,proto3" json:"integration_notification_url,omitempty"`
// Marshaler.
// This defines the marshaler that is used to encode the event payload.
Marshaler Marshaler `protobuf:"varint,11,opt,name=marshaler,proto3,enum=api.Marshaler" json:"marshaler,omitempty"`
// Event endpoint URL.
// The HTTP integration will POST all events to this enpoint. The request
// will contain a query parameters "event" containing the type of the
// event.
EventEndpointUrl string `protobuf:"bytes,12,opt,name=event_endpoint_url,json=eventEndpointURL,proto3" json:"event_endpoint_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HTTPIntegration) Reset() { *m = HTTPIntegration{} }
func (m *HTTPIntegration) String() string { return proto.CompactTextString(m) }
func (*HTTPIntegration) ProtoMessage() {}
func (*HTTPIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{11}
}
func (m *HTTPIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HTTPIntegration.Unmarshal(m, b)
}
func (m *HTTPIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HTTPIntegration.Marshal(b, m, deterministic)
}
func (m *HTTPIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_HTTPIntegration.Merge(m, src)
}
func (m *HTTPIntegration) XXX_Size() int {
return xxx_messageInfo_HTTPIntegration.Size(m)
}
func (m *HTTPIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_HTTPIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_HTTPIntegration proto.InternalMessageInfo
func (m *HTTPIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *HTTPIntegration) GetHeaders() []*HTTPIntegrationHeader {
if m != nil {
return m.Headers
}
return nil
}
func (m *HTTPIntegration) GetUplinkDataUrl() string {
if m != nil {
return m.UplinkDataUrl
}
return ""
}
func (m *HTTPIntegration) GetJoinNotificationUrl() string {
if m != nil {
return m.JoinNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetAckNotificationUrl() string {
if m != nil {
return m.AckNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetErrorNotificationUrl() string {
if m != nil {
return m.ErrorNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetStatusNotificationUrl() string {
if m != nil {
return m.StatusNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetLocationNotificationUrl() string {
if m != nil {
return m.LocationNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetTxAckNotificationUrl() string {
if m != nil {
return m.TxAckNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetIntegrationNotificationUrl() string {
if m != nil {
return m.IntegrationNotificationUrl
}
return ""
}
func (m *HTTPIntegration) GetMarshaler() Marshaler {
if m != nil {
return m.Marshaler
}
return Marshaler_JSON
}
func (m *HTTPIntegration) GetEventEndpointUrl() string {
if m != nil {
return m.EventEndpointUrl
}
return ""
}
type CreateHTTPIntegrationRequest struct {
// Integration object to create.
Integration *HTTPIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateHTTPIntegrationRequest) Reset() { *m = CreateHTTPIntegrationRequest{} }
func (m *CreateHTTPIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateHTTPIntegrationRequest) ProtoMessage() {}
func (*CreateHTTPIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{12}
}
func (m *CreateHTTPIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateHTTPIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateHTTPIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateHTTPIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateHTTPIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateHTTPIntegrationRequest.Merge(m, src)
}
func (m *CreateHTTPIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateHTTPIntegrationRequest.Size(m)
}
func (m *CreateHTTPIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateHTTPIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateHTTPIntegrationRequest proto.InternalMessageInfo
func (m *CreateHTTPIntegrationRequest) GetIntegration() *HTTPIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetHTTPIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetHTTPIntegrationRequest) Reset() { *m = GetHTTPIntegrationRequest{} }
func (m *GetHTTPIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetHTTPIntegrationRequest) ProtoMessage() {}
func (*GetHTTPIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{13}
}
func (m *GetHTTPIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetHTTPIntegrationRequest.Unmarshal(m, b)
}
func (m *GetHTTPIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetHTTPIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetHTTPIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetHTTPIntegrationRequest.Merge(m, src)
}
func (m *GetHTTPIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetHTTPIntegrationRequest.Size(m)
}
func (m *GetHTTPIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetHTTPIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetHTTPIntegrationRequest proto.InternalMessageInfo
func (m *GetHTTPIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetHTTPIntegrationResponse struct {
// Integration object.
Integration *HTTPIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetHTTPIntegrationResponse) Reset() { *m = GetHTTPIntegrationResponse{} }
func (m *GetHTTPIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetHTTPIntegrationResponse) ProtoMessage() {}
func (*GetHTTPIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{14}
}
func (m *GetHTTPIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetHTTPIntegrationResponse.Unmarshal(m, b)
}
func (m *GetHTTPIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetHTTPIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetHTTPIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetHTTPIntegrationResponse.Merge(m, src)
}
func (m *GetHTTPIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetHTTPIntegrationResponse.Size(m)
}
func (m *GetHTTPIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetHTTPIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetHTTPIntegrationResponse proto.InternalMessageInfo
func (m *GetHTTPIntegrationResponse) GetIntegration() *HTTPIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateHTTPIntegrationRequest struct {
// Integration object to update.
Integration *HTTPIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateHTTPIntegrationRequest) Reset() { *m = UpdateHTTPIntegrationRequest{} }
func (m *UpdateHTTPIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateHTTPIntegrationRequest) ProtoMessage() {}
func (*UpdateHTTPIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{15}
}
func (m *UpdateHTTPIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateHTTPIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateHTTPIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateHTTPIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateHTTPIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateHTTPIntegrationRequest.Merge(m, src)
}
func (m *UpdateHTTPIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateHTTPIntegrationRequest.Size(m)
}
func (m *UpdateHTTPIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateHTTPIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateHTTPIntegrationRequest proto.InternalMessageInfo
func (m *UpdateHTTPIntegrationRequest) GetIntegration() *HTTPIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteHTTPIntegrationRequest struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteHTTPIntegrationRequest) Reset() { *m = DeleteHTTPIntegrationRequest{} }
func (m *DeleteHTTPIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteHTTPIntegrationRequest) ProtoMessage() {}
func (*DeleteHTTPIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{16}
}
func (m *DeleteHTTPIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteHTTPIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteHTTPIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteHTTPIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteHTTPIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteHTTPIntegrationRequest.Merge(m, src)
}
func (m *DeleteHTTPIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteHTTPIntegrationRequest.Size(m)
}
func (m *DeleteHTTPIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteHTTPIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteHTTPIntegrationRequest proto.InternalMessageInfo
func (m *DeleteHTTPIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type ListIntegrationRequest struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListIntegrationRequest) Reset() { *m = ListIntegrationRequest{} }
func (m *ListIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*ListIntegrationRequest) ProtoMessage() {}
func (*ListIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{17}
}
func (m *ListIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListIntegrationRequest.Unmarshal(m, b)
}
func (m *ListIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *ListIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListIntegrationRequest.Merge(m, src)
}
func (m *ListIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_ListIntegrationRequest.Size(m)
}
func (m *ListIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListIntegrationRequest proto.InternalMessageInfo
func (m *ListIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type IntegrationListItem struct {
// Integration kind.
Kind IntegrationKind `protobuf:"varint,1,opt,name=kind,proto3,enum=api.IntegrationKind" json:"kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IntegrationListItem) Reset() { *m = IntegrationListItem{} }
func (m *IntegrationListItem) String() string { return proto.CompactTextString(m) }
func (*IntegrationListItem) ProtoMessage() {}
func (*IntegrationListItem) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{18}
}
func (m *IntegrationListItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IntegrationListItem.Unmarshal(m, b)
}
func (m *IntegrationListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IntegrationListItem.Marshal(b, m, deterministic)
}
func (m *IntegrationListItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_IntegrationListItem.Merge(m, src)
}
func (m *IntegrationListItem) XXX_Size() int {
return xxx_messageInfo_IntegrationListItem.Size(m)
}
func (m *IntegrationListItem) XXX_DiscardUnknown() {
xxx_messageInfo_IntegrationListItem.DiscardUnknown(m)
}
var xxx_messageInfo_IntegrationListItem proto.InternalMessageInfo
func (m *IntegrationListItem) GetKind() IntegrationKind {
if m != nil {
return m.Kind
}
return IntegrationKind_HTTP
}
type ListIntegrationResponse struct {
// Total number of integrations available within the result-set.
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// Integrations within result-set.
Result []*IntegrationListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListIntegrationResponse) Reset() { *m = ListIntegrationResponse{} }
func (m *ListIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*ListIntegrationResponse) ProtoMessage() {}
func (*ListIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{19}
}
func (m *ListIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListIntegrationResponse.Unmarshal(m, b)
}
func (m *ListIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *ListIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListIntegrationResponse.Merge(m, src)
}
func (m *ListIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_ListIntegrationResponse.Size(m)
}
func (m *ListIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListIntegrationResponse proto.InternalMessageInfo
func (m *ListIntegrationResponse) GetTotalCount() int64 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *ListIntegrationResponse) GetResult() []*IntegrationListItem {
if m != nil {
return m.Result
}
return nil
}
type InfluxDBIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// InfluxDB API write endpoint (e.g. http://localhost:8086/write).
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// InfluxDB database name. (InfluxDB v1)
Db string `protobuf:"bytes,3,opt,name=db,proto3" json:"db,omitempty"`
// InfluxDB username. (InfluxDB v1)
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
// InfluxDB password. (InfluxDB v1)
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
// InfluxDB retention policy name. (InfluxDB v1)
RetentionPolicyName string `protobuf:"bytes,6,opt,name=retention_policy_name,json=retentionPolicyName,proto3" json:"retention_policy_name,omitempty"`
// InfluxDB timestamp precision (InfluxDB v1).
Precision InfluxDBPrecision `protobuf:"varint,7,opt,name=precision,proto3,enum=api.InfluxDBPrecision" json:"precision,omitempty"`
// InfluxDB version.
Version InfluxDBVersion `protobuf:"varint,8,opt,name=version,proto3,enum=api.InfluxDBVersion" json:"version,omitempty"`
// Token. (InfluxDB v2)
Token string `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"`
// Organization. (InfluxDB v2)
Organization string `protobuf:"bytes,10,opt,name=organization,proto3" json:"organization,omitempty"`
// Bucket. (InfluxDB v2)
Bucket string `protobuf:"bytes,11,opt,name=bucket,proto3" json:"bucket,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfluxDBIntegration) Reset() { *m = InfluxDBIntegration{} }
func (m *InfluxDBIntegration) String() string { return proto.CompactTextString(m) }
func (*InfluxDBIntegration) ProtoMessage() {}
func (*InfluxDBIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{20}
}
func (m *InfluxDBIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfluxDBIntegration.Unmarshal(m, b)
}
func (m *InfluxDBIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfluxDBIntegration.Marshal(b, m, deterministic)
}
func (m *InfluxDBIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfluxDBIntegration.Merge(m, src)
}
func (m *InfluxDBIntegration) XXX_Size() int {
return xxx_messageInfo_InfluxDBIntegration.Size(m)
}
func (m *InfluxDBIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_InfluxDBIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_InfluxDBIntegration proto.InternalMessageInfo
func (m *InfluxDBIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *InfluxDBIntegration) GetEndpoint() string {
if m != nil {
return m.Endpoint
}
return ""
}
func (m *InfluxDBIntegration) GetDb() string {
if m != nil {
return m.Db
}
return ""
}
func (m *InfluxDBIntegration) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *InfluxDBIntegration) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *InfluxDBIntegration) GetRetentionPolicyName() string {
if m != nil {
return m.RetentionPolicyName
}
return ""
}
func (m *InfluxDBIntegration) GetPrecision() InfluxDBPrecision {
if m != nil {
return m.Precision
}
return InfluxDBPrecision_NS
}
func (m *InfluxDBIntegration) GetVersion() InfluxDBVersion {
if m != nil {
return m.Version
}
return InfluxDBVersion_INFLUXDB_1
}
func (m *InfluxDBIntegration) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *InfluxDBIntegration) GetOrganization() string {
if m != nil {
return m.Organization
}
return ""
}
func (m *InfluxDBIntegration) GetBucket() string {
if m != nil {
return m.Bucket
}
return ""
}
type CreateInfluxDBIntegrationRequest struct {
// Integration object to create.
Integration *InfluxDBIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateInfluxDBIntegrationRequest) Reset() { *m = CreateInfluxDBIntegrationRequest{} }
func (m *CreateInfluxDBIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateInfluxDBIntegrationRequest) ProtoMessage() {}
func (*CreateInfluxDBIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{21}
}
func (m *CreateInfluxDBIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateInfluxDBIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateInfluxDBIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateInfluxDBIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateInfluxDBIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateInfluxDBIntegrationRequest.Merge(m, src)
}
func (m *CreateInfluxDBIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateInfluxDBIntegrationRequest.Size(m)
}
func (m *CreateInfluxDBIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateInfluxDBIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateInfluxDBIntegrationRequest proto.InternalMessageInfo
func (m *CreateInfluxDBIntegrationRequest) GetIntegration() *InfluxDBIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetInfluxDBIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetInfluxDBIntegrationRequest) Reset() { *m = GetInfluxDBIntegrationRequest{} }
func (m *GetInfluxDBIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetInfluxDBIntegrationRequest) ProtoMessage() {}
func (*GetInfluxDBIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{22}
}
func (m *GetInfluxDBIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetInfluxDBIntegrationRequest.Unmarshal(m, b)
}
func (m *GetInfluxDBIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetInfluxDBIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetInfluxDBIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetInfluxDBIntegrationRequest.Merge(m, src)
}
func (m *GetInfluxDBIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetInfluxDBIntegrationRequest.Size(m)
}
func (m *GetInfluxDBIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetInfluxDBIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetInfluxDBIntegrationRequest proto.InternalMessageInfo
func (m *GetInfluxDBIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetInfluxDBIntegrationResponse struct {
// Integration object.
Integration *InfluxDBIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetInfluxDBIntegrationResponse) Reset() { *m = GetInfluxDBIntegrationResponse{} }
func (m *GetInfluxDBIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetInfluxDBIntegrationResponse) ProtoMessage() {}
func (*GetInfluxDBIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{23}
}
func (m *GetInfluxDBIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetInfluxDBIntegrationResponse.Unmarshal(m, b)
}
func (m *GetInfluxDBIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetInfluxDBIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetInfluxDBIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetInfluxDBIntegrationResponse.Merge(m, src)
}
func (m *GetInfluxDBIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetInfluxDBIntegrationResponse.Size(m)
}
func (m *GetInfluxDBIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetInfluxDBIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetInfluxDBIntegrationResponse proto.InternalMessageInfo
func (m *GetInfluxDBIntegrationResponse) GetIntegration() *InfluxDBIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateInfluxDBIntegrationRequest struct {
// Integration object.
Integration *InfluxDBIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateInfluxDBIntegrationRequest) Reset() { *m = UpdateInfluxDBIntegrationRequest{} }
func (m *UpdateInfluxDBIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateInfluxDBIntegrationRequest) ProtoMessage() {}
func (*UpdateInfluxDBIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{24}
}
func (m *UpdateInfluxDBIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateInfluxDBIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateInfluxDBIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateInfluxDBIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateInfluxDBIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateInfluxDBIntegrationRequest.Merge(m, src)
}
func (m *UpdateInfluxDBIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateInfluxDBIntegrationRequest.Size(m)
}
func (m *UpdateInfluxDBIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateInfluxDBIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateInfluxDBIntegrationRequest proto.InternalMessageInfo
func (m *UpdateInfluxDBIntegrationRequest) GetIntegration() *InfluxDBIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteInfluxDBIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteInfluxDBIntegrationRequest) Reset() { *m = DeleteInfluxDBIntegrationRequest{} }
func (m *DeleteInfluxDBIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteInfluxDBIntegrationRequest) ProtoMessage() {}
func (*DeleteInfluxDBIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{25}
}
func (m *DeleteInfluxDBIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteInfluxDBIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteInfluxDBIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteInfluxDBIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteInfluxDBIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteInfluxDBIntegrationRequest.Merge(m, src)
}
func (m *DeleteInfluxDBIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteInfluxDBIntegrationRequest.Size(m)
}
func (m *DeleteInfluxDBIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteInfluxDBIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteInfluxDBIntegrationRequest proto.InternalMessageInfo
func (m *DeleteInfluxDBIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type ThingsBoardIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// ThingsBoard server endpoint, e.g. https://example.com
Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ThingsBoardIntegration) Reset() { *m = ThingsBoardIntegration{} }
func (m *ThingsBoardIntegration) String() string { return proto.CompactTextString(m) }
func (*ThingsBoardIntegration) ProtoMessage() {}
func (*ThingsBoardIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{26}
}
func (m *ThingsBoardIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ThingsBoardIntegration.Unmarshal(m, b)
}
func (m *ThingsBoardIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ThingsBoardIntegration.Marshal(b, m, deterministic)
}
func (m *ThingsBoardIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_ThingsBoardIntegration.Merge(m, src)
}
func (m *ThingsBoardIntegration) XXX_Size() int {
return xxx_messageInfo_ThingsBoardIntegration.Size(m)
}
func (m *ThingsBoardIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_ThingsBoardIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_ThingsBoardIntegration proto.InternalMessageInfo
func (m *ThingsBoardIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *ThingsBoardIntegration) GetServer() string {
if m != nil {
return m.Server
}
return ""
}
type CreateThingsBoardIntegrationRequest struct {
// Integration object to create.
Integration *ThingsBoardIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateThingsBoardIntegrationRequest) Reset() { *m = CreateThingsBoardIntegrationRequest{} }
func (m *CreateThingsBoardIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateThingsBoardIntegrationRequest) ProtoMessage() {}
func (*CreateThingsBoardIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{27}
}
func (m *CreateThingsBoardIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateThingsBoardIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateThingsBoardIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateThingsBoardIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateThingsBoardIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateThingsBoardIntegrationRequest.Merge(m, src)
}
func (m *CreateThingsBoardIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateThingsBoardIntegrationRequest.Size(m)
}
func (m *CreateThingsBoardIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateThingsBoardIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateThingsBoardIntegrationRequest proto.InternalMessageInfo
func (m *CreateThingsBoardIntegrationRequest) GetIntegration() *ThingsBoardIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetThingsBoardIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetThingsBoardIntegrationRequest) Reset() { *m = GetThingsBoardIntegrationRequest{} }
func (m *GetThingsBoardIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetThingsBoardIntegrationRequest) ProtoMessage() {}
func (*GetThingsBoardIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{28}
}
func (m *GetThingsBoardIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetThingsBoardIntegrationRequest.Unmarshal(m, b)
}
func (m *GetThingsBoardIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetThingsBoardIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetThingsBoardIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetThingsBoardIntegrationRequest.Merge(m, src)
}
func (m *GetThingsBoardIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetThingsBoardIntegrationRequest.Size(m)
}
func (m *GetThingsBoardIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetThingsBoardIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetThingsBoardIntegrationRequest proto.InternalMessageInfo
func (m *GetThingsBoardIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetThingsBoardIntegrationResponse struct {
// Integration object.
Integration *ThingsBoardIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetThingsBoardIntegrationResponse) Reset() { *m = GetThingsBoardIntegrationResponse{} }
func (m *GetThingsBoardIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetThingsBoardIntegrationResponse) ProtoMessage() {}
func (*GetThingsBoardIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{29}
}
func (m *GetThingsBoardIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetThingsBoardIntegrationResponse.Unmarshal(m, b)
}
func (m *GetThingsBoardIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetThingsBoardIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetThingsBoardIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetThingsBoardIntegrationResponse.Merge(m, src)
}
func (m *GetThingsBoardIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetThingsBoardIntegrationResponse.Size(m)
}
func (m *GetThingsBoardIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetThingsBoardIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetThingsBoardIntegrationResponse proto.InternalMessageInfo
func (m *GetThingsBoardIntegrationResponse) GetIntegration() *ThingsBoardIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateThingsBoardIntegrationRequest struct {
// Integration object.
Integration *ThingsBoardIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateThingsBoardIntegrationRequest) Reset() { *m = UpdateThingsBoardIntegrationRequest{} }
func (m *UpdateThingsBoardIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateThingsBoardIntegrationRequest) ProtoMessage() {}
func (*UpdateThingsBoardIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{30}
}
func (m *UpdateThingsBoardIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateThingsBoardIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateThingsBoardIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateThingsBoardIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateThingsBoardIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateThingsBoardIntegrationRequest.Merge(m, src)
}
func (m *UpdateThingsBoardIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateThingsBoardIntegrationRequest.Size(m)
}
func (m *UpdateThingsBoardIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateThingsBoardIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateThingsBoardIntegrationRequest proto.InternalMessageInfo
func (m *UpdateThingsBoardIntegrationRequest) GetIntegration() *ThingsBoardIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteThingsBoardIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteThingsBoardIntegrationRequest) Reset() { *m = DeleteThingsBoardIntegrationRequest{} }
func (m *DeleteThingsBoardIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteThingsBoardIntegrationRequest) ProtoMessage() {}
func (*DeleteThingsBoardIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{31}
}
func (m *DeleteThingsBoardIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteThingsBoardIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteThingsBoardIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteThingsBoardIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteThingsBoardIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteThingsBoardIntegrationRequest.Merge(m, src)
}
func (m *DeleteThingsBoardIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteThingsBoardIntegrationRequest.Size(m)
}
func (m *DeleteThingsBoardIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteThingsBoardIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteThingsBoardIntegrationRequest proto.InternalMessageInfo
func (m *DeleteThingsBoardIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type MyDevicesIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// MyDevices API endpoint.
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MyDevicesIntegration) Reset() { *m = MyDevicesIntegration{} }
func (m *MyDevicesIntegration) String() string { return proto.CompactTextString(m) }
func (*MyDevicesIntegration) ProtoMessage() {}
func (*MyDevicesIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{32}
}
func (m *MyDevicesIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MyDevicesIntegration.Unmarshal(m, b)
}
func (m *MyDevicesIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MyDevicesIntegration.Marshal(b, m, deterministic)
}
func (m *MyDevicesIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_MyDevicesIntegration.Merge(m, src)
}
func (m *MyDevicesIntegration) XXX_Size() int {
return xxx_messageInfo_MyDevicesIntegration.Size(m)
}
func (m *MyDevicesIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_MyDevicesIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_MyDevicesIntegration proto.InternalMessageInfo
func (m *MyDevicesIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *MyDevicesIntegration) GetEndpoint() string {
if m != nil {
return m.Endpoint
}
return ""
}
type CreateMyDevicesIntegrationRequest struct {
// Integration object to create.
Integration *MyDevicesIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateMyDevicesIntegrationRequest) Reset() { *m = CreateMyDevicesIntegrationRequest{} }
func (m *CreateMyDevicesIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateMyDevicesIntegrationRequest) ProtoMessage() {}
func (*CreateMyDevicesIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{33}
}
func (m *CreateMyDevicesIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateMyDevicesIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateMyDevicesIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateMyDevicesIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateMyDevicesIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateMyDevicesIntegrationRequest.Merge(m, src)
}
func (m *CreateMyDevicesIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateMyDevicesIntegrationRequest.Size(m)
}
func (m *CreateMyDevicesIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateMyDevicesIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateMyDevicesIntegrationRequest proto.InternalMessageInfo
func (m *CreateMyDevicesIntegrationRequest) GetIntegration() *MyDevicesIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetMyDevicesIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMyDevicesIntegrationRequest) Reset() { *m = GetMyDevicesIntegrationRequest{} }
func (m *GetMyDevicesIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetMyDevicesIntegrationRequest) ProtoMessage() {}
func (*GetMyDevicesIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{34}
}
func (m *GetMyDevicesIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetMyDevicesIntegrationRequest.Unmarshal(m, b)
}
func (m *GetMyDevicesIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetMyDevicesIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetMyDevicesIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMyDevicesIntegrationRequest.Merge(m, src)
}
func (m *GetMyDevicesIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetMyDevicesIntegrationRequest.Size(m)
}
func (m *GetMyDevicesIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetMyDevicesIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetMyDevicesIntegrationRequest proto.InternalMessageInfo
func (m *GetMyDevicesIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetMyDevicesIntegrationResponse struct {
// Integration object.
Integration *MyDevicesIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMyDevicesIntegrationResponse) Reset() { *m = GetMyDevicesIntegrationResponse{} }
func (m *GetMyDevicesIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetMyDevicesIntegrationResponse) ProtoMessage() {}
func (*GetMyDevicesIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{35}
}
func (m *GetMyDevicesIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetMyDevicesIntegrationResponse.Unmarshal(m, b)
}
func (m *GetMyDevicesIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetMyDevicesIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetMyDevicesIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMyDevicesIntegrationResponse.Merge(m, src)
}
func (m *GetMyDevicesIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetMyDevicesIntegrationResponse.Size(m)
}
func (m *GetMyDevicesIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetMyDevicesIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetMyDevicesIntegrationResponse proto.InternalMessageInfo
func (m *GetMyDevicesIntegrationResponse) GetIntegration() *MyDevicesIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateMyDevicesIntegrationRequest struct {
// Integration object.
Integration *MyDevicesIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateMyDevicesIntegrationRequest) Reset() { *m = UpdateMyDevicesIntegrationRequest{} }
func (m *UpdateMyDevicesIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateMyDevicesIntegrationRequest) ProtoMessage() {}
func (*UpdateMyDevicesIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{36}
}
func (m *UpdateMyDevicesIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateMyDevicesIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateMyDevicesIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateMyDevicesIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateMyDevicesIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateMyDevicesIntegrationRequest.Merge(m, src)
}
func (m *UpdateMyDevicesIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateMyDevicesIntegrationRequest.Size(m)
}
func (m *UpdateMyDevicesIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateMyDevicesIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateMyDevicesIntegrationRequest proto.InternalMessageInfo
func (m *UpdateMyDevicesIntegrationRequest) GetIntegration() *MyDevicesIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteMyDevicesIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteMyDevicesIntegrationRequest) Reset() { *m = DeleteMyDevicesIntegrationRequest{} }
func (m *DeleteMyDevicesIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteMyDevicesIntegrationRequest) ProtoMessage() {}
func (*DeleteMyDevicesIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{37}
}
func (m *DeleteMyDevicesIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteMyDevicesIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteMyDevicesIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteMyDevicesIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteMyDevicesIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteMyDevicesIntegrationRequest.Merge(m, src)
}
func (m *DeleteMyDevicesIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteMyDevicesIntegrationRequest.Size(m)
}
func (m *DeleteMyDevicesIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteMyDevicesIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteMyDevicesIntegrationRequest proto.InternalMessageInfo
func (m *DeleteMyDevicesIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type LoRaCloudIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Geolocation enabled.
Geolocation bool `protobuf:"varint,2,opt,name=geolocation,proto3" json:"geolocation,omitempty"`
// Geolocation token.
// This token can be obtained from the LoRa Cloud console.
GeolocationToken string `protobuf:"bytes,3,opt,name=geolocation_token,json=geolocationToken,proto3" json:"geolocation_token,omitempty"`
// Geolocation buffer TTL (in seconds).
// When > 0, uplink RX meta-data will be stored in a buffer so that
// the meta-data of multiple uplinks can be used for geolocation.
GeolocationBufferTtl uint32 `protobuf:"varint,4,opt,name=geolocation_buffer_ttl,json=geolocationBufferTTL,proto3" json:"geolocation_buffer_ttl,omitempty"`
// Geolocation minimum buffer size.
// When > 0, geolocation will only be performed when the buffer has
// at least the given size.
GeolocationMinBufferSize uint32 `protobuf:"varint,5,opt,name=geolocation_min_buffer_size,json=geolocationMinBufferSize,proto3" json:"geolocation_min_buffer_size,omitempty"`
// TDOA based geolocation is enabled.
GeolocationTdoa bool `protobuf:"varint,6,opt,name=geolocation_tdoa,json=geolocationTDOA,proto3" json:"geolocation_tdoa,omitempty"`
// RSSI based geolocation is enabled.
GeolocationRssi bool `protobuf:"varint,7,opt,name=geolocation_rssi,json=geolocationRSSI,proto3" json:"geolocation_rssi,omitempty"`
// GNSS based geolocation is enabled (LR1110).
GeolocationGnss bool `protobuf:"varint,8,opt,name=geolocation_gnss,json=geolocationGNSS,proto3" json:"geolocation_gnss,omitempty"`
// GNSS payload field.
// This holds the name of the field in the decoded payload object which
// contains the GNSS payload bytes.
GeolocationGnssPayloadField string `protobuf:"bytes,9,opt,name=geolocation_gnss_payload_field,json=geolocationGNSSPayloadField,proto3" json:"geolocation_gnss_payload_field,omitempty"`
// GNSS use RX time.
// In case this is set to true, the resolver will use the RX time of the
// network instead of the timestamp included in the LR1110 payload.
GeolocationGnssUseRxTime bool `protobuf:"varint,10,opt,name=geolocation_gnss_use_rx_time,json=geolocationGNSSUseRxTime,proto3" json:"geolocation_gnss_use_rx_time,omitempty"`
// Wifi based geolocation is enabled.
GeolocationWifi bool `protobuf:"varint,11,opt,name=geolocation_wifi,json=geolocationWifi,proto3" json:"geolocation_wifi,omitempty"`
// Wifi payload field.
// This holds the name of the field in the decoded payload object which
// contains an array of objects with the following fields:
// * macAddress - e.g. 01:23:45:67:89:ab
// * signalStrength - e.g. -51 (optional)
GeolocationWifiPayloadField string `protobuf:"bytes,12,opt,name=geolocation_wifi_payload_field,json=geolocationWifiPayloadField,proto3" json:"geolocation_wifi_payload_field,omitempty"`
// Device Application Services enabled.
Das bool `protobuf:"varint,13,opt,name=das,proto3" json:"das,omitempty"`
// Device Application Services token.
// This token can be obtained from the LoRa Cloud console.
DasToken string `protobuf:"bytes,14,opt,name=das_token,json=dasToken,proto3" json:"das_token,omitempty"`
// Device Application Services modem port (FPort).
// ChirpStack Application Server will only forward the FRMPayload to DAS
// when the uplink FPort is equal to this value.
DasModemPort uint32 `protobuf:"varint,15,opt,name=das_modem_port,json=dasModemPort,proto3" json:"das_modem_port,omitempty"`
// Device Application Services GNSS port (FPort).
// ChirpStack Application Server will forward the FRMPayload to DAS when
// as GNSS payload when the uplink FPort is equal to this value.
DasGnssPort uint32 `protobuf:"varint,16,opt,name=das_gnss_port,json=dasGNSSPort,proto3" json:"das_gnss_port,omitempty"`
// Device Application Services GNSS use RX time.
// In case this is set to true, the DAS resolver will use the RX time of the
// network instead of the timestamp included in the LR1110 payload.
DasGnssUseRxTime bool `protobuf:"varint,17,opt,name=das_gnss_use_rx_time,json=dasGNSSUseRxTime,proto3" json:"das_gnss_use_rx_time,omitempty"`
// Device Application Services streaming geoloc work-around.
// This is a temporarily work-around for processing streaming geolocation
// data. When enabled, stream records (expected in TLV format) are scanned
// for GNSS data (0x06 or 0x07). If found, the ChirpStack Application Server
// will make an additional call to the DAS API for resolving the location
// using the detected payload.
DasStreamingGeolocWorkaround bool `protobuf:"varint,18,opt,name=das_streaming_geoloc_workaround,json=dasStreamingGeolocWorkaround,proto3" json:"das_streaming_geoloc_workaround,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoRaCloudIntegration) Reset() { *m = LoRaCloudIntegration{} }
func (m *LoRaCloudIntegration) String() string { return proto.CompactTextString(m) }
func (*LoRaCloudIntegration) ProtoMessage() {}
func (*LoRaCloudIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{38}
}
func (m *LoRaCloudIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoRaCloudIntegration.Unmarshal(m, b)
}
func (m *LoRaCloudIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoRaCloudIntegration.Marshal(b, m, deterministic)
}
func (m *LoRaCloudIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoRaCloudIntegration.Merge(m, src)
}
func (m *LoRaCloudIntegration) XXX_Size() int {
return xxx_messageInfo_LoRaCloudIntegration.Size(m)
}
func (m *LoRaCloudIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_LoRaCloudIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_LoRaCloudIntegration proto.InternalMessageInfo
func (m *LoRaCloudIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *LoRaCloudIntegration) GetGeolocation() bool {
if m != nil {
return m.Geolocation
}
return false
}
func (m *LoRaCloudIntegration) GetGeolocationToken() string {
if m != nil {
return m.GeolocationToken
}
return ""
}
func (m *LoRaCloudIntegration) GetGeolocationBufferTtl() uint32 {
if m != nil {
return m.GeolocationBufferTtl
}
return 0
}
func (m *LoRaCloudIntegration) GetGeolocationMinBufferSize() uint32 {
if m != nil {
return m.GeolocationMinBufferSize
}
return 0
}
func (m *LoRaCloudIntegration) GetGeolocationTdoa() bool {
if m != nil {
return m.GeolocationTdoa
}
return false
}
func (m *LoRaCloudIntegration) GetGeolocationRssi() bool {
if m != nil {
return m.GeolocationRssi
}
return false
}
func (m *LoRaCloudIntegration) GetGeolocationGnss() bool {
if m != nil {
return m.GeolocationGnss
}
return false
}
func (m *LoRaCloudIntegration) GetGeolocationGnssPayloadField() string {
if m != nil {
return m.GeolocationGnssPayloadField
}
return ""
}
func (m *LoRaCloudIntegration) GetGeolocationGnssUseRxTime() bool {
if m != nil {
return m.GeolocationGnssUseRxTime
}
return false
}
func (m *LoRaCloudIntegration) GetGeolocationWifi() bool {
if m != nil {
return m.GeolocationWifi
}
return false
}
func (m *LoRaCloudIntegration) GetGeolocationWifiPayloadField() string {
if m != nil {
return m.GeolocationWifiPayloadField
}
return ""
}
func (m *LoRaCloudIntegration) GetDas() bool {
if m != nil {
return m.Das
}
return false
}
func (m *LoRaCloudIntegration) GetDasToken() string {
if m != nil {
return m.DasToken
}
return ""
}
func (m *LoRaCloudIntegration) GetDasModemPort() uint32 {
if m != nil {
return m.DasModemPort
}
return 0
}
func (m *LoRaCloudIntegration) GetDasGnssPort() uint32 {
if m != nil {
return m.DasGnssPort
}
return 0
}
func (m *LoRaCloudIntegration) GetDasGnssUseRxTime() bool {
if m != nil {
return m.DasGnssUseRxTime
}
return false
}
func (m *LoRaCloudIntegration) GetDasStreamingGeolocWorkaround() bool {
if m != nil {
return m.DasStreamingGeolocWorkaround
}
return false
}
type CreateLoRaCloudIntegrationRequest struct {
// Integration object to create.
Integration *LoRaCloudIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateLoRaCloudIntegrationRequest) Reset() { *m = CreateLoRaCloudIntegrationRequest{} }
func (m *CreateLoRaCloudIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateLoRaCloudIntegrationRequest) ProtoMessage() {}
func (*CreateLoRaCloudIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{39}
}
func (m *CreateLoRaCloudIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateLoRaCloudIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateLoRaCloudIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateLoRaCloudIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateLoRaCloudIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateLoRaCloudIntegrationRequest.Merge(m, src)
}
func (m *CreateLoRaCloudIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateLoRaCloudIntegrationRequest.Size(m)
}
func (m *CreateLoRaCloudIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateLoRaCloudIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateLoRaCloudIntegrationRequest proto.InternalMessageInfo
func (m *CreateLoRaCloudIntegrationRequest) GetIntegration() *LoRaCloudIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetLoRaCloudIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoRaCloudIntegrationRequest) Reset() { *m = GetLoRaCloudIntegrationRequest{} }
func (m *GetLoRaCloudIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoRaCloudIntegrationRequest) ProtoMessage() {}
func (*GetLoRaCloudIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{40}
}
func (m *GetLoRaCloudIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoRaCloudIntegrationRequest.Unmarshal(m, b)
}
func (m *GetLoRaCloudIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoRaCloudIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetLoRaCloudIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoRaCloudIntegrationRequest.Merge(m, src)
}
func (m *GetLoRaCloudIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetLoRaCloudIntegrationRequest.Size(m)
}
func (m *GetLoRaCloudIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoRaCloudIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoRaCloudIntegrationRequest proto.InternalMessageInfo
func (m *GetLoRaCloudIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetLoRaCloudIntegrationResponse struct {
// Integration object.
Integration *LoRaCloudIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoRaCloudIntegrationResponse) Reset() { *m = GetLoRaCloudIntegrationResponse{} }
func (m *GetLoRaCloudIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetLoRaCloudIntegrationResponse) ProtoMessage() {}
func (*GetLoRaCloudIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{41}
}
func (m *GetLoRaCloudIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoRaCloudIntegrationResponse.Unmarshal(m, b)
}
func (m *GetLoRaCloudIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoRaCloudIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetLoRaCloudIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoRaCloudIntegrationResponse.Merge(m, src)
}
func (m *GetLoRaCloudIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetLoRaCloudIntegrationResponse.Size(m)
}
func (m *GetLoRaCloudIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoRaCloudIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoRaCloudIntegrationResponse proto.InternalMessageInfo
func (m *GetLoRaCloudIntegrationResponse) GetIntegration() *LoRaCloudIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateLoRaCloudIntegrationRequest struct {
// Integration object.
Integration *LoRaCloudIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateLoRaCloudIntegrationRequest) Reset() { *m = UpdateLoRaCloudIntegrationRequest{} }
func (m *UpdateLoRaCloudIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateLoRaCloudIntegrationRequest) ProtoMessage() {}
func (*UpdateLoRaCloudIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{42}
}
func (m *UpdateLoRaCloudIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateLoRaCloudIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateLoRaCloudIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateLoRaCloudIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateLoRaCloudIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateLoRaCloudIntegrationRequest.Merge(m, src)
}
func (m *UpdateLoRaCloudIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateLoRaCloudIntegrationRequest.Size(m)
}
func (m *UpdateLoRaCloudIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateLoRaCloudIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateLoRaCloudIntegrationRequest proto.InternalMessageInfo
func (m *UpdateLoRaCloudIntegrationRequest) GetIntegration() *LoRaCloudIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteLoRaCloudIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteLoRaCloudIntegrationRequest) Reset() { *m = DeleteLoRaCloudIntegrationRequest{} }
func (m *DeleteLoRaCloudIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteLoRaCloudIntegrationRequest) ProtoMessage() {}
func (*DeleteLoRaCloudIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{43}
}
func (m *DeleteLoRaCloudIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteLoRaCloudIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteLoRaCloudIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteLoRaCloudIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteLoRaCloudIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteLoRaCloudIntegrationRequest.Merge(m, src)
}
func (m *DeleteLoRaCloudIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteLoRaCloudIntegrationRequest.Size(m)
}
func (m *DeleteLoRaCloudIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteLoRaCloudIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteLoRaCloudIntegrationRequest proto.InternalMessageInfo
func (m *DeleteLoRaCloudIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GCPPubSubIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Marshaler.
// This defines the marshaler that is used to encode the event payload.
Marshaler Marshaler `protobuf:"varint,2,opt,name=marshaler,proto3,enum=api.Marshaler" json:"marshaler,omitempty"`
// Credentials file.
// This IAM service-account credentials file (JSON) must have the following
// Pub/Sub roles:
// * Pub/Sub Publisher
CredentialsFile string `protobuf:"bytes,3,opt,name=credentials_file,json=credentialsFile,proto3" json:"credentials_file,omitempty"`
// Project ID.
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectID,proto3" json:"project_id,omitempty"`
// Topic name.
// This is the name of the Pub/Sub topic.
TopicName string `protobuf:"bytes,5,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GCPPubSubIntegration) Reset() { *m = GCPPubSubIntegration{} }
func (m *GCPPubSubIntegration) String() string { return proto.CompactTextString(m) }
func (*GCPPubSubIntegration) ProtoMessage() {}
func (*GCPPubSubIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{44}
}
func (m *GCPPubSubIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GCPPubSubIntegration.Unmarshal(m, b)
}
func (m *GCPPubSubIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GCPPubSubIntegration.Marshal(b, m, deterministic)
}
func (m *GCPPubSubIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_GCPPubSubIntegration.Merge(m, src)
}
func (m *GCPPubSubIntegration) XXX_Size() int {
return xxx_messageInfo_GCPPubSubIntegration.Size(m)
}
func (m *GCPPubSubIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_GCPPubSubIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_GCPPubSubIntegration proto.InternalMessageInfo
func (m *GCPPubSubIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *GCPPubSubIntegration) GetMarshaler() Marshaler {
if m != nil {
return m.Marshaler
}
return Marshaler_JSON
}
func (m *GCPPubSubIntegration) GetCredentialsFile() string {
if m != nil {
return m.CredentialsFile
}
return ""
}
func (m *GCPPubSubIntegration) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *GCPPubSubIntegration) GetTopicName() string {
if m != nil {
return m.TopicName
}
return ""
}
type CreateGCPPubSubIntegrationRequest struct {
// Integration object to create.
Integration *GCPPubSubIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateGCPPubSubIntegrationRequest) Reset() { *m = CreateGCPPubSubIntegrationRequest{} }
func (m *CreateGCPPubSubIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateGCPPubSubIntegrationRequest) ProtoMessage() {}
func (*CreateGCPPubSubIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{45}
}
func (m *CreateGCPPubSubIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateGCPPubSubIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateGCPPubSubIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateGCPPubSubIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateGCPPubSubIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateGCPPubSubIntegrationRequest.Merge(m, src)
}
func (m *CreateGCPPubSubIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateGCPPubSubIntegrationRequest.Size(m)
}
func (m *CreateGCPPubSubIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateGCPPubSubIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateGCPPubSubIntegrationRequest proto.InternalMessageInfo
func (m *CreateGCPPubSubIntegrationRequest) GetIntegration() *GCPPubSubIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetGCPPubSubIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGCPPubSubIntegrationRequest) Reset() { *m = GetGCPPubSubIntegrationRequest{} }
func (m *GetGCPPubSubIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetGCPPubSubIntegrationRequest) ProtoMessage() {}
func (*GetGCPPubSubIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{46}
}
func (m *GetGCPPubSubIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGCPPubSubIntegrationRequest.Unmarshal(m, b)
}
func (m *GetGCPPubSubIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGCPPubSubIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetGCPPubSubIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGCPPubSubIntegrationRequest.Merge(m, src)
}
func (m *GetGCPPubSubIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetGCPPubSubIntegrationRequest.Size(m)
}
func (m *GetGCPPubSubIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGCPPubSubIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGCPPubSubIntegrationRequest proto.InternalMessageInfo
func (m *GetGCPPubSubIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetGCPPubSubIntegrationResponse struct {
// Integration object.
Integration *GCPPubSubIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGCPPubSubIntegrationResponse) Reset() { *m = GetGCPPubSubIntegrationResponse{} }
func (m *GetGCPPubSubIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetGCPPubSubIntegrationResponse) ProtoMessage() {}
func (*GetGCPPubSubIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{47}
}
func (m *GetGCPPubSubIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGCPPubSubIntegrationResponse.Unmarshal(m, b)
}
func (m *GetGCPPubSubIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGCPPubSubIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetGCPPubSubIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGCPPubSubIntegrationResponse.Merge(m, src)
}
func (m *GetGCPPubSubIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetGCPPubSubIntegrationResponse.Size(m)
}
func (m *GetGCPPubSubIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetGCPPubSubIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetGCPPubSubIntegrationResponse proto.InternalMessageInfo
func (m *GetGCPPubSubIntegrationResponse) GetIntegration() *GCPPubSubIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateGCPPubSubIntegrationRequest struct {
// Integration object to update.
Integration *GCPPubSubIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateGCPPubSubIntegrationRequest) Reset() { *m = UpdateGCPPubSubIntegrationRequest{} }
func (m *UpdateGCPPubSubIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateGCPPubSubIntegrationRequest) ProtoMessage() {}
func (*UpdateGCPPubSubIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{48}
}
func (m *UpdateGCPPubSubIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateGCPPubSubIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateGCPPubSubIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateGCPPubSubIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateGCPPubSubIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateGCPPubSubIntegrationRequest.Merge(m, src)
}
func (m *UpdateGCPPubSubIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateGCPPubSubIntegrationRequest.Size(m)
}
func (m *UpdateGCPPubSubIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateGCPPubSubIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateGCPPubSubIntegrationRequest proto.InternalMessageInfo
func (m *UpdateGCPPubSubIntegrationRequest) GetIntegration() *GCPPubSubIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteGCPPubSubIntegrationRequest struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteGCPPubSubIntegrationRequest) Reset() { *m = DeleteGCPPubSubIntegrationRequest{} }
func (m *DeleteGCPPubSubIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteGCPPubSubIntegrationRequest) ProtoMessage() {}
func (*DeleteGCPPubSubIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{49}
}
func (m *DeleteGCPPubSubIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteGCPPubSubIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteGCPPubSubIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteGCPPubSubIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteGCPPubSubIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteGCPPubSubIntegrationRequest.Merge(m, src)
}
func (m *DeleteGCPPubSubIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteGCPPubSubIntegrationRequest.Size(m)
}
func (m *DeleteGCPPubSubIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteGCPPubSubIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteGCPPubSubIntegrationRequest proto.InternalMessageInfo
func (m *DeleteGCPPubSubIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type AWSSNSIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Marshaler.
// This defines the marshaler that is used to encode the event payload.
Marshaler Marshaler `protobuf:"varint,2,opt,name=marshaler,proto3,enum=api.Marshaler" json:"marshaler,omitempty"`
// AWS region.
Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
// AWS Access Key ID.
AccessKeyId string `protobuf:"bytes,4,opt,name=access_key_id,json=accessKeyID,proto3" json:"access_key_id,omitempty"`
// AWS Secret Access Key.
SecretAccessKey string `protobuf:"bytes,5,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
// Topic ARN.
TopicArn string `protobuf:"bytes,6,opt,name=topic_arn,json=topicARN,proto3" json:"topic_arn,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AWSSNSIntegration) Reset() { *m = AWSSNSIntegration{} }
func (m *AWSSNSIntegration) String() string { return proto.CompactTextString(m) }
func (*AWSSNSIntegration) ProtoMessage() {}
func (*AWSSNSIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{50}
}
func (m *AWSSNSIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AWSSNSIntegration.Unmarshal(m, b)
}
func (m *AWSSNSIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AWSSNSIntegration.Marshal(b, m, deterministic)
}
func (m *AWSSNSIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_AWSSNSIntegration.Merge(m, src)
}
func (m *AWSSNSIntegration) XXX_Size() int {
return xxx_messageInfo_AWSSNSIntegration.Size(m)
}
func (m *AWSSNSIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_AWSSNSIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_AWSSNSIntegration proto.InternalMessageInfo
func (m *AWSSNSIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *AWSSNSIntegration) GetMarshaler() Marshaler {
if m != nil {
return m.Marshaler
}
return Marshaler_JSON
}
func (m *AWSSNSIntegration) GetRegion() string {
if m != nil {
return m.Region
}
return ""
}
func (m *AWSSNSIntegration) GetAccessKeyId() string {
if m != nil {
return m.AccessKeyId
}
return ""
}
func (m *AWSSNSIntegration) GetSecretAccessKey() string {
if m != nil {
return m.SecretAccessKey
}
return ""
}
func (m *AWSSNSIntegration) GetTopicArn() string {
if m != nil {
return m.TopicArn
}
return ""
}
type CreateAWSSNSIntegrationRequest struct {
// Integration object to create.
Integration *AWSSNSIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateAWSSNSIntegrationRequest) Reset() { *m = CreateAWSSNSIntegrationRequest{} }
func (m *CreateAWSSNSIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateAWSSNSIntegrationRequest) ProtoMessage() {}
func (*CreateAWSSNSIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{51}
}
func (m *CreateAWSSNSIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateAWSSNSIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateAWSSNSIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateAWSSNSIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateAWSSNSIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateAWSSNSIntegrationRequest.Merge(m, src)
}
func (m *CreateAWSSNSIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateAWSSNSIntegrationRequest.Size(m)
}
func (m *CreateAWSSNSIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateAWSSNSIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateAWSSNSIntegrationRequest proto.InternalMessageInfo
func (m *CreateAWSSNSIntegrationRequest) GetIntegration() *AWSSNSIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetAWSSNSIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAWSSNSIntegrationRequest) Reset() { *m = GetAWSSNSIntegrationRequest{} }
func (m *GetAWSSNSIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetAWSSNSIntegrationRequest) ProtoMessage() {}
func (*GetAWSSNSIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{52}
}
func (m *GetAWSSNSIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAWSSNSIntegrationRequest.Unmarshal(m, b)
}
func (m *GetAWSSNSIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAWSSNSIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetAWSSNSIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAWSSNSIntegrationRequest.Merge(m, src)
}
func (m *GetAWSSNSIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetAWSSNSIntegrationRequest.Size(m)
}
func (m *GetAWSSNSIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAWSSNSIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAWSSNSIntegrationRequest proto.InternalMessageInfo
func (m *GetAWSSNSIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetAWSSNSIntegrationResponse struct {
// Integration object.
Integration *AWSSNSIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAWSSNSIntegrationResponse) Reset() { *m = GetAWSSNSIntegrationResponse{} }
func (m *GetAWSSNSIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetAWSSNSIntegrationResponse) ProtoMessage() {}
func (*GetAWSSNSIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{53}
}
func (m *GetAWSSNSIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAWSSNSIntegrationResponse.Unmarshal(m, b)
}
func (m *GetAWSSNSIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAWSSNSIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetAWSSNSIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAWSSNSIntegrationResponse.Merge(m, src)
}
func (m *GetAWSSNSIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetAWSSNSIntegrationResponse.Size(m)
}
func (m *GetAWSSNSIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetAWSSNSIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetAWSSNSIntegrationResponse proto.InternalMessageInfo
func (m *GetAWSSNSIntegrationResponse) GetIntegration() *AWSSNSIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateAWSSNSIntegrationRequest struct {
// Integration object to update.
Integration *AWSSNSIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateAWSSNSIntegrationRequest) Reset() { *m = UpdateAWSSNSIntegrationRequest{} }
func (m *UpdateAWSSNSIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateAWSSNSIntegrationRequest) ProtoMessage() {}
func (*UpdateAWSSNSIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{54}
}
func (m *UpdateAWSSNSIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateAWSSNSIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateAWSSNSIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateAWSSNSIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateAWSSNSIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateAWSSNSIntegrationRequest.Merge(m, src)
}
func (m *UpdateAWSSNSIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateAWSSNSIntegrationRequest.Size(m)
}
func (m *UpdateAWSSNSIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateAWSSNSIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateAWSSNSIntegrationRequest proto.InternalMessageInfo
func (m *UpdateAWSSNSIntegrationRequest) GetIntegration() *AWSSNSIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteAWSSNSIntegrationRequest struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAWSSNSIntegrationRequest) Reset() { *m = DeleteAWSSNSIntegrationRequest{} }
func (m *DeleteAWSSNSIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAWSSNSIntegrationRequest) ProtoMessage() {}
func (*DeleteAWSSNSIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{55}
}
func (m *DeleteAWSSNSIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAWSSNSIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteAWSSNSIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAWSSNSIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteAWSSNSIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAWSSNSIntegrationRequest.Merge(m, src)
}
func (m *DeleteAWSSNSIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteAWSSNSIntegrationRequest.Size(m)
}
func (m *DeleteAWSSNSIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAWSSNSIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteAWSSNSIntegrationRequest proto.InternalMessageInfo
func (m *DeleteAWSSNSIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type AzureServiceBusIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Marshaler.
// This defines the marshaler that is used to encode the event payload.
Marshaler Marshaler `protobuf:"varint,2,opt,name=marshaler,proto3,enum=api.Marshaler" json:"marshaler,omitempty"`
// Connection string.
ConnectionString string `protobuf:"bytes,3,opt,name=connection_string,json=connectionString,proto3" json:"connection_string,omitempty"`
// Publish name.
// This is the name of the topic or queue.
PublishName string `protobuf:"bytes,4,opt,name=publish_name,json=publishName,proto3" json:"publish_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AzureServiceBusIntegration) Reset() { *m = AzureServiceBusIntegration{} }
func (m *AzureServiceBusIntegration) String() string { return proto.CompactTextString(m) }
func (*AzureServiceBusIntegration) ProtoMessage() {}
func (*AzureServiceBusIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{56}
}
func (m *AzureServiceBusIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AzureServiceBusIntegration.Unmarshal(m, b)
}
func (m *AzureServiceBusIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AzureServiceBusIntegration.Marshal(b, m, deterministic)
}
func (m *AzureServiceBusIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_AzureServiceBusIntegration.Merge(m, src)
}
func (m *AzureServiceBusIntegration) XXX_Size() int {
return xxx_messageInfo_AzureServiceBusIntegration.Size(m)
}
func (m *AzureServiceBusIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_AzureServiceBusIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_AzureServiceBusIntegration proto.InternalMessageInfo
func (m *AzureServiceBusIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *AzureServiceBusIntegration) GetMarshaler() Marshaler {
if m != nil {
return m.Marshaler
}
return Marshaler_JSON
}
func (m *AzureServiceBusIntegration) GetConnectionString() string {
if m != nil {
return m.ConnectionString
}
return ""
}
func (m *AzureServiceBusIntegration) GetPublishName() string {
if m != nil {
return m.PublishName
}
return ""
}
type CreateAzureServiceBusIntegrationRequest struct {
// Integration object to create.
Integration *AzureServiceBusIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateAzureServiceBusIntegrationRequest) Reset() {
*m = CreateAzureServiceBusIntegrationRequest{}
}
func (m *CreateAzureServiceBusIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateAzureServiceBusIntegrationRequest) ProtoMessage() {}
func (*CreateAzureServiceBusIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{57}
}
func (m *CreateAzureServiceBusIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateAzureServiceBusIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateAzureServiceBusIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateAzureServiceBusIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateAzureServiceBusIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateAzureServiceBusIntegrationRequest.Merge(m, src)
}
func (m *CreateAzureServiceBusIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateAzureServiceBusIntegrationRequest.Size(m)
}
func (m *CreateAzureServiceBusIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateAzureServiceBusIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateAzureServiceBusIntegrationRequest proto.InternalMessageInfo
func (m *CreateAzureServiceBusIntegrationRequest) GetIntegration() *AzureServiceBusIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetAzureServiceBusIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAzureServiceBusIntegrationRequest) Reset() { *m = GetAzureServiceBusIntegrationRequest{} }
func (m *GetAzureServiceBusIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetAzureServiceBusIntegrationRequest) ProtoMessage() {}
func (*GetAzureServiceBusIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{58}
}
func (m *GetAzureServiceBusIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAzureServiceBusIntegrationRequest.Unmarshal(m, b)
}
func (m *GetAzureServiceBusIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAzureServiceBusIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetAzureServiceBusIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAzureServiceBusIntegrationRequest.Merge(m, src)
}
func (m *GetAzureServiceBusIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetAzureServiceBusIntegrationRequest.Size(m)
}
func (m *GetAzureServiceBusIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAzureServiceBusIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAzureServiceBusIntegrationRequest proto.InternalMessageInfo
func (m *GetAzureServiceBusIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetAzureServiceBusIntegrationResponse struct {
// Integration object.
Integration *AzureServiceBusIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAzureServiceBusIntegrationResponse) Reset() { *m = GetAzureServiceBusIntegrationResponse{} }
func (m *GetAzureServiceBusIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetAzureServiceBusIntegrationResponse) ProtoMessage() {}
func (*GetAzureServiceBusIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{59}
}
func (m *GetAzureServiceBusIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAzureServiceBusIntegrationResponse.Unmarshal(m, b)
}
func (m *GetAzureServiceBusIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAzureServiceBusIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetAzureServiceBusIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAzureServiceBusIntegrationResponse.Merge(m, src)
}
func (m *GetAzureServiceBusIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetAzureServiceBusIntegrationResponse.Size(m)
}
func (m *GetAzureServiceBusIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetAzureServiceBusIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetAzureServiceBusIntegrationResponse proto.InternalMessageInfo
func (m *GetAzureServiceBusIntegrationResponse) GetIntegration() *AzureServiceBusIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateAzureServiceBusIntegrationRequest struct {
// Integration object to update.
Integration *AzureServiceBusIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateAzureServiceBusIntegrationRequest) Reset() {
*m = UpdateAzureServiceBusIntegrationRequest{}
}
func (m *UpdateAzureServiceBusIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateAzureServiceBusIntegrationRequest) ProtoMessage() {}
func (*UpdateAzureServiceBusIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{60}
}
func (m *UpdateAzureServiceBusIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateAzureServiceBusIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateAzureServiceBusIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateAzureServiceBusIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateAzureServiceBusIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateAzureServiceBusIntegrationRequest.Merge(m, src)
}
func (m *UpdateAzureServiceBusIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateAzureServiceBusIntegrationRequest.Size(m)
}
func (m *UpdateAzureServiceBusIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateAzureServiceBusIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateAzureServiceBusIntegrationRequest proto.InternalMessageInfo
func (m *UpdateAzureServiceBusIntegrationRequest) GetIntegration() *AzureServiceBusIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteAzureServiceBusIntegrationRequest struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAzureServiceBusIntegrationRequest) Reset() {
*m = DeleteAzureServiceBusIntegrationRequest{}
}
func (m *DeleteAzureServiceBusIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAzureServiceBusIntegrationRequest) ProtoMessage() {}
func (*DeleteAzureServiceBusIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{61}
}
func (m *DeleteAzureServiceBusIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAzureServiceBusIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteAzureServiceBusIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAzureServiceBusIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteAzureServiceBusIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAzureServiceBusIntegrationRequest.Merge(m, src)
}
func (m *DeleteAzureServiceBusIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteAzureServiceBusIntegrationRequest.Size(m)
}
func (m *DeleteAzureServiceBusIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAzureServiceBusIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteAzureServiceBusIntegrationRequest proto.InternalMessageInfo
func (m *DeleteAzureServiceBusIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
// LOCCARTO
type LoccartoIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Loccarto clientkey.
// This token can be obtained from the Loccarto console.
LoccartoClientkey string `protobuf:"bytes,2,opt,name=loccarto_clientkey,json=loccartoClientkey,proto3" json:"loccarto_clientkey,omitempty"`
// TDOA based loccarto is enabled.
LoccartoTdoa bool `protobuf:"varint,3,opt,name=loccarto_tdoa,json=loccartoTDOA,proto3" json:"loccarto_tdoa,omitempty"`
// RSSI based loccarto is enabled.
LoccartoRssi bool `protobuf:"varint,4,opt,name=loccarto_rssi,json=loccartoRSSI,proto3" json:"loccarto_rssi,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoccartoIntegration) Reset() { *m = LoccartoIntegration{} }
func (m *LoccartoIntegration) String() string { return proto.CompactTextString(m) }
func (*LoccartoIntegration) ProtoMessage() {}
func (*LoccartoIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{62}
}
func (m *LoccartoIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoccartoIntegration.Unmarshal(m, b)
}
func (m *LoccartoIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoccartoIntegration.Marshal(b, m, deterministic)
}
func (m *LoccartoIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoccartoIntegration.Merge(m, src)
}
func (m *LoccartoIntegration) XXX_Size() int {
return xxx_messageInfo_LoccartoIntegration.Size(m)
}
func (m *LoccartoIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_LoccartoIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_LoccartoIntegration proto.InternalMessageInfo
func (m *LoccartoIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *LoccartoIntegration) GetLoccartoClientkey() string {
if m != nil {
return m.LoccartoClientkey
}
return ""
}
func (m *LoccartoIntegration) GetLoccartoTdoa() bool {
if m != nil {
return m.LoccartoTdoa
}
return false
}
func (m *LoccartoIntegration) GetLoccartoRssi() bool {
if m != nil {
return m.LoccartoRssi
}
return false
}
type CreateLoccartoIntegrationRequest struct {
// Integration object to create.
Integration *LoccartoIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateLoccartoIntegrationRequest) Reset() { *m = CreateLoccartoIntegrationRequest{} }
func (m *CreateLoccartoIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateLoccartoIntegrationRequest) ProtoMessage() {}
func (*CreateLoccartoIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{63}
}
func (m *CreateLoccartoIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateLoccartoIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateLoccartoIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateLoccartoIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateLoccartoIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateLoccartoIntegrationRequest.Merge(m, src)
}
func (m *CreateLoccartoIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateLoccartoIntegrationRequest.Size(m)
}
func (m *CreateLoccartoIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateLoccartoIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateLoccartoIntegrationRequest proto.InternalMessageInfo
func (m *CreateLoccartoIntegrationRequest) GetIntegration() *LoccartoIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetLoccartoIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoccartoIntegrationRequest) Reset() { *m = GetLoccartoIntegrationRequest{} }
func (m *GetLoccartoIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoccartoIntegrationRequest) ProtoMessage() {}
func (*GetLoccartoIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{64}
}
func (m *GetLoccartoIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoccartoIntegrationRequest.Unmarshal(m, b)
}
func (m *GetLoccartoIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoccartoIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetLoccartoIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoccartoIntegrationRequest.Merge(m, src)
}
func (m *GetLoccartoIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetLoccartoIntegrationRequest.Size(m)
}
func (m *GetLoccartoIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoccartoIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoccartoIntegrationRequest proto.InternalMessageInfo
func (m *GetLoccartoIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetLoccartoIntegrationResponse struct {
// Integration object.
Integration *LoccartoIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoccartoIntegrationResponse) Reset() { *m = GetLoccartoIntegrationResponse{} }
func (m *GetLoccartoIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetLoccartoIntegrationResponse) ProtoMessage() {}
func (*GetLoccartoIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{65}
}
func (m *GetLoccartoIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoccartoIntegrationResponse.Unmarshal(m, b)
}
func (m *GetLoccartoIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoccartoIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetLoccartoIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoccartoIntegrationResponse.Merge(m, src)
}
func (m *GetLoccartoIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetLoccartoIntegrationResponse.Size(m)
}
func (m *GetLoccartoIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoccartoIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoccartoIntegrationResponse proto.InternalMessageInfo
func (m *GetLoccartoIntegrationResponse) GetIntegration() *LoccartoIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateLoccartoIntegrationRequest struct {
// Integration object.
Integration *LoccartoIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateLoccartoIntegrationRequest) Reset() { *m = UpdateLoccartoIntegrationRequest{} }
func (m *UpdateLoccartoIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateLoccartoIntegrationRequest) ProtoMessage() {}
func (*UpdateLoccartoIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{66}
}
func (m *UpdateLoccartoIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateLoccartoIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateLoccartoIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateLoccartoIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateLoccartoIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateLoccartoIntegrationRequest.Merge(m, src)
}
func (m *UpdateLoccartoIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateLoccartoIntegrationRequest.Size(m)
}
func (m *UpdateLoccartoIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateLoccartoIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateLoccartoIntegrationRequest proto.InternalMessageInfo
func (m *UpdateLoccartoIntegrationRequest) GetIntegration() *LoccartoIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteLoccartoIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteLoccartoIntegrationRequest) Reset() { *m = DeleteLoccartoIntegrationRequest{} }
func (m *DeleteLoccartoIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteLoccartoIntegrationRequest) ProtoMessage() {}
func (*DeleteLoccartoIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{67}
}
func (m *DeleteLoccartoIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteLoccartoIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteLoccartoIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteLoccartoIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteLoccartoIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteLoccartoIntegrationRequest.Merge(m, src)
}
func (m *DeleteLoccartoIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteLoccartoIntegrationRequest.Size(m)
}
func (m *DeleteLoccartoIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteLoccartoIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteLoccartoIntegrationRequest proto.InternalMessageInfo
func (m *DeleteLoccartoIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type PilotThingsIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Server URL
Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
// Authentication token
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PilotThingsIntegration) Reset() { *m = PilotThingsIntegration{} }
func (m *PilotThingsIntegration) String() string { return proto.CompactTextString(m) }
func (*PilotThingsIntegration) ProtoMessage() {}
func (*PilotThingsIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{68}
}
func (m *PilotThingsIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PilotThingsIntegration.Unmarshal(m, b)
}
func (m *PilotThingsIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PilotThingsIntegration.Marshal(b, m, deterministic)
}
func (m *PilotThingsIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_PilotThingsIntegration.Merge(m, src)
}
func (m *PilotThingsIntegration) XXX_Size() int {
return xxx_messageInfo_PilotThingsIntegration.Size(m)
}
func (m *PilotThingsIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_PilotThingsIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_PilotThingsIntegration proto.InternalMessageInfo
func (m *PilotThingsIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *PilotThingsIntegration) GetServer() string {
if m != nil {
return m.Server
}
return ""
}
func (m *PilotThingsIntegration) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
type CreatePilotThingsIntegrationRequest struct {
// Integration object to create.
Integration *PilotThingsIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreatePilotThingsIntegrationRequest) Reset() { *m = CreatePilotThingsIntegrationRequest{} }
func (m *CreatePilotThingsIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreatePilotThingsIntegrationRequest) ProtoMessage() {}
func (*CreatePilotThingsIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{69}
}
func (m *CreatePilotThingsIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreatePilotThingsIntegrationRequest.Unmarshal(m, b)
}
func (m *CreatePilotThingsIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreatePilotThingsIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreatePilotThingsIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreatePilotThingsIntegrationRequest.Merge(m, src)
}
func (m *CreatePilotThingsIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreatePilotThingsIntegrationRequest.Size(m)
}
func (m *CreatePilotThingsIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreatePilotThingsIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreatePilotThingsIntegrationRequest proto.InternalMessageInfo
func (m *CreatePilotThingsIntegrationRequest) GetIntegration() *PilotThingsIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetPilotThingsIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPilotThingsIntegrationRequest) Reset() { *m = GetPilotThingsIntegrationRequest{} }
func (m *GetPilotThingsIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetPilotThingsIntegrationRequest) ProtoMessage() {}
func (*GetPilotThingsIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{70}
}
func (m *GetPilotThingsIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPilotThingsIntegrationRequest.Unmarshal(m, b)
}
func (m *GetPilotThingsIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPilotThingsIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetPilotThingsIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPilotThingsIntegrationRequest.Merge(m, src)
}
func (m *GetPilotThingsIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetPilotThingsIntegrationRequest.Size(m)
}
func (m *GetPilotThingsIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetPilotThingsIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetPilotThingsIntegrationRequest proto.InternalMessageInfo
func (m *GetPilotThingsIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetPilotThingsIntegrationResponse struct {
// Integration object.
Integration *PilotThingsIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPilotThingsIntegrationResponse) Reset() { *m = GetPilotThingsIntegrationResponse{} }
func (m *GetPilotThingsIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetPilotThingsIntegrationResponse) ProtoMessage() {}
func (*GetPilotThingsIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{71}
}
func (m *GetPilotThingsIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPilotThingsIntegrationResponse.Unmarshal(m, b)
}
func (m *GetPilotThingsIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPilotThingsIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetPilotThingsIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPilotThingsIntegrationResponse.Merge(m, src)
}
func (m *GetPilotThingsIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetPilotThingsIntegrationResponse.Size(m)
}
func (m *GetPilotThingsIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetPilotThingsIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetPilotThingsIntegrationResponse proto.InternalMessageInfo
func (m *GetPilotThingsIntegrationResponse) GetIntegration() *PilotThingsIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdatePilotThingsIntegrationRequest struct {
// Integration object to update.
Integration *PilotThingsIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdatePilotThingsIntegrationRequest) Reset() { *m = UpdatePilotThingsIntegrationRequest{} }
func (m *UpdatePilotThingsIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdatePilotThingsIntegrationRequest) ProtoMessage() {}
func (*UpdatePilotThingsIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{72}
}
func (m *UpdatePilotThingsIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdatePilotThingsIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdatePilotThingsIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdatePilotThingsIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdatePilotThingsIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdatePilotThingsIntegrationRequest.Merge(m, src)
}
func (m *UpdatePilotThingsIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdatePilotThingsIntegrationRequest.Size(m)
}
func (m *UpdatePilotThingsIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdatePilotThingsIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdatePilotThingsIntegrationRequest proto.InternalMessageInfo
func (m *UpdatePilotThingsIntegrationRequest) GetIntegration() *PilotThingsIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeletePilotThingsIntegrationRequest struct {
// The id of the application.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeletePilotThingsIntegrationRequest) Reset() { *m = DeletePilotThingsIntegrationRequest{} }
func (m *DeletePilotThingsIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePilotThingsIntegrationRequest) ProtoMessage() {}
func (*DeletePilotThingsIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{73}
}
func (m *DeletePilotThingsIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeletePilotThingsIntegrationRequest.Unmarshal(m, b)
}
func (m *DeletePilotThingsIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeletePilotThingsIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeletePilotThingsIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeletePilotThingsIntegrationRequest.Merge(m, src)
}
func (m *DeletePilotThingsIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeletePilotThingsIntegrationRequest.Size(m)
}
func (m *DeletePilotThingsIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeletePilotThingsIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeletePilotThingsIntegrationRequest proto.InternalMessageInfo
func (m *DeletePilotThingsIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GenerateMQTTIntegrationClientCertificateRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) Reset() {
*m = GenerateMQTTIntegrationClientCertificateRequest{}
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) String() string {
return proto.CompactTextString(m)
}
func (*GenerateMQTTIntegrationClientCertificateRequest) ProtoMessage() {}
func (*GenerateMQTTIntegrationClientCertificateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{74}
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GenerateMQTTIntegrationClientCertificateRequest.Unmarshal(m, b)
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GenerateMQTTIntegrationClientCertificateRequest.Marshal(b, m, deterministic)
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenerateMQTTIntegrationClientCertificateRequest.Merge(m, src)
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) XXX_Size() int {
return xxx_messageInfo_GenerateMQTTIntegrationClientCertificateRequest.Size(m)
}
func (m *GenerateMQTTIntegrationClientCertificateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GenerateMQTTIntegrationClientCertificateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GenerateMQTTIntegrationClientCertificateRequest proto.InternalMessageInfo
func (m *GenerateMQTTIntegrationClientCertificateRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GenerateMQTTIntegrationClientCertificateResponse struct {
// TLS certificate.
TlsCert string `protobuf:"bytes,1,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"`
// TLS key.
TlsKey string `protobuf:"bytes,2,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"`
// CA certificate.
CaCert string `protobuf:"bytes,3,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
// Expires at defines the expiration date of the certificate.
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) Reset() {
*m = GenerateMQTTIntegrationClientCertificateResponse{}
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) String() string {
return proto.CompactTextString(m)
}
func (*GenerateMQTTIntegrationClientCertificateResponse) ProtoMessage() {}
func (*GenerateMQTTIntegrationClientCertificateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{75}
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GenerateMQTTIntegrationClientCertificateResponse.Unmarshal(m, b)
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GenerateMQTTIntegrationClientCertificateResponse.Marshal(b, m, deterministic)
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenerateMQTTIntegrationClientCertificateResponse.Merge(m, src)
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) XXX_Size() int {
return xxx_messageInfo_GenerateMQTTIntegrationClientCertificateResponse.Size(m)
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GenerateMQTTIntegrationClientCertificateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GenerateMQTTIntegrationClientCertificateResponse proto.InternalMessageInfo
func (m *GenerateMQTTIntegrationClientCertificateResponse) GetTlsCert() string {
if m != nil {
return m.TlsCert
}
return ""
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) GetTlsKey() string {
if m != nil {
return m.TlsKey
}
return ""
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) GetCaCert() string {
if m != nil {
return m.CaCert
}
return ""
}
func (m *GenerateMQTTIntegrationClientCertificateResponse) GetExpiresAt() *timestamp.Timestamp {
if m != nil {
return m.ExpiresAt
}
return nil
}
// QUBITRO
type QubitroIntegration struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Qubitro ProjectId.
// ProjectID can be obtained from the Qubitro portal.
Projectid string `protobuf:"bytes,2,opt,name=projectid,json=projectId,proto3" json:"projectid,omitempty"`
// Qubitro WebhookSigningKey.
// WebhookSigningKey can be obtained from the Qubitro portal.
WebhookSigningKey string `protobuf:"bytes,3,opt,name=webhook_signing_key,json=webhookSigningKey,proto3" json:"webhook_signing_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QubitroIntegration) Reset() { *m = QubitroIntegration{} }
func (m *QubitroIntegration) String() string { return proto.CompactTextString(m) }
func (*QubitroIntegration) ProtoMessage() {}
func (*QubitroIntegration) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{76}
}
func (m *QubitroIntegration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QubitroIntegration.Unmarshal(m, b)
}
func (m *QubitroIntegration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QubitroIntegration.Marshal(b, m, deterministic)
}
func (m *QubitroIntegration) XXX_Merge(src proto.Message) {
xxx_messageInfo_QubitroIntegration.Merge(m, src)
}
func (m *QubitroIntegration) XXX_Size() int {
return xxx_messageInfo_QubitroIntegration.Size(m)
}
func (m *QubitroIntegration) XXX_DiscardUnknown() {
xxx_messageInfo_QubitroIntegration.DiscardUnknown(m)
}
var xxx_messageInfo_QubitroIntegration proto.InternalMessageInfo
func (m *QubitroIntegration) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *QubitroIntegration) GetProjectid() string {
if m != nil {
return m.Projectid
}
return ""
}
func (m *QubitroIntegration) GetWebhookSigningKey() string {
if m != nil {
return m.WebhookSigningKey
}
return ""
}
type CreateQubitroIntegrationRequest struct {
// Integration object to create.
Integration *QubitroIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateQubitroIntegrationRequest) Reset() { *m = CreateQubitroIntegrationRequest{} }
func (m *CreateQubitroIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateQubitroIntegrationRequest) ProtoMessage() {}
func (*CreateQubitroIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{77}
}
func (m *CreateQubitroIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateQubitroIntegrationRequest.Unmarshal(m, b)
}
func (m *CreateQubitroIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateQubitroIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *CreateQubitroIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateQubitroIntegrationRequest.Merge(m, src)
}
func (m *CreateQubitroIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_CreateQubitroIntegrationRequest.Size(m)
}
func (m *CreateQubitroIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateQubitroIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateQubitroIntegrationRequest proto.InternalMessageInfo
func (m *CreateQubitroIntegrationRequest) GetIntegration() *QubitroIntegration {
if m != nil {
return m.Integration
}
return nil
}
type GetQubitroIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetQubitroIntegrationRequest) Reset() { *m = GetQubitroIntegrationRequest{} }
func (m *GetQubitroIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*GetQubitroIntegrationRequest) ProtoMessage() {}
func (*GetQubitroIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{78}
}
func (m *GetQubitroIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetQubitroIntegrationRequest.Unmarshal(m, b)
}
func (m *GetQubitroIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetQubitroIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *GetQubitroIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetQubitroIntegrationRequest.Merge(m, src)
}
func (m *GetQubitroIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_GetQubitroIntegrationRequest.Size(m)
}
func (m *GetQubitroIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetQubitroIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetQubitroIntegrationRequest proto.InternalMessageInfo
func (m *GetQubitroIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type GetQubitroIntegrationResponse struct {
// Integration object.
Integration *QubitroIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetQubitroIntegrationResponse) Reset() { *m = GetQubitroIntegrationResponse{} }
func (m *GetQubitroIntegrationResponse) String() string { return proto.CompactTextString(m) }
func (*GetQubitroIntegrationResponse) ProtoMessage() {}
func (*GetQubitroIntegrationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{79}
}
func (m *GetQubitroIntegrationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetQubitroIntegrationResponse.Unmarshal(m, b)
}
func (m *GetQubitroIntegrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetQubitroIntegrationResponse.Marshal(b, m, deterministic)
}
func (m *GetQubitroIntegrationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetQubitroIntegrationResponse.Merge(m, src)
}
func (m *GetQubitroIntegrationResponse) XXX_Size() int {
return xxx_messageInfo_GetQubitroIntegrationResponse.Size(m)
}
func (m *GetQubitroIntegrationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetQubitroIntegrationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetQubitroIntegrationResponse proto.InternalMessageInfo
func (m *GetQubitroIntegrationResponse) GetIntegration() *QubitroIntegration {
if m != nil {
return m.Integration
}
return nil
}
type UpdateQubitroIntegrationRequest struct {
// Integration object.
Integration *QubitroIntegration `protobuf:"bytes,1,opt,name=integration,proto3" json:"integration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateQubitroIntegrationRequest) Reset() { *m = UpdateQubitroIntegrationRequest{} }
func (m *UpdateQubitroIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateQubitroIntegrationRequest) ProtoMessage() {}
func (*UpdateQubitroIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{80}
}
func (m *UpdateQubitroIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateQubitroIntegrationRequest.Unmarshal(m, b)
}
func (m *UpdateQubitroIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateQubitroIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateQubitroIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateQubitroIntegrationRequest.Merge(m, src)
}
func (m *UpdateQubitroIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateQubitroIntegrationRequest.Size(m)
}
func (m *UpdateQubitroIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateQubitroIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateQubitroIntegrationRequest proto.InternalMessageInfo
func (m *UpdateQubitroIntegrationRequest) GetIntegration() *QubitroIntegration {
if m != nil {
return m.Integration
}
return nil
}
type DeleteQubitroIntegrationRequest struct {
// Application ID.
ApplicationId int64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteQubitroIntegrationRequest) Reset() { *m = DeleteQubitroIntegrationRequest{} }
func (m *DeleteQubitroIntegrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteQubitroIntegrationRequest) ProtoMessage() {}
func (*DeleteQubitroIntegrationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0774996cc1ba5bfc, []int{81}
}
func (m *DeleteQubitroIntegrationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteQubitroIntegrationRequest.Unmarshal(m, b)
}
func (m *DeleteQubitroIntegrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteQubitroIntegrationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteQubitroIntegrationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteQubitroIntegrationRequest.Merge(m, src)
}
func (m *DeleteQubitroIntegrationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteQubitroIntegrationRequest.Size(m)
}
func (m *DeleteQubitroIntegrationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteQubitroIntegrationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteQubitroIntegrationRequest proto.InternalMessageInfo
func (m *DeleteQubitroIntegrationRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func init() {
proto.RegisterEnum("api.IntegrationKind", IntegrationKind_name, IntegrationKind_value)
proto.RegisterEnum("api.Marshaler", Marshaler_name, Marshaler_value)
proto.RegisterEnum("api.InfluxDBPrecision", InfluxDBPrecision_name, InfluxDBPrecision_value)
proto.RegisterEnum("api.InfluxDBVersion", InfluxDBVersion_name, InfluxDBVersion_value)
proto.RegisterType((*Application)(nil), "api.Application")
proto.RegisterType((*ApplicationListItem)(nil), "api.ApplicationListItem")
proto.RegisterType((*CreateApplicationRequest)(nil), "api.CreateApplicationRequest")
proto.RegisterType((*CreateApplicationResponse)(nil), "api.CreateApplicationResponse")
proto.RegisterType((*GetApplicationRequest)(nil), "api.GetApplicationRequest")
proto.RegisterType((*GetApplicationResponse)(nil), "api.GetApplicationResponse")
proto.RegisterType((*UpdateApplicationRequest)(nil), "api.UpdateApplicationRequest")
proto.RegisterType((*DeleteApplicationRequest)(nil), "api.DeleteApplicationRequest")
proto.RegisterType((*ListApplicationRequest)(nil), "api.ListApplicationRequest")
proto.RegisterType((*ListApplicationResponse)(nil), "api.ListApplicationResponse")
proto.RegisterType((*HTTPIntegrationHeader)(nil), "api.HTTPIntegrationHeader")
proto.RegisterType((*HTTPIntegration)(nil), "api.HTTPIntegration")
proto.RegisterType((*CreateHTTPIntegrationRequest)(nil), "api.CreateHTTPIntegrationRequest")
proto.RegisterType((*GetHTTPIntegrationRequest)(nil), "api.GetHTTPIntegrationRequest")
proto.RegisterType((*GetHTTPIntegrationResponse)(nil), "api.GetHTTPIntegrationResponse")
proto.RegisterType((*UpdateHTTPIntegrationRequest)(nil), "api.UpdateHTTPIntegrationRequest")
proto.RegisterType((*DeleteHTTPIntegrationRequest)(nil), "api.DeleteHTTPIntegrationRequest")
proto.RegisterType((*ListIntegrationRequest)(nil), "api.ListIntegrationRequest")
proto.RegisterType((*IntegrationListItem)(nil), "api.IntegrationListItem")
proto.RegisterType((*ListIntegrationResponse)(nil), "api.ListIntegrationResponse")
proto.RegisterType((*InfluxDBIntegration)(nil), "api.InfluxDBIntegration")
proto.RegisterType((*CreateInfluxDBIntegrationRequest)(nil), "api.CreateInfluxDBIntegrationRequest")
proto.RegisterType((*GetInfluxDBIntegrationRequest)(nil), "api.GetInfluxDBIntegrationRequest")
proto.RegisterType((*GetInfluxDBIntegrationResponse)(nil), "api.GetInfluxDBIntegrationResponse")
proto.RegisterType((*UpdateInfluxDBIntegrationRequest)(nil), "api.UpdateInfluxDBIntegrationRequest")
proto.RegisterType((*DeleteInfluxDBIntegrationRequest)(nil), "api.DeleteInfluxDBIntegrationRequest")
proto.RegisterType((*ThingsBoardIntegration)(nil), "api.ThingsBoardIntegration")
proto.RegisterType((*CreateThingsBoardIntegrationRequest)(nil), "api.CreateThingsBoardIntegrationRequest")
proto.RegisterType((*GetThingsBoardIntegrationRequest)(nil), "api.GetThingsBoardIntegrationRequest")
proto.RegisterType((*GetThingsBoardIntegrationResponse)(nil), "api.GetThingsBoardIntegrationResponse")
proto.RegisterType((*UpdateThingsBoardIntegrationRequest)(nil), "api.UpdateThingsBoardIntegrationRequest")
proto.RegisterType((*DeleteThingsBoardIntegrationRequest)(nil), "api.DeleteThingsBoardIntegrationRequest")
proto.RegisterType((*MyDevicesIntegration)(nil), "api.MyDevicesIntegration")
proto.RegisterType((*CreateMyDevicesIntegrationRequest)(nil), "api.CreateMyDevicesIntegrationRequest")
proto.RegisterType((*GetMyDevicesIntegrationRequest)(nil), "api.GetMyDevicesIntegrationRequest")
proto.RegisterType((*GetMyDevicesIntegrationResponse)(nil), "api.GetMyDevicesIntegrationResponse")
proto.RegisterType((*UpdateMyDevicesIntegrationRequest)(nil), "api.UpdateMyDevicesIntegrationRequest")
proto.RegisterType((*DeleteMyDevicesIntegrationRequest)(nil), "api.DeleteMyDevicesIntegrationRequest")
proto.RegisterType((*LoRaCloudIntegration)(nil), "api.LoRaCloudIntegration")
proto.RegisterType((*CreateLoRaCloudIntegrationRequest)(nil), "api.CreateLoRaCloudIntegrationRequest")
proto.RegisterType((*GetLoRaCloudIntegrationRequest)(nil), "api.GetLoRaCloudIntegrationRequest")
proto.RegisterType((*GetLoRaCloudIntegrationResponse)(nil), "api.GetLoRaCloudIntegrationResponse")
proto.RegisterType((*UpdateLoRaCloudIntegrationRequest)(nil), "api.UpdateLoRaCloudIntegrationRequest")
proto.RegisterType((*DeleteLoRaCloudIntegrationRequest)(nil), "api.DeleteLoRaCloudIntegrationRequest")
proto.RegisterType((*GCPPubSubIntegration)(nil), "api.GCPPubSubIntegration")
proto.RegisterType((*CreateGCPPubSubIntegrationRequest)(nil), "api.CreateGCPPubSubIntegrationRequest")
proto.RegisterType((*GetGCPPubSubIntegrationRequest)(nil), "api.GetGCPPubSubIntegrationRequest")
proto.RegisterType((*GetGCPPubSubIntegrationResponse)(nil), "api.GetGCPPubSubIntegrationResponse")
proto.RegisterType((*UpdateGCPPubSubIntegrationRequest)(nil), "api.UpdateGCPPubSubIntegrationRequest")
proto.RegisterType((*DeleteGCPPubSubIntegrationRequest)(nil), "api.DeleteGCPPubSubIntegrationRequest")
proto.RegisterType((*AWSSNSIntegration)(nil), "api.AWSSNSIntegration")
proto.RegisterType((*CreateAWSSNSIntegrationRequest)(nil), "api.CreateAWSSNSIntegrationRequest")
proto.RegisterType((*GetAWSSNSIntegrationRequest)(nil), "api.GetAWSSNSIntegrationRequest")
proto.RegisterType((*GetAWSSNSIntegrationResponse)(nil), "api.GetAWSSNSIntegrationResponse")
proto.RegisterType((*UpdateAWSSNSIntegrationRequest)(nil), "api.UpdateAWSSNSIntegrationRequest")
proto.RegisterType((*DeleteAWSSNSIntegrationRequest)(nil), "api.DeleteAWSSNSIntegrationRequest")
proto.RegisterType((*AzureServiceBusIntegration)(nil), "api.AzureServiceBusIntegration")
proto.RegisterType((*CreateAzureServiceBusIntegrationRequest)(nil), "api.CreateAzureServiceBusIntegrationRequest")
proto.RegisterType((*GetAzureServiceBusIntegrationRequest)(nil), "api.GetAzureServiceBusIntegrationRequest")
proto.RegisterType((*GetAzureServiceBusIntegrationResponse)(nil), "api.GetAzureServiceBusIntegrationResponse")
proto.RegisterType((*UpdateAzureServiceBusIntegrationRequest)(nil), "api.UpdateAzureServiceBusIntegrationRequest")
proto.RegisterType((*DeleteAzureServiceBusIntegrationRequest)(nil), "api.DeleteAzureServiceBusIntegrationRequest")
proto.RegisterType((*LoccartoIntegration)(nil), "api.LoccartoIntegration")
proto.RegisterType((*CreateLoccartoIntegrationRequest)(nil), "api.CreateLoccartoIntegrationRequest")
proto.RegisterType((*GetLoccartoIntegrationRequest)(nil), "api.GetLoccartoIntegrationRequest")
proto.RegisterType((*GetLoccartoIntegrationResponse)(nil), "api.GetLoccartoIntegrationResponse")
proto.RegisterType((*UpdateLoccartoIntegrationRequest)(nil), "api.UpdateLoccartoIntegrationRequest")
proto.RegisterType((*DeleteLoccartoIntegrationRequest)(nil), "api.DeleteLoccartoIntegrationRequest")
proto.RegisterType((*PilotThingsIntegration)(nil), "api.PilotThingsIntegration")
proto.RegisterType((*CreatePilotThingsIntegrationRequest)(nil), "api.CreatePilotThingsIntegrationRequest")
proto.RegisterType((*GetPilotThingsIntegrationRequest)(nil), "api.GetPilotThingsIntegrationRequest")
proto.RegisterType((*GetPilotThingsIntegrationResponse)(nil), "api.GetPilotThingsIntegrationResponse")
proto.RegisterType((*UpdatePilotThingsIntegrationRequest)(nil), "api.UpdatePilotThingsIntegrationRequest")
proto.RegisterType((*DeletePilotThingsIntegrationRequest)(nil), "api.DeletePilotThingsIntegrationRequest")
proto.RegisterType((*GenerateMQTTIntegrationClientCertificateRequest)(nil), "api.GenerateMQTTIntegrationClientCertificateRequest")
proto.RegisterType((*GenerateMQTTIntegrationClientCertificateResponse)(nil), "api.GenerateMQTTIntegrationClientCertificateResponse")
proto.RegisterType((*QubitroIntegration)(nil), "api.QubitroIntegration")
proto.RegisterType((*CreateQubitroIntegrationRequest)(nil), "api.CreateQubitroIntegrationRequest")
proto.RegisterType((*GetQubitroIntegrationRequest)(nil), "api.GetQubitroIntegrationRequest")
proto.RegisterType((*GetQubitroIntegrationResponse)(nil), "api.GetQubitroIntegrationResponse")
proto.RegisterType((*UpdateQubitroIntegrationRequest)(nil), "api.UpdateQubitroIntegrationRequest")
proto.RegisterType((*DeleteQubitroIntegrationRequest)(nil), "api.DeleteQubitroIntegrationRequest")
}
func init() {
proto.RegisterFile("as/external/api/application.proto", fileDescriptor_0774996cc1ba5bfc)
}
var fileDescriptor_0774996cc1ba5bfc = []byte{
// 3839 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5c, 0xdd, 0x6f, 0x1b, 0x57,
0x76, 0xcf, 0x48, 0xb2, 0x2c, 0x1d, 0x7d, 0x8d, 0xae, 0x65, 0x89, 0xa6, 0x15, 0x4b, 0x1a, 0x7b,
0x63, 0x47, 0x89, 0x24, 0xc7, 0xf1, 0x66, 0x37, 0xc9, 0x66, 0x1d, 0x4a, 0x94, 0x29, 0x26, 0x94,
0xc4, 0x0c, 0x29, 0x3b, 0x6b, 0x04, 0x99, 0x1d, 0x72, 0xae, 0xa4, 0x89, 0x86, 0x1c, 0x66, 0xe6,
0xd2, 0x96, 0x5c, 0xe4, 0xa5, 0x0f, 0x2d, 0x0a, 0xf4, 0xa1, 0xc0, 0x3e, 0x14, 0x05, 0x16, 0x58,
0x14, 0x45, 0xb7, 0x2d, 0x0a, 0xb4, 0x0b, 0xb4, 0xfb, 0xd2, 0x3e, 0x6d, 0x1f, 0xfb, 0xda, 0xfe,
0x03, 0x05, 0x02, 0xf4, 0xa9, 0xe8, 0x1f, 0xd0, 0x97, 0xe2, 0x7e, 0xcc, 0x70, 0x48, 0xce, 0x07,
0x25, 0x92, 0x45, 0x9f, 0xac, 0xb9, 0xf7, 0x9c, 0x73, 0x7f, 0xf7, 0x77, 0xcf, 0x9c, 0xb9, 0xf7,
0xdc, 0x63, 0xc2, 0x9a, 0xee, 0x6e, 0xe1, 0x73, 0x82, 0x9d, 0xba, 0x6e, 0x6d, 0xe9, 0x0d, 0x73,
0x4b, 0x6f, 0x34, 0x2c, 0xb3, 0xaa, 0x13, 0xd3, 0xae, 0x6f, 0x36, 0x1c, 0x9b, 0xd8, 0x68, 0x54,
0x6f, 0x98, 0xe9, 0x95, 0x13, 0xdb, 0x3e, 0xb1, 0xf0, 0x16, 0x6b, 0xaa, 0x34, 0x8f, 0xb7, 0x88,
0x59, 0xc3, 0x2e, 0xd1, 0x6b, 0x0d, 0x2e, 0x95, 0x5e, 0x16, 0x02, 0xcc, 0x46, 0xbd, 0x6e, 0x13,
0x66, 0xc2, 0x15, 0xbd, 0xb7, 0x3b, 0xd5, 0x71, 0xad, 0x41, 0x2e, 0x78, 0xa7, 0xf2, 0xcf, 0x23,
0x30, 0x95, 0x69, 0x0d, 0x8b, 0x66, 0x61, 0xc4, 0x34, 0x52, 0xd2, 0xaa, 0xf4, 0x60, 0x54, 0x1d,
0x31, 0x0d, 0x84, 0x60, 0xac, 0xae, 0xd7, 0x70, 0x6a, 0x64, 0x55, 0x7a, 0x30, 0xa9, 0xb2, 0xbf,
0xd1, 0x2a, 0x4c, 0x19, 0xd8, 0xad, 0x3a, 0x66, 0x83, 0xaa, 0xa4, 0x46, 0x59, 0x57, 0xb0, 0x09,
0xdd, 0x87, 0x39, 0xdb, 0x39, 0xd1, 0xeb, 0xe6, 0x6b, 0x66, 0x55, 0x33, 0x8d, 0xd4, 0x18, 0x33,
0x39, 0x1b, 0x6c, 0xce, 0x67, 0xd1, 0xbb, 0x80, 0x5c, 0xec, 0xbc, 0x34, 0xab, 0x58, 0x6b, 0x38,
0xf6, 0xb1, 0x69, 0x61, 0x2a, 0x7b, 0x8d, 0x59, 0x94, 0x45, 0x4f, 0x91, 0x77, 0xe4, 0xb3, 0xe8,
0x2e, 0xcc, 0x34, 0xf4, 0x0b, 0xcb, 0xd6, 0x0d, 0xad, 0x6a, 0x1b, 0xb8, 0x9a, 0x1a, 0x67, 0x82,
0xd3, 0xa2, 0x71, 0x87, 0xb6, 0xa1, 0xc7, 0xb0, 0xe8, 0x09, 0xe1, 0x3a, 0x15, 0x73, 0x34, 0x0e,
0x2c, 0x75, 0x9d, 0x49, 0x2f, 0x88, 0xde, 0x5d, 0xde, 0x59, 0x62, 0x7d, 0x41, 0x2d, 0x03, 0xb7,
0x69, 0x4d, 0xb4, 0x69, 0x65, 0x71, 0x40, 0x4b, 0xf9, 0x5e, 0x82, 0x1b, 0x01, 0xf6, 0x0a, 0xa6,
0x4b, 0xf2, 0x04, 0xd7, 0xfe, 0x7f, 0xb3, 0xf8, 0x10, 0x16, 0x3a, 0xa5, 0x19, 0x38, 0x4e, 0x26,
0x6a, 0x97, 0x3f, 0xd0, 0x6b, 0x58, 0x39, 0x80, 0xd4, 0x8e, 0x83, 0x75, 0x82, 0x03, 0x73, 0x55,
0xf1, 0xb7, 0x4d, 0xec, 0x12, 0xf4, 0x08, 0xa6, 0x02, 0x6e, 0xcb, 0xe6, 0x3c, 0xf5, 0x48, 0xde,
0xd4, 0x1b, 0xe6, 0x66, 0x50, 0x3a, 0x28, 0xa4, 0xbc, 0x03, 0xb7, 0x42, 0xec, 0xb9, 0x0d, 0xbb,
0xee, 0xe2, 0x4e, 0xee, 0x94, 0xfb, 0x70, 0x33, 0x87, 0x49, 0xc8, 0xc8, 0x9d, 0x82, 0x05, 0x58,
0xec, 0x14, 0x14, 0x26, 0xaf, 0x82, 0xf1, 0x00, 0x52, 0x47, 0x0d, 0x63, 0x70, 0x73, 0x5e, 0x87,
0x54, 0x16, 0x5b, 0x38, 0xd4, 0x5e, 0xe7, 0x4c, 0xfe, 0x50, 0x82, 0x45, 0xea, 0x4b, 0x21, 0xa2,
0x0b, 0x70, 0xcd, 0x32, 0x6b, 0x26, 0x11, 0xd2, 0xfc, 0x01, 0x2d, 0xc2, 0xb8, 0x7d, 0x7c, 0xec,
0x62, 0xc2, 0x3c, 0x6c, 0x54, 0x15, 0x4f, 0x61, 0x1e, 0x34, 0x1a, 0xea, 0x41, 0x8b, 0x30, 0xee,
0x62, 0xdd, 0xa9, 0x9e, 0x32, 0x0f, 0x9b, 0x54, 0xc5, 0x93, 0x62, 0xc1, 0x52, 0x17, 0x10, 0x41,
0xea, 0x0a, 0x4c, 0x11, 0x9b, 0xe8, 0x96, 0x56, 0xb5, 0x9b, 0x75, 0x0f, 0x0f, 0xb0, 0xa6, 0x1d,
0xda, 0x82, 0x1e, 0xc2, 0xb8, 0x83, 0xdd, 0xa6, 0x45, 0x41, 0x8d, 0x3e, 0x98, 0x7a, 0x94, 0xea,
0x24, 0xc8, 0x7b, 0x5d, 0x54, 0x21, 0xa7, 0x3c, 0x81, 0x9b, 0x7b, 0xe5, 0x72, 0x31, 0x5f, 0x27,
0xf8, 0xc4, 0x61, 0x22, 0x7b, 0x58, 0x37, 0xb0, 0x83, 0x64, 0x18, 0x3d, 0xc3, 0x17, 0x6c, 0x8c,
0x49, 0x95, 0xfe, 0x49, 0x79, 0x78, 0xa9, 0x5b, 0x4d, 0xef, 0x95, 0xe2, 0x0f, 0xca, 0xff, 0x8c,
0xc1, 0x5c, 0x87, 0x05, 0xf4, 0x03, 0x98, 0x0d, 0xac, 0x83, 0xe6, 0x13, 0x3d, 0x13, 0x68, 0xcd,
0x67, 0xd1, 0x63, 0xb8, 0x7e, 0xca, 0x06, 0x73, 0x05, 0xdc, 0x34, 0x83, 0x1b, 0x8a, 0x47, 0xf5,
0x44, 0xd1, 0x5b, 0x30, 0xd7, 0x6c, 0x58, 0x66, 0xfd, 0x4c, 0x33, 0x74, 0xa2, 0x6b, 0x4d, 0xc7,
0x12, 0x2f, 0xf2, 0x0c, 0x6f, 0xce, 0xea, 0x44, 0x3f, 0x52, 0x0b, 0xe8, 0x11, 0xdc, 0xfc, 0xc6,
0x36, 0xeb, 0x5a, 0xdd, 0x26, 0xe6, 0xb1, 0x07, 0x85, 0x4a, 0x73, 0xba, 0x6f, 0xd0, 0xce, 0x83,
0x40, 0x1f, 0xd5, 0x79, 0x08, 0x0b, 0x7a, 0xf5, 0xac, 0x5b, 0x85, 0xbf, 0xd7, 0x48, 0xaf, 0x9e,
0x75, 0x6a, 0x3c, 0x86, 0x45, 0xec, 0x38, 0xb6, 0xd3, 0xad, 0xc3, 0xdf, 0xed, 0x05, 0xd6, 0xdb,
0xa9, 0xf5, 0x01, 0x2c, 0xb9, 0x44, 0x27, 0x4d, 0xb7, 0x5b, 0x8d, 0x47, 0xcc, 0x9b, 0xbc, 0xbb,
0x53, 0xef, 0x23, 0xb8, 0x65, 0xd9, 0x42, 0xb8, 0x4b, 0x93, 0x47, 0xcd, 0x25, 0x4f, 0xa0, 0x53,
0xf7, 0x87, 0xb0, 0x44, 0xce, 0xb5, 0xd0, 0xe9, 0x4d, 0x72, 0xa8, 0xe4, 0x3c, 0xd3, 0x3d, 0xc1,
0x4f, 0x61, 0xd9, 0x6c, 0x2d, 0x46, 0xb7, 0x2e, 0x30, 0xdd, 0x74, 0x40, 0xa6, 0xd3, 0xc2, 0xbb,
0x30, 0x59, 0xd3, 0x1d, 0xf7, 0x54, 0xb7, 0xb0, 0x93, 0x9a, 0x5a, 0x95, 0x1e, 0xcc, 0x3e, 0x9a,
0x65, 0x0b, 0xbd, 0xef, 0xb5, 0xaa, 0x2d, 0x01, 0x1a, 0x58, 0xf1, 0x4b, 0x5c, 0x27, 0x1a, 0xae,
0x1b, 0x0d, 0xdb, 0xac, 0x13, 0x36, 0xca, 0x34, 0x0f, 0xac, 0xac, 0x67, 0x57, 0x74, 0x1c, 0xa9,
0x05, 0xe5, 0x19, 0x2c, 0xf3, 0xb0, 0xd6, 0xe1, 0x34, 0xde, 0xbb, 0xfb, 0x01, 0x4c, 0x05, 0x90,
0x89, 0xb0, 0xb1, 0x10, 0xe6, 0x66, 0x6a, 0x50, 0x50, 0xd9, 0x86, 0x5b, 0x39, 0x4c, 0x22, 0x8c,
0xf6, 0xe6, 0xde, 0x4a, 0x19, 0xd2, 0x61, 0x36, 0xc4, 0xbb, 0x7c, 0x55, 0x64, 0xcf, 0x60, 0x99,
0x07, 0xc9, 0x01, 0xcf, 0x78, 0x17, 0x96, 0x79, 0xb0, 0xec, 0x6f, 0xd2, 0x4f, 0x78, 0x18, 0xed,
0xc7, 0xc0, 0x8d, 0x80, 0xb2, 0xff, 0x79, 0x7f, 0x00, 0x63, 0x67, 0x66, 0x9d, 0xeb, 0xcc, 0x8a,
0xf9, 0x04, 0xe4, 0x3e, 0x37, 0xeb, 0x86, 0xca, 0x24, 0xbc, 0xf8, 0x19, 0xc6, 0xf9, 0x15, 0xe3,
0x67, 0x08, 0x1e, 0x3f, 0x7e, 0xfe, 0xf1, 0x28, 0xc5, 0x7b, 0x6c, 0x35, 0xcf, 0xb3, 0xdb, 0x57,
0x08, 0x81, 0x69, 0x98, 0xf0, 0xfc, 0x5c, 0x84, 0x55, 0xff, 0x99, 0x7e, 0xa2, 0x8c, 0x8a, 0x88,
0x6d, 0x23, 0x46, 0x85, 0xca, 0x36, 0x5d, 0xba, 0x73, 0xad, 0x61, 0x11, 0xc3, 0xfc, 0x67, 0xda,
0xd7, 0xd0, 0x5d, 0xf7, 0x95, 0xed, 0x78, 0x9b, 0x10, 0xff, 0x99, 0x06, 0x42, 0x07, 0x13, 0x5c,
0x67, 0x40, 0x1a, 0xb6, 0x65, 0x56, 0x2f, 0x82, 0xbb, 0x8f, 0x1b, 0x7e, 0x67, 0x91, 0xf5, 0xd1,
0xed, 0x07, 0x7a, 0x0c, 0x93, 0x0d, 0x07, 0x57, 0x4d, 0x97, 0xfa, 0xd0, 0x75, 0xc6, 0xf9, 0xa2,
0xe0, 0x82, 0xcf, 0xb5, 0xe8, 0xf5, 0xaa, 0x2d, 0x41, 0xb4, 0x09, 0xd7, 0x5f, 0x62, 0x87, 0xe9,
0x4c, 0xb4, 0xad, 0x13, 0xd7, 0x79, 0xc6, 0xfb, 0x54, 0x4f, 0x88, 0x7e, 0x51, 0x88, 0x7d, 0x86,
0xeb, 0x22, 0x00, 0xf1, 0x07, 0xa4, 0xc0, 0x74, 0xf0, 0x53, 0x29, 0x22, 0x4c, 0x5b, 0x1b, 0xfd,
0x78, 0x56, 0x9a, 0xd5, 0x33, 0x4c, 0x58, 0x40, 0x99, 0x54, 0xc5, 0x93, 0xf2, 0x35, 0xac, 0xf2,
0x78, 0x10, 0xb2, 0x26, 0x9e, 0x23, 0x7e, 0x14, 0xf6, 0x86, 0xa4, 0xda, 0x90, 0x46, 0xbe, 0x25,
0x4f, 0xe1, 0xcd, 0x1c, 0x26, 0x31, 0xc6, 0x7b, 0xf4, 0xf2, 0xaf, 0xe0, 0x4e, 0x94, 0x1d, 0xe1,
0xab, 0xfd, 0xa0, 0xfc, 0x1a, 0x56, 0x79, 0x8c, 0x18, 0x12, 0x0b, 0x79, 0x58, 0xe5, 0xb1, 0xa2,
0x7f, 0x22, 0x9e, 0xc3, 0x62, 0xf9, 0xd4, 0xac, 0x9f, 0xb8, 0xdb, 0xb6, 0xee, 0x18, 0x57, 0x78,
0x83, 0xd8, 0x36, 0xca, 0x79, 0x89, 0x1d, 0xf1, 0xfe, 0x88, 0x27, 0xc5, 0x80, 0xbb, 0xdc, 0x13,
0xc2, 0xcd, 0x7b, 0x30, 0x3f, 0x09, 0xa3, 0xe1, 0x36, 0xa3, 0x21, 0x42, 0xb1, 0x93, 0x89, 0x1c,
0x26, 0xf1, 0x43, 0xf4, 0xc8, 0x44, 0x05, 0xd6, 0x62, 0x4c, 0x09, 0xaf, 0xe8, 0x13, 0xae, 0x01,
0x77, 0xb9, 0x63, 0x0c, 0x95, 0x94, 0x02, 0xdc, 0xe5, 0xee, 0x31, 0x10, 0x5e, 0x7e, 0x06, 0x0b,
0xfb, 0x17, 0x59, 0x4c, 0x0f, 0x48, 0xee, 0x60, 0x23, 0xac, 0xf2, 0x73, 0x58, 0xe3, 0x3e, 0x12,
0x36, 0x80, 0x07, 0xf3, 0xe3, 0x30, 0x32, 0x6e, 0xf1, 0x0d, 0x4c, 0x98, 0x5a, 0x1b, 0x15, 0x39,
0xf6, 0x9e, 0xc7, 0x99, 0xef, 0x91, 0x85, 0xaf, 0x61, 0x25, 0xd2, 0x90, 0xf0, 0x8d, 0xbe, 0x80,
0xfe, 0x1c, 0xd6, 0xb8, 0x67, 0x0c, 0x8d, 0x8a, 0xcf, 0x60, 0x8d, 0x7b, 0xc5, 0x00, 0xd8, 0xf8,
0xcf, 0x71, 0x58, 0x28, 0xd8, 0xaa, 0xbe, 0x63, 0xd9, 0xcd, 0xab, 0x04, 0x8d, 0x55, 0x98, 0x3a,
0xc1, 0xb6, 0xb7, 0x53, 0x66, 0x7e, 0x31, 0xa1, 0x06, 0x9b, 0xd0, 0x3b, 0x30, 0x1f, 0x78, 0xd4,
0xf8, 0x67, 0x8a, 0x7f, 0x8b, 0xe5, 0x40, 0x47, 0x99, 0x7d, 0xb1, 0x1e, 0xc3, 0x62, 0x50, 0xb8,
0xd2, 0x3c, 0x3e, 0xc6, 0x8e, 0x46, 0x08, 0x3f, 0x6b, 0xcc, 0xa8, 0x0b, 0x81, 0xde, 0x6d, 0xd6,
0x59, 0x2e, 0x17, 0xd0, 0x27, 0x70, 0x3b, 0xa8, 0x55, 0x33, 0x7d, 0x4d, 0xd7, 0x7c, 0x8d, 0xd9,
0x67, 0x7c, 0x46, 0x4d, 0x05, 0x44, 0xf6, 0x4d, 0xa1, 0x5d, 0x32, 0x5f, 0x63, 0xf4, 0x36, 0xc8,
0x6d, 0x08, 0x0d, 0x5b, 0x67, 0x5f, 0xf4, 0x09, 0x75, 0x2e, 0x08, 0x30, 0x7b, 0x98, 0xe9, 0x14,
0x75, 0x5c, 0xd7, 0x64, 0x1f, 0xf5, 0x76, 0x51, 0xb5, 0x54, 0xca, 0x77, 0x8a, 0x9e, 0xd4, 0x5d,
0x97, 0x7d, 0xcb, 0xdb, 0x45, 0x73, 0x07, 0xa5, 0x12, 0xda, 0x81, 0x3b, 0x9d, 0xa2, 0x9a, 0x97,
0xd0, 0x39, 0x36, 0xb1, 0x65, 0x88, 0xcf, 0xfa, 0xed, 0x0e, 0xc5, 0x22, 0x97, 0x79, 0x4a, 0x45,
0xd0, 0x4f, 0x61, 0xb9, 0xcb, 0x48, 0xd3, 0xc5, 0x9a, 0x73, 0xae, 0x11, 0xb3, 0x86, 0xd9, 0xc7,
0x7f, 0xa2, 0x8d, 0x05, 0x6a, 0xe2, 0xc8, 0xc5, 0xea, 0x79, 0xd9, 0xac, 0x75, 0xb1, 0xf0, 0xca,
0x3c, 0x36, 0xd9, 0x96, 0xa0, 0x1d, 0xef, 0x73, 0xf3, 0xd8, 0xec, 0xc4, 0x4b, 0x45, 0x3b, 0xf0,
0x4e, 0x77, 0xe1, 0xa5, 0x8a, 0x6d, 0x78, 0x65, 0x18, 0x35, 0x74, 0x37, 0x35, 0xc3, 0x86, 0xa0,
0x7f, 0xa2, 0xdb, 0x30, 0x69, 0xe8, 0xae, 0xf0, 0x90, 0x59, 0x1e, 0x61, 0x0c, 0xdd, 0xe5, 0x9e,
0x71, 0x0f, 0x66, 0x69, 0x67, 0xcd, 0x36, 0x70, 0x4d, 0x6b, 0xd8, 0x0e, 0x49, 0xcd, 0xb1, 0x65,
0x9d, 0x36, 0x74, 0x77, 0x9f, 0x36, 0x16, 0x6d, 0x87, 0x20, 0x05, 0x66, 0xa8, 0x14, 0x67, 0x90,
0x0a, 0xc9, 0x4c, 0x68, 0xca, 0xd0, 0x5d, 0x46, 0x18, 0x95, 0xd9, 0x84, 0x05, 0x5f, 0x26, 0x48,
0xd0, 0x3c, 0x43, 0x22, 0x0b, 0xd1, 0x16, 0x31, 0xbb, 0xb0, 0x42, 0xe5, 0x5d, 0xe2, 0x60, 0xbd,
0x66, 0xd6, 0x4f, 0x34, 0x3e, 0x2b, 0xed, 0x95, 0xed, 0x9c, 0xe9, 0x8e, 0xdd, 0xac, 0x1b, 0x29,
0xc4, 0x54, 0x97, 0x0d, 0xdd, 0x2d, 0x79, 0x52, 0x39, 0x26, 0xf4, 0xdc, 0x97, 0x69, 0x85, 0xc8,
0xb0, 0xd7, 0xad, 0x87, 0xb8, 0x10, 0xaa, 0x16, 0x12, 0x22, 0xe3, 0xcc, 0x5f, 0x2a, 0x44, 0x86,
0x1b, 0x4a, 0x0e, 0x91, 0xc9, 0x40, 0xfd, 0x10, 0x39, 0x34, 0x2a, 0xfc, 0x10, 0x39, 0x00, 0x36,
0xfe, 0x5d, 0x82, 0x85, 0xdc, 0x4e, 0xb1, 0xd8, 0xac, 0x94, 0x9a, 0x95, 0x2b, 0x84, 0xc8, 0xb6,
0x53, 0xfb, 0x48, 0xd2, 0xa9, 0xfd, 0x6d, 0x90, 0xab, 0x0e, 0x36, 0xe8, 0x39, 0x42, 0xb7, 0x5c,
0xed, 0xd8, 0xb4, 0xb0, 0x88, 0x96, 0x73, 0x81, 0xf6, 0xa7, 0xa6, 0x85, 0xd1, 0x9b, 0x00, 0x0d,
0xc7, 0xfe, 0x06, 0x57, 0x89, 0x97, 0x5d, 0x9d, 0xa4, 0x67, 0x08, 0xd6, 0x92, 0xcf, 0xd2, 0x6e,
0x62, 0x37, 0xcc, 0x2a, 0x3f, 0xa2, 0xf0, 0xb3, 0xcc, 0x24, 0x6b, 0x61, 0x79, 0x51, 0xdf, 0x1f,
0xc3, 0xe6, 0xd6, 0xc3, 0x22, 0x84, 0xaa, 0x85, 0xf8, 0x63, 0x9c, 0xf9, 0x4b, 0xf9, 0x63, 0xb8,
0xa1, 0x64, 0x7f, 0x4c, 0x06, 0xea, 0xfb, 0xe3, 0xd0, 0xa8, 0xf0, 0xfd, 0x71, 0x00, 0x6c, 0xfc,
0x97, 0x04, 0xf3, 0x99, 0xe7, 0xa5, 0xd2, 0x41, 0x69, 0xe8, 0xce, 0xb8, 0x48, 0x4f, 0xf1, 0x27,
0xad, 0x0c, 0xbf, 0x78, 0xa2, 0x61, 0x56, 0xaf, 0x56, 0xb1, 0xeb, 0x6a, 0x67, 0xf8, 0xa2, 0xe5,
0x7c, 0x53, 0xbc, 0xf1, 0x73, 0x7c, 0x91, 0xcf, 0xa2, 0x75, 0x98, 0x77, 0x71, 0xd5, 0xc1, 0x44,
0x6b, 0x89, 0x0a, 0x2f, 0x9c, 0xe3, 0x1d, 0x19, 0x4f, 0x9a, 0x46, 0x7e, 0xee, 0xaa, 0xba, 0x53,
0x17, 0x87, 0xe9, 0x09, 0xd6, 0x90, 0x51, 0x0f, 0x94, 0x17, 0x70, 0x47, 0x24, 0xdc, 0x3b, 0x27,
0xed, 0x11, 0xf7, 0xe3, 0xb0, 0xa5, 0xe1, 0xa7, 0xec, 0x6e, 0x9d, 0xb6, 0x75, 0xc9, 0xc2, 0xed,
0x1c, 0x26, 0x91, 0x86, 0x7b, 0x5c, 0x91, 0x2f, 0x61, 0x39, 0xdc, 0x8a, 0x70, 0xce, 0xab, 0xe3,
0x7b, 0x01, 0x77, 0x44, 0x22, 0x7f, 0xf0, 0x73, 0xcf, 0xc1, 0x1d, 0x91, 0xd4, 0xef, 0x73, 0xfa,
0xbf, 0x93, 0x20, 0x9d, 0x79, 0xdd, 0x74, 0x70, 0x89, 0xdf, 0xbe, 0x6c, 0x37, 0xdd, 0xa1, 0x7b,
0xe6, 0x3b, 0x30, 0x5f, 0xb5, 0xeb, 0x75, 0x5c, 0x65, 0x36, 0x5d, 0xe2, 0x98, 0xf5, 0x13, 0x6f,
0x57, 0xd9, 0xea, 0x28, 0xb1, 0x76, 0xb4, 0x06, 0xd3, 0x8d, 0x66, 0xc5, 0x32, 0xdd, 0x53, 0x2d,
0x90, 0xf3, 0x99, 0x12, 0x6d, 0x2c, 0x1a, 0x5a, 0x70, 0x5f, 0x38, 0x59, 0xe4, 0x44, 0x3c, 0x56,
0x32, 0x61, 0x8c, 0xaf, 0x70, 0xc6, 0xa3, 0x95, 0xdb, 0xa8, 0xdf, 0x87, 0x7b, 0xd4, 0x61, 0x12,
0x87, 0xea, 0x71, 0x01, 0xbe, 0x81, 0x1f, 0x24, 0x98, 0x13, 0x8e, 0x38, 0x00, 0xe8, 0x16, 0xdc,
0x17, 0x1e, 0xf9, 0x7f, 0x41, 0x54, 0x11, 0xee, 0x0b, 0x1f, 0x1d, 0x14, 0x57, 0xbf, 0x95, 0xe0,
0x46, 0xc1, 0xae, 0x56, 0x75, 0x87, 0xd8, 0x57, 0xf0, 0xd2, 0x0d, 0x40, 0x96, 0xd0, 0xd6, 0xaa,
0x96, 0x89, 0xeb, 0x84, 0x86, 0x35, 0x7e, 0x1c, 0x9e, 0xf7, 0x7a, 0x76, 0xbc, 0x0e, 0x74, 0x17,
0x66, 0x7c, 0x71, 0x76, 0xae, 0x18, 0x65, 0x3b, 0xc5, 0x69, 0xaf, 0x91, 0x1d, 0x2a, 0x82, 0x42,
0xec, 0x44, 0x31, 0xd6, 0x2e, 0x44, 0x8f, 0x13, 0xad, 0x7c, 0x5c, 0x08, 0xf8, 0x1e, 0x32, 0x51,
0x61, 0x5a, 0x21, 0xf9, 0xb8, 0x18, 0xe3, 0x97, 0xca, 0xc7, 0x85, 0xda, 0x49, 0xce, 0xc7, 0x25,
0xa2, 0xf4, 0xf3, 0x71, 0x43, 0x62, 0xc1, 0xcf, 0xc7, 0xf5, 0x4f, 0x44, 0x0d, 0x16, 0x8b, 0xa6,
0x65, 0x8b, 0x3c, 0xd4, 0xe0, 0xf2, 0x71, 0xad, 0x5c, 0xef, 0x68, 0x20, 0xd7, 0xdb, 0xca, 0xd2,
0x85, 0x0f, 0xda, 0x43, 0x42, 0x2a, 0x42, 0x31, 0x24, 0x4b, 0x17, 0x3f, 0xc4, 0xa5, 0xb2, 0x74,
0x51, 0xa6, 0x92, 0xb3, 0x74, 0xbd, 0xc0, 0xf5, 0xb3, 0x74, 0x43, 0x25, 0xc5, 0xcf, 0xd2, 0x0d,
0x84, 0x97, 0x2f, 0x61, 0x2b, 0x87, 0xeb, 0xd8, 0xd1, 0x09, 0xde, 0xff, 0xa2, 0x5c, 0x0e, 0x18,
0xe2, 0x61, 0x65, 0x07, 0x3b, 0xe2, 0x56, 0x10, 0x5f, 0xd2, 0xf2, 0x3f, 0x49, 0xf0, 0xb0, 0x77,
0xd3, 0x62, 0x05, 0x6e, 0xc1, 0x04, 0xb1, 0x5c, 0xad, 0x8a, 0x1d, 0x22, 0xae, 0xb0, 0xaf, 0x13,
0xcb, 0xa5, 0x92, 0x68, 0x09, 0xe8, 0x9f, 0x5a, 0x2b, 0x00, 0x8e, 0x13, 0x8b, 0x6d, 0xe7, 0x96,
0xe0, 0x7a, 0x55, 0xe7, 0x2a, 0x62, 0xdf, 0x58, 0xd5, 0x99, 0xc6, 0x87, 0x00, 0xf8, 0xbc, 0x61,
0x3a, 0xd8, 0xd5, 0x74, 0xc2, 0xc2, 0xdc, 0xd4, 0xa3, 0xf4, 0x26, 0x2f, 0xf1, 0xd9, 0xf4, 0x4a,
0x7c, 0x36, 0xcb, 0x5e, 0x85, 0x90, 0x3a, 0x29, 0xa4, 0x33, 0x44, 0xf9, 0x23, 0x09, 0xd0, 0x17,
0xcd, 0x8a, 0x49, 0x9c, 0xab, 0x84, 0xed, 0x65, 0xf0, 0x0e, 0x46, 0xa6, 0x21, 0xc0, 0xfa, 0x27,
0x25, 0x03, 0x6d, 0xc2, 0x8d, 0x57, 0xb8, 0x72, 0x6a, 0xdb, 0x67, 0x9a, 0x6b, 0x9e, 0xd4, 0xe9,
0x19, 0x9f, 0x4e, 0x8a, 0x63, 0x9f, 0x17, 0x5d, 0x25, 0xde, 0xf3, 0x39, 0xbe, 0x50, 0xbe, 0x82,
0x15, 0xfe, 0xae, 0x75, 0x03, 0xf2, 0x96, 0xe4, 0xc3, 0x30, 0x97, 0x5a, 0x62, 0x2e, 0x15, 0xa2,
0xd4, 0x79, 0x7f, 0x98, 0xc3, 0x24, 0xda, 0x74, 0x8f, 0xab, 0xfd, 0x82, 0x05, 0xf4, 0x30, 0x33,
0x62, 0x65, 0xfb, 0x80, 0xf8, 0x15, 0xac, 0xf0, 0xf7, 0x6a, 0x28, 0x04, 0xec, 0xc1, 0x0a, 0x7f,
0x9f, 0xfa, 0xe5, 0x60, 0xfd, 0x5f, 0x25, 0x98, 0xeb, 0xb8, 0xdb, 0x44, 0x13, 0x30, 0xb6, 0x57,
0x2e, 0x17, 0xe5, 0x37, 0xd0, 0x34, 0x4c, 0xe4, 0x0f, 0x9e, 0x16, 0x8e, 0xbe, 0xcc, 0x6e, 0xcb,
0x12, 0x9a, 0x83, 0xa9, 0xf2, 0x5e, 0xfe, 0x20, 0x57, 0xda, 0x3e, 0xcc, 0xa8, 0x59, 0x79, 0x04,
0xcd, 0xc0, 0xe4, 0xfe, 0xcf, 0xb2, 0xbb, 0xcf, 0xf2, 0x3b, 0xbb, 0x25, 0x79, 0x94, 0x3e, 0x16,
0x0e, 0xd5, 0xcc, 0x4e, 0xe1, 0xf0, 0x28, 0x2b, 0x8f, 0xa1, 0x59, 0x80, 0xdc, 0x4e, 0x51, 0x2b,
0x1e, 0x6d, 0x97, 0x8e, 0xb6, 0xe5, 0x6b, 0x68, 0x0a, 0xae, 0x67, 0x9e, 0x97, 0xb4, 0xd2, 0x41,
0x49, 0x1e, 0x47, 0x37, 0x61, 0x3e, 0xf3, 0xe2, 0x48, 0xdd, 0xd5, 0x4a, 0xbb, 0x2a, 0xd5, 0xd7,
0xb6, 0x8f, 0x4a, 0xf2, 0x75, 0x3a, 0x60, 0xe1, 0x70, 0x67, 0x27, 0xa3, 0x96, 0x0f, 0xe5, 0x09,
0x24, 0xc3, 0x74, 0x31, 0x5f, 0x38, 0x2c, 0x6b, 0x7c, 0x58, 0x79, 0x92, 0x42, 0xa0, 0xef, 0xa5,
0x96, 0x2b, 0x1c, 0x6e, 0x67, 0x0a, 0x32, 0x50, 0xa3, 0x5f, 0x1c, 0x6d, 0xe7, 0xcb, 0xea, 0xa1,
0x3c, 0xb5, 0xfe, 0x10, 0x26, 0xfd, 0xad, 0x30, 0x9d, 0xc5, 0x67, 0xa5, 0xc3, 0x03, 0x3e, 0x8b,
0xa2, 0x7a, 0x58, 0x3e, 0xdc, 0x3e, 0x7a, 0x2a, 0x4b, 0x54, 0x83, 0xb6, 0x6b, 0xcf, 0xde, 0x97,
0x47, 0xd6, 0x9f, 0xc0, 0x7c, 0xd7, 0x2d, 0x23, 0x1a, 0x87, 0x91, 0x83, 0x92, 0xfc, 0x06, 0xba,
0x06, 0xd2, 0x91, 0x2c, 0xd1, 0xc7, 0xfd, 0x92, 0x3c, 0x42, 0x1f, 0xe9, 0x2c, 0xaf, 0x81, 0xb4,
0x2f, 0x8f, 0xd1, 0x7f, 0xf6, 0xe4, 0x6b, 0xeb, 0xef, 0x51, 0xfa, 0xda, 0xae, 0x1c, 0xe9, 0xbc,
0x3d, 0xd2, 0xb4, 0xf7, 0xe4, 0x37, 0xda, 0x9e, 0x1f, 0xc9, 0xd2, 0xa3, 0xff, 0xce, 0x00, 0x0a,
0x94, 0xc9, 0x88, 0x2d, 0x1b, 0xc2, 0x30, 0xce, 0x5f, 0x19, 0xf4, 0x26, 0xf3, 0x81, 0xa8, 0x92,
0xac, 0xf4, 0x9d, 0xa8, 0x6e, 0xee, 0xb5, 0xca, 0xf2, 0xef, 0xff, 0xdb, 0xf7, 0xbf, 0x18, 0x59,
0x54, 0xe6, 0x3b, 0x8b, 0x0e, 0xdd, 0x8f, 0xa4, 0x75, 0xf4, 0x35, 0x8c, 0xe6, 0x30, 0x41, 0xbc,
0xfc, 0x25, 0xb4, 0xf2, 0x2a, 0x7d, 0x3b, 0xb4, 0x4f, 0x58, 0xbf, 0xc3, 0xac, 0xa7, 0xd0, 0x62,
0x97, 0xf5, 0xad, 0xdf, 0x33, 0x8d, 0xef, 0x50, 0x1d, 0xc6, 0xb9, 0xe3, 0x8b, 0x69, 0x44, 0x55,
0x59, 0xa5, 0x17, 0xbb, 0xa2, 0xda, 0x6e, 0xad, 0x41, 0x2e, 0x94, 0x0d, 0x36, 0xc0, 0xfd, 0xb4,
0x12, 0x32, 0x40, 0xb0, 0x82, 0xd2, 0x34, 0xbe, 0xa3, 0xf3, 0xd1, 0x60, 0x9c, 0xbf, 0x0a, 0x62,
0xbc, 0xa8, 0x2a, 0xac, 0xc8, 0xf1, 0xc4, 0x84, 0xd6, 0xa3, 0x26, 0xf4, 0x15, 0x8c, 0x15, 0x4c,
0x97, 0x20, 0xce, 0x4a, 0x78, 0xdd, 0x56, 0x7a, 0x39, 0xbc, 0x53, 0x70, 0x76, 0x8b, 0x0d, 0x71,
0x03, 0x75, 0xaf, 0x08, 0xfa, 0x95, 0x04, 0x37, 0x43, 0xab, 0x4a, 0xd0, 0x5a, 0x60, 0x99, 0xc3,
0xeb, 0x24, 0x22, 0xa7, 0xf4, 0x39, 0x1b, 0x6f, 0x57, 0xf9, 0x34, 0x6c, 0x4a, 0x2d, 0x33, 0x9b,
0xed, 0x01, 0xe2, 0xbb, 0xad, 0x40, 0x9f, 0xbb, 0x75, 0x4a, 0x48, 0x83, 0x12, 0xfc, 0x0b, 0x09,
0x50, 0x77, 0x6d, 0x09, 0xba, 0xe3, 0x39, 0x49, 0x04, 0xb6, 0x95, 0xc8, 0x7e, 0x41, 0xca, 0x4f,
0x18, 0xc8, 0x0f, 0xd0, 0xe3, 0xf8, 0x75, 0x0e, 0x07, 0xc6, 0x78, 0x0b, 0xad, 0x4d, 0x11, 0xbc,
0xc5, 0xd5, 0xad, 0x24, 0xf1, 0x96, 0x1e, 0x08, 0x6f, 0x7f, 0x22, 0xc1, 0xcd, 0xd0, 0x2a, 0x17,
0x81, 0x30, 0xae, 0x02, 0x26, 0x12, 0xa1, 0x20, 0x6d, 0xfd, 0x6a, 0xa4, 0xfd, 0xad, 0xe4, 0x55,
0x66, 0x86, 0x96, 0x91, 0x04, 0x1c, 0x2e, 0xfa, 0xb2, 0x3d, 0x12, 0xda, 0x21, 0x83, 0x96, 0x57,
0xb2, 0xfd, 0x90, 0x67, 0xb2, 0x71, 0x8d, 0x0a, 0x25, 0xf0, 0x2f, 0x24, 0x56, 0xf1, 0x19, 0x06,
0x55, 0xf1, 0x9c, 0x2b, 0x06, 0xe7, 0xdd, 0x58, 0x19, 0xe1, 0x84, 0x9f, 0x32, 0xd0, 0x1f, 0xa1,
0x1f, 0x5f, 0x96, 0x4f, 0x0f, 0x28, 0xe3, 0x34, 0xb2, 0x00, 0x42, 0x70, 0x9a, 0x54, 0x20, 0x91,
0xc4, 0x69, 0x7a, 0x60, 0x9c, 0xfe, 0x52, 0x82, 0x5b, 0x91, 0xe5, 0x14, 0x02, 0x6d, 0x52, 0xb9,
0x45, 0x24, 0x5a, 0x41, 0xe6, 0xfa, 0xd5, 0xc9, 0xfc, 0x47, 0xc9, 0xab, 0xb1, 0x8b, 0x28, 0xd4,
0x78, 0x10, 0xf0, 0xd1, 0xd8, 0x1b, 0xff, 0x48, 0x90, 0x2a, 0x03, 0x59, 0x50, 0x72, 0xfd, 0x50,
0x4a, 0xd8, 0xd0, 0x15, 0x3a, 0x34, 0x65, 0xf5, 0xef, 0x25, 0x56, 0xc2, 0x17, 0x55, 0x5c, 0xe2,
0x39, 0x62, 0x3c, 0xe0, 0xb7, 0x92, 0xc4, 0x84, 0xcb, 0xee, 0xb0, 0x09, 0x7c, 0x82, 0x3e, 0xbe,
0x2c, 0xcb, 0x01, 0xd0, 0x8c, 0xe8, 0xb8, 0xea, 0x0c, 0x41, 0x74, 0x0f, 0x05, 0x1c, 0x49, 0x44,
0xa7, 0x07, 0x49, 0xf4, 0x5f, 0x4a, 0x5e, 0xe5, 0x60, 0x2c, 0xec, 0x1e, 0x2a, 0x42, 0x22, 0x61,
0x0b, 0x7a, 0xd7, 0xfb, 0xa2, 0xf7, 0xef, 0x24, 0x48, 0x47, 0x57, 0x7b, 0xa0, 0xb7, 0x02, 0x5e,
0x1c, 0x53, 0xa1, 0x10, 0x89, 0xb1, 0xc8, 0x30, 0x7e, 0xa6, 0xec, 0xf6, 0x43, 0x6d, 0xed, 0xc2,
0xe0, 0x03, 0x53, 0x62, 0xff, 0x4a, 0x82, 0xa5, 0x88, 0x9a, 0x0f, 0xe4, 0x07, 0xd2, 0x38, 0xa8,
0xf7, 0xe2, 0x85, 0x84, 0xef, 0x66, 0x18, 0xf0, 0x8f, 0xd1, 0x87, 0x97, 0x25, 0xd7, 0x07, 0xcb,
0xa8, 0x8d, 0xae, 0x1e, 0x11, 0xd4, 0x26, 0x96, 0x97, 0x24, 0x51, 0x9b, 0x1e, 0x1c, 0xb5, 0xbf,
0x92, 0x20, 0x1d, 0x5d, 0x8c, 0x22, 0x00, 0x27, 0x56, 0xab, 0x44, 0x02, 0x16, 0x94, 0xae, 0xf7,
0x49, 0x69, 0xf4, 0xc5, 0x7b, 0x9b, 0xb7, 0xc6, 0x5c, 0x16, 0x0f, 0xd7, 0x5b, 0x2d, 0xdb, 0xd1,
0xab, 0x74, 0xe0, 0x80, 0xb7, 0x86, 0xa2, 0xf5, 0xbd, 0x35, 0x0e, 0xea, 0xbd, 0x78, 0xa1, 0x7e,
0xbd, 0xd5, 0x07, 0x1b, 0xf0, 0xd6, 0x18, 0x6a, 0x13, 0x6f, 0xfa, 0x87, 0xeb, 0xad, 0x6d, 0xd4,
0xb6, 0xbc, 0x35, 0x06, 0x70, 0x62, 0xe1, 0xc0, 0xe0, 0xbd, 0xb5, 0x45, 0xe9, 0x6f, 0x7c, 0x6f,
0x0d, 0x2d, 0x39, 0x08, 0x7a, 0x6b, 0xcc, 0x55, 0xf2, 0x70, 0xf7, 0x07, 0x27, 0xd5, 0xc6, 0x46,
0xa3, 0x59, 0xd9, 0x70, 0x9b, 0x6c, 0xd7, 0xf5, 0x37, 0xdc, 0x5f, 0x43, 0xf1, 0xfa, 0xfe, 0x1a,
0x07, 0xf6, 0x5e, 0xbc, 0x50, 0xbf, 0x3b, 0x83, 0x00, 0x5c, 0x46, 0x6f, 0xf4, 0x55, 0x7f, 0x9b,
0xc7, 0xf6, 0x41, 0x6f, 0x7a, 0x90, 0xf4, 0xfe, 0xb9, 0xef, 0xb3, 0x31, 0x90, 0x13, 0x8b, 0x0b,
0x06, 0xbf, 0x23, 0x08, 0xd2, 0xfa, 0x6b, 0x09, 0x96, 0x22, 0xee, 0xe8, 0x85, 0x0b, 0xc4, 0xdf,
0xe0, 0x47, 0xa2, 0x3b, 0x60, 0xe8, 0xf6, 0x94, 0x9d, 0x7e, 0x08, 0xd5, 0x5f, 0xb9, 0x1b, 0x2e,
0xcf, 0x0f, 0xfd, 0x52, 0x82, 0x85, 0xb0, 0xab, 0x7a, 0xb4, 0xea, 0x67, 0x85, 0xa2, 0x20, 0xae,
0xc5, 0x48, 0x08, 0x17, 0x7d, 0xc2, 0xd0, 0x7e, 0x88, 0x7e, 0x74, 0x59, 0x2e, 0x05, 0x42, 0xc6,
0x63, 0xc4, 0x7d, 0xbf, 0xe0, 0x31, 0xbe, 0x1a, 0x20, 0x89, 0xc7, 0xf4, 0xa0, 0x78, 0xfc, 0x53,
0x09, 0x96, 0x22, 0x8a, 0x07, 0x04, 0xd0, 0xf8, 0xd2, 0x82, 0x48, 0xa0, 0x82, 0xc2, 0xf5, 0x2b,
0x53, 0xf8, 0x2f, 0x92, 0x77, 0x51, 0x1a, 0x53, 0x92, 0xf0, 0x6e, 0xd0, 0x27, 0x93, 0x6e, 0x96,
0x23, 0xb1, 0x7e, 0xc9, 0xb0, 0xaa, 0xca, 0x7e, 0x5f, 0xa4, 0xd2, 0xe1, 0x37, 0xc4, 0xff, 0x5b,
0xdd, 0xa8, 0x34, 0x19, 0xbd, 0xbf, 0x93, 0x58, 0xf2, 0x3e, 0x66, 0x06, 0x6f, 0xfb, 0xde, 0x98,
0x08, 0x7f, 0xbd, 0x17, 0x51, 0xe1, 0xc1, 0x79, 0x36, 0xa5, 0x1d, 0x94, 0xb9, 0x34, 0xfd, 0x9d,
0xd3, 0x60, 0x0b, 0x91, 0x54, 0x29, 0x20, 0x16, 0xa2, 0xc7, 0x82, 0x82, 0xa4, 0x85, 0x48, 0x0f,
0x7e, 0x21, 0xfe, 0x41, 0xf2, 0x2e, 0x84, 0x13, 0x27, 0xd1, 0x63, 0x9d, 0x42, 0xe4, 0x24, 0x04,
0xf5, 0xeb, 0x03, 0xa0, 0xbe, 0x95, 0x09, 0x0b, 0xad, 0x74, 0x68, 0xdb, 0xf1, 0x46, 0x5d, 0x73,
0x0f, 0x37, 0x13, 0xe6, 0x95, 0x36, 0x04, 0x32, 0x61, 0x61, 0x50, 0x95, 0xd6, 0x4e, 0x36, 0x12,
0xe7, 0xdd, 0x58, 0x99, 0x7e, 0x33, 0x61, 0x1e, 0xd0, 0x40, 0x26, 0x2c, 0x9a, 0xd3, 0xa4, 0xd2,
0x84, 0xe1, 0x66, 0xc2, 0x82, 0x9c, 0xb6, 0x32, 0x61, 0xd1, 0x68, 0x93, 0x0a, 0x1d, 0x06, 0x9f,
0x09, 0xf3, 0xc9, 0xfc, 0xad, 0x9f, 0x09, 0x8b, 0x28, 0x91, 0x08, 0x66, 0xc2, 0x62, 0x6f, 0xd5,
0x23, 0x41, 0x96, 0x18, 0xc8, 0x7d, 0x65, 0xaf, 0x1f, 0x4a, 0x1b, 0x74, 0xe8, 0x0d, 0x9e, 0xfb,
0xa0, 0xb4, 0xfe, 0x86, 0xa7, 0xc2, 0xa2, 0xea, 0x3a, 0x3c, 0x4f, 0x8c, 0x47, 0xfc, 0x56, 0x92,
0x98, 0xf0, 0xd9, 0x2c, 0x9b, 0xc1, 0x4f, 0xd1, 0x4f, 0x2e, 0x4b, 0x73, 0x10, 0x35, 0xa3, 0x3a,
0xae, 0x06, 0xa2, 0x2d, 0x17, 0xd6, 0x17, 0xd5, 0xe9, 0x81, 0x52, 0xfd, 0x6b, 0x3f, 0x19, 0x16,
0x8b, 0xbb, 0x87, 0xc2, 0x8b, 0x48, 0xdc, 0x82, 0xe0, 0xf5, 0xfe, 0x08, 0xfe, 0x03, 0x09, 0xe4,
0x8e, 0xff, 0x26, 0xeb, 0x06, 0xae, 0xd3, 0x42, 0xf0, 0x2c, 0x87, 0x77, 0x8a, 0x65, 0xff, 0x11,
0x43, 0xf5, 0x1e, 0xda, 0xba, 0x24, 0x2a, 0xf4, 0x1f, 0x12, 0x3c, 0xe8, 0xb5, 0xbc, 0x03, 0x3d,
0x16, 0x4e, 0x78, 0xa9, 0x42, 0x93, 0xf4, 0x0f, 0x2f, 0xa9, 0x25, 0xa6, 0xb4, 0xc7, 0xa6, 0xb4,
0x1d, 0x7a, 0x63, 0x17, 0x9f, 0xc5, 0xf9, 0x96, 0x90, 0xad, 0x6a, 0x00, 0xf6, 0x5f, 0x4b, 0xde,
0xaf, 0x79, 0x84, 0xd4, 0x82, 0xdc, 0x0b, 0x04, 0x8d, 0xc8, 0xd2, 0x81, 0xe1, 0x1e, 0x35, 0xbe,
0xe5, 0xc3, 0x8a, 0x5c, 0xc3, 0xcd, 0xd0, 0x02, 0x0c, 0xe4, 0x9f, 0x24, 0xa2, 0x41, 0x2a, 0x71,
0x22, 0xfd, 0x9e, 0x36, 0x04, 0x48, 0x46, 0x66, 0x54, 0x19, 0x87, 0x20, 0x33, 0xa1, 0xca, 0x63,
0xb8, 0xe7, 0x8d, 0x00, 0x99, 0x7f, 0x26, 0x79, 0xbf, 0x40, 0x12, 0x09, 0x35, 0xa1, 0x64, 0x64,
0xf0, 0x27, 0x0e, 0x01, 0x6f, 0xfb, 0x1c, 0xd6, 0x4c, 0x7b, 0xb3, 0x7a, 0x6a, 0x3a, 0x0d, 0x97,
0xe8, 0xd5, 0x33, 0x86, 0x46, 0x77, 0x37, 0xbd, 0x5f, 0x47, 0xa2, 0xcf, 0xdb, 0x72, 0xe0, 0xe6,
0xbc, 0x48, 0x01, 0x14, 0xa5, 0x17, 0x4f, 0x4e, 0x4c, 0x72, 0xda, 0xac, 0x6c, 0x56, 0xed, 0xda,
0x96, 0xab, 0x9f, 0xe8, 0xce, 0x46, 0x43, 0x27, 0xd8, 0xda, 0x70, 0x2d, 0x77, 0xab, 0x65, 0x6e,
0x83, 0xc2, 0x3a, 0xb1, 0xb7, 0x5e, 0xbe, 0xbf, 0xd5, 0xf1, 0x93, 0x4b, 0x95, 0x71, 0x36, 0x95,
0xf7, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0x2b, 0xd1, 0x4a, 0xea, 0x8c, 0x49, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ApplicationServiceClient is the client API for ApplicationService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ApplicationServiceClient interface {
// Create creates the given application.
Create(ctx context.Context, in *CreateApplicationRequest, opts ...grpc.CallOption) (*CreateApplicationResponse, error)
// Get returns the requested application.
Get(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*GetApplicationResponse, error)
// Update updates the given application.
Update(ctx context.Context, in *UpdateApplicationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Delete deletes the given application.
Delete(ctx context.Context, in *DeleteApplicationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// List lists the available applications.
List(ctx context.Context, in *ListApplicationRequest, opts ...grpc.CallOption) (*ListApplicationResponse, error)
// CreateHTTPIntegration creates a HTTP application-integration.
CreateHTTPIntegration(ctx context.Context, in *CreateHTTPIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetHTTPIntegration returns the HTTP application-integration.
GetHTTPIntegration(ctx context.Context, in *GetHTTPIntegrationRequest, opts ...grpc.CallOption) (*GetHTTPIntegrationResponse, error)
// UpdateHTTPIntegration updates the HTTP application-integration.
UpdateHTTPIntegration(ctx context.Context, in *UpdateHTTPIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteIntegration deletes the HTTP application-integration.
DeleteHTTPIntegration(ctx context.Context, in *DeleteHTTPIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateInfluxDBIntegration create an InfluxDB application-integration.
CreateInfluxDBIntegration(ctx context.Context, in *CreateInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetInfluxDBIntegration returns the InfluxDB application-integration.
GetInfluxDBIntegration(ctx context.Context, in *GetInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*GetInfluxDBIntegrationResponse, error)
// UpdateInfluxDBIntegration updates the InfluxDB application-integration.
UpdateInfluxDBIntegration(ctx context.Context, in *UpdateInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteInfluxDBIntegration deletes the InfluxDB application-integration.
DeleteInfluxDBIntegration(ctx context.Context, in *DeleteInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateThingsBoardIntegration creates a ThingsBoard application-integration.
CreateThingsBoardIntegration(ctx context.Context, in *CreateThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetThingsBoardIntegration returns the ThingsBoard application-integration.
GetThingsBoardIntegration(ctx context.Context, in *GetThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*GetThingsBoardIntegrationResponse, error)
// UpdateThingsBoardIntegration updates the ThingsBoard
// application-integration.
UpdateThingsBoardIntegration(ctx context.Context, in *UpdateThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteThingsBoardIntegration deletes the ThingsBoard
// application-integration.
DeleteThingsBoardIntegration(ctx context.Context, in *DeleteThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateMyDevicesIntegration creates a MyDevices application-integration.
CreateMyDevicesIntegration(ctx context.Context, in *CreateMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetMyDevicesIntegration returns the MyDevices application-integration.
GetMyDevicesIntegration(ctx context.Context, in *GetMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*GetMyDevicesIntegrationResponse, error)
// UpdateMyDevicesIntegration updates the MyDevices application-integration.
UpdateMyDevicesIntegration(ctx context.Context, in *UpdateMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteMyDevicesIntegration deletes the MyDevices application-integration.
DeleteMyDevicesIntegration(ctx context.Context, in *DeleteMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateLoRaCloudIntegration creates A LoRaCloud application-integration.
CreateLoRaCloudIntegration(ctx context.Context, in *CreateLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetLoRaCloudIntegration returns the LoRaCloud application-integration.
GetLoRaCloudIntegration(ctx context.Context, in *GetLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*GetLoRaCloudIntegrationResponse, error)
// UpdateLoRaCloudIntegration updates the LoRaCloud application-integration.
UpdateLoRaCloudIntegration(ctx context.Context, in *UpdateLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteLoRaCloudIntegration deletes the LoRaCloud application-integration.
DeleteLoRaCloudIntegration(ctx context.Context, in *DeleteLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateGCPPubSubIntegration creates a GCP PubSub application-integration.
CreateGCPPubSubIntegration(ctx context.Context, in *CreateGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetGCPPubSubIntegration returns the GCP PubSub application-integration.
GetGCPPubSubIntegration(ctx context.Context, in *GetGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*GetGCPPubSubIntegrationResponse, error)
// UpdateGCPPubSubIntegration updates the GCP PubSub application-integration.
UpdateGCPPubSubIntegration(ctx context.Context, in *UpdateGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteGCPPubSubIntegration deletes the GCP PubSub application-integration.
DeleteGCPPubSubIntegration(ctx context.Context, in *DeleteGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateAWSSNSIntegration creates a AWS SNS application-integration.
CreateAWSSNSIntegration(ctx context.Context, in *CreateAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetAWSSNSIntegration returns the AWS SNS application-integration.
GetAWSSNSIntegration(ctx context.Context, in *GetAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*GetAWSSNSIntegrationResponse, error)
// UpdateAWSSNSIntegration updates the AWS SNS application-integration.
UpdateAWSSNSIntegration(ctx context.Context, in *UpdateAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteAWSSNSIntegration deletes the AWS SNS application-integration.
DeleteAWSSNSIntegration(ctx context.Context, in *DeleteAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateAzureServiceBusIntegration creates an Azure Service-Bus
// application-integration.
CreateAzureServiceBusIntegration(ctx context.Context, in *CreateAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetAzureServiceBusIntegration returns the Azure Service-Bus
// application-integration.
GetAzureServiceBusIntegration(ctx context.Context, in *GetAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*GetAzureServiceBusIntegrationResponse, error)
// UpdateAzureServiceBusIntegration updates the Azure Service-Bus
// application-integration.
UpdateAzureServiceBusIntegration(ctx context.Context, in *UpdateAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus
// application-integration.
DeleteAzureServiceBusIntegration(ctx context.Context, in *DeleteAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateLoccartoIntegration creates A Loccarto application-integration.
CreateLoccartoIntegration(ctx context.Context, in *CreateLoccartoIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetLoccartoIntegration returns the Loccarto application-integration.
GetLoccartoIntegration(ctx context.Context, in *GetLoccartoIntegrationRequest, opts ...grpc.CallOption) (*GetLoccartoIntegrationResponse, error)
// UpdateLoccartoIntegration updates the Loccarto application-integration.
UpdateLoccartoIntegration(ctx context.Context, in *UpdateLoccartoIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteLoccartoIntegration deletes the Loccarto application-integration.
DeleteLoccartoIntegration(ctx context.Context, in *DeleteLoccartoIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreatePilotThingsIntegration creates an Pilot Things
// application-integration.
CreatePilotThingsIntegration(ctx context.Context, in *CreatePilotThingsIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetPilotThingsIntegration returns the Pilot Things application-integration.
GetPilotThingsIntegration(ctx context.Context, in *GetPilotThingsIntegrationRequest, opts ...grpc.CallOption) (*GetPilotThingsIntegrationResponse, error)
// UpdatePilotThingsIntegration updates the Pilot Things
// application-integration.
UpdatePilotThingsIntegration(ctx context.Context, in *UpdatePilotThingsIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeletePilotThingsIntegration deletes the Pilot Things
// application-integration.
DeletePilotThingsIntegration(ctx context.Context, in *DeletePilotThingsIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// ListIntegrations lists all configured integrations.
ListIntegrations(ctx context.Context, in *ListIntegrationRequest, opts ...grpc.CallOption) (*ListIntegrationResponse, error)
// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate
// to connect to the MQTT broker.
GenerateMQTTIntegrationClientCertificate(ctx context.Context, in *GenerateMQTTIntegrationClientCertificateRequest, opts ...grpc.CallOption) (*GenerateMQTTIntegrationClientCertificateResponse, error)
// CreateQubitroIntegration creates a Qubitro
// application-integration.
CreateQubitroIntegration(ctx context.Context, in *CreateQubitroIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetQubitroIntegration returns the Qubitro
// application-integration.
GetQubitroIntegration(ctx context.Context, in *GetQubitroIntegrationRequest, opts ...grpc.CallOption) (*GetQubitroIntegrationResponse, error)
// UpdateQubitroIntegration updates the Qubitro
// application-integration.
UpdateQubitroIntegration(ctx context.Context, in *UpdateQubitroIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeleteQubitroIntegration deletes the Qubitro
// application-integration.
DeleteQubitroIntegration(ctx context.Context, in *DeleteQubitroIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type applicationServiceClient struct {
cc grpc.ClientConnInterface
}
func NewApplicationServiceClient(cc grpc.ClientConnInterface) ApplicationServiceClient {
return &applicationServiceClient{cc}
}
func (c *applicationServiceClient) Create(ctx context.Context, in *CreateApplicationRequest, opts ...grpc.CallOption) (*CreateApplicationResponse, error) {
out := new(CreateApplicationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) Get(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*GetApplicationResponse, error) {
out := new(GetApplicationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) Update(ctx context.Context, in *UpdateApplicationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) Delete(ctx context.Context, in *DeleteApplicationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) List(ctx context.Context, in *ListApplicationRequest, opts ...grpc.CallOption) (*ListApplicationResponse, error) {
out := new(ListApplicationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateHTTPIntegration(ctx context.Context, in *CreateHTTPIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateHTTPIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetHTTPIntegration(ctx context.Context, in *GetHTTPIntegrationRequest, opts ...grpc.CallOption) (*GetHTTPIntegrationResponse, error) {
out := new(GetHTTPIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetHTTPIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateHTTPIntegration(ctx context.Context, in *UpdateHTTPIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateHTTPIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteHTTPIntegration(ctx context.Context, in *DeleteHTTPIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteHTTPIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateInfluxDBIntegration(ctx context.Context, in *CreateInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateInfluxDBIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetInfluxDBIntegration(ctx context.Context, in *GetInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*GetInfluxDBIntegrationResponse, error) {
out := new(GetInfluxDBIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetInfluxDBIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateInfluxDBIntegration(ctx context.Context, in *UpdateInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateInfluxDBIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteInfluxDBIntegration(ctx context.Context, in *DeleteInfluxDBIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteInfluxDBIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateThingsBoardIntegration(ctx context.Context, in *CreateThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateThingsBoardIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetThingsBoardIntegration(ctx context.Context, in *GetThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*GetThingsBoardIntegrationResponse, error) {
out := new(GetThingsBoardIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetThingsBoardIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateThingsBoardIntegration(ctx context.Context, in *UpdateThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateThingsBoardIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteThingsBoardIntegration(ctx context.Context, in *DeleteThingsBoardIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteThingsBoardIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateMyDevicesIntegration(ctx context.Context, in *CreateMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateMyDevicesIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetMyDevicesIntegration(ctx context.Context, in *GetMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*GetMyDevicesIntegrationResponse, error) {
out := new(GetMyDevicesIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetMyDevicesIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateMyDevicesIntegration(ctx context.Context, in *UpdateMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateMyDevicesIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteMyDevicesIntegration(ctx context.Context, in *DeleteMyDevicesIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteMyDevicesIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateLoRaCloudIntegration(ctx context.Context, in *CreateLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateLoRaCloudIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetLoRaCloudIntegration(ctx context.Context, in *GetLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*GetLoRaCloudIntegrationResponse, error) {
out := new(GetLoRaCloudIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetLoRaCloudIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateLoRaCloudIntegration(ctx context.Context, in *UpdateLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateLoRaCloudIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteLoRaCloudIntegration(ctx context.Context, in *DeleteLoRaCloudIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteLoRaCloudIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateGCPPubSubIntegration(ctx context.Context, in *CreateGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateGCPPubSubIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetGCPPubSubIntegration(ctx context.Context, in *GetGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*GetGCPPubSubIntegrationResponse, error) {
out := new(GetGCPPubSubIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetGCPPubSubIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateGCPPubSubIntegration(ctx context.Context, in *UpdateGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateGCPPubSubIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteGCPPubSubIntegration(ctx context.Context, in *DeleteGCPPubSubIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteGCPPubSubIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateAWSSNSIntegration(ctx context.Context, in *CreateAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateAWSSNSIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetAWSSNSIntegration(ctx context.Context, in *GetAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*GetAWSSNSIntegrationResponse, error) {
out := new(GetAWSSNSIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetAWSSNSIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateAWSSNSIntegration(ctx context.Context, in *UpdateAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateAWSSNSIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteAWSSNSIntegration(ctx context.Context, in *DeleteAWSSNSIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteAWSSNSIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateAzureServiceBusIntegration(ctx context.Context, in *CreateAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateAzureServiceBusIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetAzureServiceBusIntegration(ctx context.Context, in *GetAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*GetAzureServiceBusIntegrationResponse, error) {
out := new(GetAzureServiceBusIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetAzureServiceBusIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateAzureServiceBusIntegration(ctx context.Context, in *UpdateAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateAzureServiceBusIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteAzureServiceBusIntegration(ctx context.Context, in *DeleteAzureServiceBusIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteAzureServiceBusIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateLoccartoIntegration(ctx context.Context, in *CreateLoccartoIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateLoccartoIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetLoccartoIntegration(ctx context.Context, in *GetLoccartoIntegrationRequest, opts ...grpc.CallOption) (*GetLoccartoIntegrationResponse, error) {
out := new(GetLoccartoIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetLoccartoIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateLoccartoIntegration(ctx context.Context, in *UpdateLoccartoIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateLoccartoIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteLoccartoIntegration(ctx context.Context, in *DeleteLoccartoIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteLoccartoIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreatePilotThingsIntegration(ctx context.Context, in *CreatePilotThingsIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreatePilotThingsIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetPilotThingsIntegration(ctx context.Context, in *GetPilotThingsIntegrationRequest, opts ...grpc.CallOption) (*GetPilotThingsIntegrationResponse, error) {
out := new(GetPilotThingsIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetPilotThingsIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdatePilotThingsIntegration(ctx context.Context, in *UpdatePilotThingsIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdatePilotThingsIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeletePilotThingsIntegration(ctx context.Context, in *DeletePilotThingsIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeletePilotThingsIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) ListIntegrations(ctx context.Context, in *ListIntegrationRequest, opts ...grpc.CallOption) (*ListIntegrationResponse, error) {
out := new(ListIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/ListIntegrations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GenerateMQTTIntegrationClientCertificate(ctx context.Context, in *GenerateMQTTIntegrationClientCertificateRequest, opts ...grpc.CallOption) (*GenerateMQTTIntegrationClientCertificateResponse, error) {
out := new(GenerateMQTTIntegrationClientCertificateResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GenerateMQTTIntegrationClientCertificate", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) CreateQubitroIntegration(ctx context.Context, in *CreateQubitroIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/CreateQubitroIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) GetQubitroIntegration(ctx context.Context, in *GetQubitroIntegrationRequest, opts ...grpc.CallOption) (*GetQubitroIntegrationResponse, error) {
out := new(GetQubitroIntegrationResponse)
err := c.cc.Invoke(ctx, "/api.ApplicationService/GetQubitroIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) UpdateQubitroIntegration(ctx context.Context, in *UpdateQubitroIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/UpdateQubitroIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServiceClient) DeleteQubitroIntegration(ctx context.Context, in *DeleteQubitroIntegrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/api.ApplicationService/DeleteQubitroIntegration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ApplicationServiceServer is the server API for ApplicationService service.
type ApplicationServiceServer interface {
// Create creates the given application.
Create(context.Context, *CreateApplicationRequest) (*CreateApplicationResponse, error)
// Get returns the requested application.
Get(context.Context, *GetApplicationRequest) (*GetApplicationResponse, error)
// Update updates the given application.
Update(context.Context, *UpdateApplicationRequest) (*empty.Empty, error)
// Delete deletes the given application.
Delete(context.Context, *DeleteApplicationRequest) (*empty.Empty, error)
// List lists the available applications.
List(context.Context, *ListApplicationRequest) (*ListApplicationResponse, error)
// CreateHTTPIntegration creates a HTTP application-integration.
CreateHTTPIntegration(context.Context, *CreateHTTPIntegrationRequest) (*empty.Empty, error)
// GetHTTPIntegration returns the HTTP application-integration.
GetHTTPIntegration(context.Context, *GetHTTPIntegrationRequest) (*GetHTTPIntegrationResponse, error)
// UpdateHTTPIntegration updates the HTTP application-integration.
UpdateHTTPIntegration(context.Context, *UpdateHTTPIntegrationRequest) (*empty.Empty, error)
// DeleteIntegration deletes the HTTP application-integration.
DeleteHTTPIntegration(context.Context, *DeleteHTTPIntegrationRequest) (*empty.Empty, error)
// CreateInfluxDBIntegration create an InfluxDB application-integration.
CreateInfluxDBIntegration(context.Context, *CreateInfluxDBIntegrationRequest) (*empty.Empty, error)
// GetInfluxDBIntegration returns the InfluxDB application-integration.
GetInfluxDBIntegration(context.Context, *GetInfluxDBIntegrationRequest) (*GetInfluxDBIntegrationResponse, error)
// UpdateInfluxDBIntegration updates the InfluxDB application-integration.
UpdateInfluxDBIntegration(context.Context, *UpdateInfluxDBIntegrationRequest) (*empty.Empty, error)
// DeleteInfluxDBIntegration deletes the InfluxDB application-integration.
DeleteInfluxDBIntegration(context.Context, *DeleteInfluxDBIntegrationRequest) (*empty.Empty, error)
// CreateThingsBoardIntegration creates a ThingsBoard application-integration.
CreateThingsBoardIntegration(context.Context, *CreateThingsBoardIntegrationRequest) (*empty.Empty, error)
// GetThingsBoardIntegration returns the ThingsBoard application-integration.
GetThingsBoardIntegration(context.Context, *GetThingsBoardIntegrationRequest) (*GetThingsBoardIntegrationResponse, error)
// UpdateThingsBoardIntegration updates the ThingsBoard
// application-integration.
UpdateThingsBoardIntegration(context.Context, *UpdateThingsBoardIntegrationRequest) (*empty.Empty, error)
// DeleteThingsBoardIntegration deletes the ThingsBoard
// application-integration.
DeleteThingsBoardIntegration(context.Context, *DeleteThingsBoardIntegrationRequest) (*empty.Empty, error)
// CreateMyDevicesIntegration creates a MyDevices application-integration.
CreateMyDevicesIntegration(context.Context, *CreateMyDevicesIntegrationRequest) (*empty.Empty, error)
// GetMyDevicesIntegration returns the MyDevices application-integration.
GetMyDevicesIntegration(context.Context, *GetMyDevicesIntegrationRequest) (*GetMyDevicesIntegrationResponse, error)
// UpdateMyDevicesIntegration updates the MyDevices application-integration.
UpdateMyDevicesIntegration(context.Context, *UpdateMyDevicesIntegrationRequest) (*empty.Empty, error)
// DeleteMyDevicesIntegration deletes the MyDevices application-integration.
DeleteMyDevicesIntegration(context.Context, *DeleteMyDevicesIntegrationRequest) (*empty.Empty, error)
// CreateLoRaCloudIntegration creates A LoRaCloud application-integration.
CreateLoRaCloudIntegration(context.Context, *CreateLoRaCloudIntegrationRequest) (*empty.Empty, error)
// GetLoRaCloudIntegration returns the LoRaCloud application-integration.
GetLoRaCloudIntegration(context.Context, *GetLoRaCloudIntegrationRequest) (*GetLoRaCloudIntegrationResponse, error)
// UpdateLoRaCloudIntegration updates the LoRaCloud application-integration.
UpdateLoRaCloudIntegration(context.Context, *UpdateLoRaCloudIntegrationRequest) (*empty.Empty, error)
// DeleteLoRaCloudIntegration deletes the LoRaCloud application-integration.
DeleteLoRaCloudIntegration(context.Context, *DeleteLoRaCloudIntegrationRequest) (*empty.Empty, error)
// CreateGCPPubSubIntegration creates a GCP PubSub application-integration.
CreateGCPPubSubIntegration(context.Context, *CreateGCPPubSubIntegrationRequest) (*empty.Empty, error)
// GetGCPPubSubIntegration returns the GCP PubSub application-integration.
GetGCPPubSubIntegration(context.Context, *GetGCPPubSubIntegrationRequest) (*GetGCPPubSubIntegrationResponse, error)
// UpdateGCPPubSubIntegration updates the GCP PubSub application-integration.
UpdateGCPPubSubIntegration(context.Context, *UpdateGCPPubSubIntegrationRequest) (*empty.Empty, error)
// DeleteGCPPubSubIntegration deletes the GCP PubSub application-integration.
DeleteGCPPubSubIntegration(context.Context, *DeleteGCPPubSubIntegrationRequest) (*empty.Empty, error)
// CreateAWSSNSIntegration creates a AWS SNS application-integration.
CreateAWSSNSIntegration(context.Context, *CreateAWSSNSIntegrationRequest) (*empty.Empty, error)
// GetAWSSNSIntegration returns the AWS SNS application-integration.
GetAWSSNSIntegration(context.Context, *GetAWSSNSIntegrationRequest) (*GetAWSSNSIntegrationResponse, error)
// UpdateAWSSNSIntegration updates the AWS SNS application-integration.
UpdateAWSSNSIntegration(context.Context, *UpdateAWSSNSIntegrationRequest) (*empty.Empty, error)
// DeleteAWSSNSIntegration deletes the AWS SNS application-integration.
DeleteAWSSNSIntegration(context.Context, *DeleteAWSSNSIntegrationRequest) (*empty.Empty, error)
// CreateAzureServiceBusIntegration creates an Azure Service-Bus
// application-integration.
CreateAzureServiceBusIntegration(context.Context, *CreateAzureServiceBusIntegrationRequest) (*empty.Empty, error)
// GetAzureServiceBusIntegration returns the Azure Service-Bus
// application-integration.
GetAzureServiceBusIntegration(context.Context, *GetAzureServiceBusIntegrationRequest) (*GetAzureServiceBusIntegrationResponse, error)
// UpdateAzureServiceBusIntegration updates the Azure Service-Bus
// application-integration.
UpdateAzureServiceBusIntegration(context.Context, *UpdateAzureServiceBusIntegrationRequest) (*empty.Empty, error)
// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus
// application-integration.
DeleteAzureServiceBusIntegration(context.Context, *DeleteAzureServiceBusIntegrationRequest) (*empty.Empty, error)
// CreateLoccartoIntegration creates A Loccarto application-integration.
CreateLoccartoIntegration(context.Context, *CreateLoccartoIntegrationRequest) (*empty.Empty, error)
// GetLoccartoIntegration returns the Loccarto application-integration.
GetLoccartoIntegration(context.Context, *GetLoccartoIntegrationRequest) (*GetLoccartoIntegrationResponse, error)
// UpdateLoccartoIntegration updates the Loccarto application-integration.
UpdateLoccartoIntegration(context.Context, *UpdateLoccartoIntegrationRequest) (*empty.Empty, error)
// DeleteLoccartoIntegration deletes the Loccarto application-integration.
DeleteLoccartoIntegration(context.Context, *DeleteLoccartoIntegrationRequest) (*empty.Empty, error)
// CreatePilotThingsIntegration creates an Pilot Things
// application-integration.
CreatePilotThingsIntegration(context.Context, *CreatePilotThingsIntegrationRequest) (*empty.Empty, error)
// GetPilotThingsIntegration returns the Pilot Things application-integration.
GetPilotThingsIntegration(context.Context, *GetPilotThingsIntegrationRequest) (*GetPilotThingsIntegrationResponse, error)
// UpdatePilotThingsIntegration updates the Pilot Things
// application-integration.
UpdatePilotThingsIntegration(context.Context, *UpdatePilotThingsIntegrationRequest) (*empty.Empty, error)
// DeletePilotThingsIntegration deletes the Pilot Things
// application-integration.
DeletePilotThingsIntegration(context.Context, *DeletePilotThingsIntegrationRequest) (*empty.Empty, error)
// ListIntegrations lists all configured integrations.
ListIntegrations(context.Context, *ListIntegrationRequest) (*ListIntegrationResponse, error)
// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate
// to connect to the MQTT broker.
GenerateMQTTIntegrationClientCertificate(context.Context, *GenerateMQTTIntegrationClientCertificateRequest) (*GenerateMQTTIntegrationClientCertificateResponse, error)
// CreateQubitroIntegration creates a Qubitro
// application-integration.
CreateQubitroIntegration(context.Context, *CreateQubitroIntegrationRequest) (*empty.Empty, error)
// GetQubitroIntegration returns the Qubitro
// application-integration.
GetQubitroIntegration(context.Context, *GetQubitroIntegrationRequest) (*GetQubitroIntegrationResponse, error)
// UpdateQubitroIntegration updates the Qubitro
// application-integration.
UpdateQubitroIntegration(context.Context, *UpdateQubitroIntegrationRequest) (*empty.Empty, error)
// DeleteQubitroIntegration deletes the Qubitro
// application-integration.
DeleteQubitroIntegration(context.Context, *DeleteQubitroIntegrationRequest) (*empty.Empty, error)
}
// UnimplementedApplicationServiceServer can be embedded to have forward compatible implementations.
type UnimplementedApplicationServiceServer struct {
}
func (*UnimplementedApplicationServiceServer) Create(ctx context.Context, req *CreateApplicationRequest) (*CreateApplicationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (*UnimplementedApplicationServiceServer) Get(ctx context.Context, req *GetApplicationRequest) (*GetApplicationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedApplicationServiceServer) Update(ctx context.Context, req *UpdateApplicationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (*UnimplementedApplicationServiceServer) Delete(ctx context.Context, req *DeleteApplicationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (*UnimplementedApplicationServiceServer) List(ctx context.Context, req *ListApplicationRequest) (*ListApplicationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateHTTPIntegration(ctx context.Context, req *CreateHTTPIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetHTTPIntegration(ctx context.Context, req *GetHTTPIntegrationRequest) (*GetHTTPIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetHTTPIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateHTTPIntegration(ctx context.Context, req *UpdateHTTPIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteHTTPIntegration(ctx context.Context, req *DeleteHTTPIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteHTTPIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateInfluxDBIntegration(ctx context.Context, req *CreateInfluxDBIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateInfluxDBIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetInfluxDBIntegration(ctx context.Context, req *GetInfluxDBIntegrationRequest) (*GetInfluxDBIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetInfluxDBIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateInfluxDBIntegration(ctx context.Context, req *UpdateInfluxDBIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateInfluxDBIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteInfluxDBIntegration(ctx context.Context, req *DeleteInfluxDBIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteInfluxDBIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateThingsBoardIntegration(ctx context.Context, req *CreateThingsBoardIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateThingsBoardIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetThingsBoardIntegration(ctx context.Context, req *GetThingsBoardIntegrationRequest) (*GetThingsBoardIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetThingsBoardIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateThingsBoardIntegration(ctx context.Context, req *UpdateThingsBoardIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateThingsBoardIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteThingsBoardIntegration(ctx context.Context, req *DeleteThingsBoardIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteThingsBoardIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateMyDevicesIntegration(ctx context.Context, req *CreateMyDevicesIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateMyDevicesIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetMyDevicesIntegration(ctx context.Context, req *GetMyDevicesIntegrationRequest) (*GetMyDevicesIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMyDevicesIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateMyDevicesIntegration(ctx context.Context, req *UpdateMyDevicesIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMyDevicesIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteMyDevicesIntegration(ctx context.Context, req *DeleteMyDevicesIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteMyDevicesIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateLoRaCloudIntegration(ctx context.Context, req *CreateLoRaCloudIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateLoRaCloudIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetLoRaCloudIntegration(ctx context.Context, req *GetLoRaCloudIntegrationRequest) (*GetLoRaCloudIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetLoRaCloudIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateLoRaCloudIntegration(ctx context.Context, req *UpdateLoRaCloudIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateLoRaCloudIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteLoRaCloudIntegration(ctx context.Context, req *DeleteLoRaCloudIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteLoRaCloudIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateGCPPubSubIntegration(ctx context.Context, req *CreateGCPPubSubIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateGCPPubSubIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetGCPPubSubIntegration(ctx context.Context, req *GetGCPPubSubIntegrationRequest) (*GetGCPPubSubIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGCPPubSubIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateGCPPubSubIntegration(ctx context.Context, req *UpdateGCPPubSubIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateGCPPubSubIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteGCPPubSubIntegration(ctx context.Context, req *DeleteGCPPubSubIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteGCPPubSubIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateAWSSNSIntegration(ctx context.Context, req *CreateAWSSNSIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateAWSSNSIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetAWSSNSIntegration(ctx context.Context, req *GetAWSSNSIntegrationRequest) (*GetAWSSNSIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAWSSNSIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateAWSSNSIntegration(ctx context.Context, req *UpdateAWSSNSIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateAWSSNSIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteAWSSNSIntegration(ctx context.Context, req *DeleteAWSSNSIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAWSSNSIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateAzureServiceBusIntegration(ctx context.Context, req *CreateAzureServiceBusIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateAzureServiceBusIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetAzureServiceBusIntegration(ctx context.Context, req *GetAzureServiceBusIntegrationRequest) (*GetAzureServiceBusIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAzureServiceBusIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateAzureServiceBusIntegration(ctx context.Context, req *UpdateAzureServiceBusIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateAzureServiceBusIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteAzureServiceBusIntegration(ctx context.Context, req *DeleteAzureServiceBusIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAzureServiceBusIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateLoccartoIntegration(ctx context.Context, req *CreateLoccartoIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateLoccartoIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetLoccartoIntegration(ctx context.Context, req *GetLoccartoIntegrationRequest) (*GetLoccartoIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetLoccartoIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateLoccartoIntegration(ctx context.Context, req *UpdateLoccartoIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateLoccartoIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteLoccartoIntegration(ctx context.Context, req *DeleteLoccartoIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteLoccartoIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) CreatePilotThingsIntegration(ctx context.Context, req *CreatePilotThingsIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreatePilotThingsIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetPilotThingsIntegration(ctx context.Context, req *GetPilotThingsIntegrationRequest) (*GetPilotThingsIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPilotThingsIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdatePilotThingsIntegration(ctx context.Context, req *UpdatePilotThingsIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdatePilotThingsIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeletePilotThingsIntegration(ctx context.Context, req *DeletePilotThingsIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeletePilotThingsIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) ListIntegrations(ctx context.Context, req *ListIntegrationRequest) (*ListIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListIntegrations not implemented")
}
func (*UnimplementedApplicationServiceServer) GenerateMQTTIntegrationClientCertificate(ctx context.Context, req *GenerateMQTTIntegrationClientCertificateRequest) (*GenerateMQTTIntegrationClientCertificateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GenerateMQTTIntegrationClientCertificate not implemented")
}
func (*UnimplementedApplicationServiceServer) CreateQubitroIntegration(ctx context.Context, req *CreateQubitroIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateQubitroIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) GetQubitroIntegration(ctx context.Context, req *GetQubitroIntegrationRequest) (*GetQubitroIntegrationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetQubitroIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) UpdateQubitroIntegration(ctx context.Context, req *UpdateQubitroIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateQubitroIntegration not implemented")
}
func (*UnimplementedApplicationServiceServer) DeleteQubitroIntegration(ctx context.Context, req *DeleteQubitroIntegrationRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteQubitroIntegration not implemented")
}
func RegisterApplicationServiceServer(s *grpc.Server, srv ApplicationServiceServer) {
s.RegisterService(&_ApplicationService_serviceDesc, srv)
}
func _ApplicationService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).Create(ctx, req.(*CreateApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).Get(ctx, req.(*GetApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).Update(ctx, req.(*UpdateApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).Delete(ctx, req.(*DeleteApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).List(ctx, req.(*ListApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateHTTPIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateHTTPIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateHTTPIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateHTTPIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateHTTPIntegration(ctx, req.(*CreateHTTPIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetHTTPIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetHTTPIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetHTTPIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetHTTPIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetHTTPIntegration(ctx, req.(*GetHTTPIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateHTTPIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateHTTPIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateHTTPIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateHTTPIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateHTTPIntegration(ctx, req.(*UpdateHTTPIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteHTTPIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteHTTPIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteHTTPIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteHTTPIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteHTTPIntegration(ctx, req.(*DeleteHTTPIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateInfluxDBIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateInfluxDBIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateInfluxDBIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateInfluxDBIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateInfluxDBIntegration(ctx, req.(*CreateInfluxDBIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetInfluxDBIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetInfluxDBIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetInfluxDBIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetInfluxDBIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetInfluxDBIntegration(ctx, req.(*GetInfluxDBIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateInfluxDBIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateInfluxDBIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateInfluxDBIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateInfluxDBIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateInfluxDBIntegration(ctx, req.(*UpdateInfluxDBIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteInfluxDBIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteInfluxDBIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteInfluxDBIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteInfluxDBIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteInfluxDBIntegration(ctx, req.(*DeleteInfluxDBIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateThingsBoardIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateThingsBoardIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateThingsBoardIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateThingsBoardIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateThingsBoardIntegration(ctx, req.(*CreateThingsBoardIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetThingsBoardIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetThingsBoardIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetThingsBoardIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetThingsBoardIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetThingsBoardIntegration(ctx, req.(*GetThingsBoardIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateThingsBoardIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateThingsBoardIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateThingsBoardIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateThingsBoardIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateThingsBoardIntegration(ctx, req.(*UpdateThingsBoardIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteThingsBoardIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteThingsBoardIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteThingsBoardIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteThingsBoardIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteThingsBoardIntegration(ctx, req.(*DeleteThingsBoardIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateMyDevicesIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateMyDevicesIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateMyDevicesIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateMyDevicesIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateMyDevicesIntegration(ctx, req.(*CreateMyDevicesIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetMyDevicesIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMyDevicesIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetMyDevicesIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetMyDevicesIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetMyDevicesIntegration(ctx, req.(*GetMyDevicesIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateMyDevicesIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMyDevicesIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateMyDevicesIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateMyDevicesIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateMyDevicesIntegration(ctx, req.(*UpdateMyDevicesIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteMyDevicesIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteMyDevicesIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteMyDevicesIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteMyDevicesIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteMyDevicesIntegration(ctx, req.(*DeleteMyDevicesIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateLoRaCloudIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateLoRaCloudIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateLoRaCloudIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateLoRaCloudIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateLoRaCloudIntegration(ctx, req.(*CreateLoRaCloudIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetLoRaCloudIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetLoRaCloudIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetLoRaCloudIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetLoRaCloudIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetLoRaCloudIntegration(ctx, req.(*GetLoRaCloudIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateLoRaCloudIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateLoRaCloudIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateLoRaCloudIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateLoRaCloudIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateLoRaCloudIntegration(ctx, req.(*UpdateLoRaCloudIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteLoRaCloudIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteLoRaCloudIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteLoRaCloudIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteLoRaCloudIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteLoRaCloudIntegration(ctx, req.(*DeleteLoRaCloudIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateGCPPubSubIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateGCPPubSubIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateGCPPubSubIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateGCPPubSubIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateGCPPubSubIntegration(ctx, req.(*CreateGCPPubSubIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetGCPPubSubIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGCPPubSubIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetGCPPubSubIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetGCPPubSubIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetGCPPubSubIntegration(ctx, req.(*GetGCPPubSubIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateGCPPubSubIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateGCPPubSubIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateGCPPubSubIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateGCPPubSubIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateGCPPubSubIntegration(ctx, req.(*UpdateGCPPubSubIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteGCPPubSubIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteGCPPubSubIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteGCPPubSubIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteGCPPubSubIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteGCPPubSubIntegration(ctx, req.(*DeleteGCPPubSubIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateAWSSNSIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateAWSSNSIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateAWSSNSIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateAWSSNSIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateAWSSNSIntegration(ctx, req.(*CreateAWSSNSIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetAWSSNSIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAWSSNSIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetAWSSNSIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetAWSSNSIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetAWSSNSIntegration(ctx, req.(*GetAWSSNSIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateAWSSNSIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateAWSSNSIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateAWSSNSIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateAWSSNSIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateAWSSNSIntegration(ctx, req.(*UpdateAWSSNSIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteAWSSNSIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAWSSNSIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteAWSSNSIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteAWSSNSIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteAWSSNSIntegration(ctx, req.(*DeleteAWSSNSIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateAzureServiceBusIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateAzureServiceBusIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateAzureServiceBusIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateAzureServiceBusIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateAzureServiceBusIntegration(ctx, req.(*CreateAzureServiceBusIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetAzureServiceBusIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAzureServiceBusIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetAzureServiceBusIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetAzureServiceBusIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetAzureServiceBusIntegration(ctx, req.(*GetAzureServiceBusIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateAzureServiceBusIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateAzureServiceBusIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateAzureServiceBusIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateAzureServiceBusIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateAzureServiceBusIntegration(ctx, req.(*UpdateAzureServiceBusIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteAzureServiceBusIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAzureServiceBusIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteAzureServiceBusIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteAzureServiceBusIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteAzureServiceBusIntegration(ctx, req.(*DeleteAzureServiceBusIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateLoccartoIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateLoccartoIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateLoccartoIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateLoccartoIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateLoccartoIntegration(ctx, req.(*CreateLoccartoIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetLoccartoIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetLoccartoIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetLoccartoIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetLoccartoIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetLoccartoIntegration(ctx, req.(*GetLoccartoIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateLoccartoIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateLoccartoIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateLoccartoIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateLoccartoIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateLoccartoIntegration(ctx, req.(*UpdateLoccartoIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteLoccartoIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteLoccartoIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteLoccartoIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteLoccartoIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteLoccartoIntegration(ctx, req.(*DeleteLoccartoIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreatePilotThingsIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreatePilotThingsIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreatePilotThingsIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreatePilotThingsIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreatePilotThingsIntegration(ctx, req.(*CreatePilotThingsIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetPilotThingsIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPilotThingsIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetPilotThingsIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetPilotThingsIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetPilotThingsIntegration(ctx, req.(*GetPilotThingsIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdatePilotThingsIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdatePilotThingsIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdatePilotThingsIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdatePilotThingsIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdatePilotThingsIntegration(ctx, req.(*UpdatePilotThingsIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeletePilotThingsIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeletePilotThingsIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeletePilotThingsIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeletePilotThingsIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeletePilotThingsIntegration(ctx, req.(*DeletePilotThingsIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_ListIntegrations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).ListIntegrations(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/ListIntegrations",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).ListIntegrations(ctx, req.(*ListIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GenerateMQTTIntegrationClientCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GenerateMQTTIntegrationClientCertificateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GenerateMQTTIntegrationClientCertificate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GenerateMQTTIntegrationClientCertificate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GenerateMQTTIntegrationClientCertificate(ctx, req.(*GenerateMQTTIntegrationClientCertificateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_CreateQubitroIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateQubitroIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).CreateQubitroIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/CreateQubitroIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).CreateQubitroIntegration(ctx, req.(*CreateQubitroIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_GetQubitroIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetQubitroIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).GetQubitroIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/GetQubitroIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).GetQubitroIntegration(ctx, req.(*GetQubitroIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_UpdateQubitroIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateQubitroIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).UpdateQubitroIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/UpdateQubitroIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).UpdateQubitroIntegration(ctx, req.(*UpdateQubitroIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationService_DeleteQubitroIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteQubitroIntegrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServiceServer).DeleteQubitroIntegration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ApplicationService/DeleteQubitroIntegration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServiceServer).DeleteQubitroIntegration(ctx, req.(*DeleteQubitroIntegrationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ApplicationService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.ApplicationService",
HandlerType: (*ApplicationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _ApplicationService_Create_Handler,
},
{
MethodName: "Get",
Handler: _ApplicationService_Get_Handler,
},
{
MethodName: "Update",
Handler: _ApplicationService_Update_Handler,
},
{
MethodName: "Delete",
Handler: _ApplicationService_Delete_Handler,
},
{
MethodName: "List",
Handler: _ApplicationService_List_Handler,
},
{
MethodName: "CreateHTTPIntegration",
Handler: _ApplicationService_CreateHTTPIntegration_Handler,
},
{
MethodName: "GetHTTPIntegration",
Handler: _ApplicationService_GetHTTPIntegration_Handler,
},
{
MethodName: "UpdateHTTPIntegration",
Handler: _ApplicationService_UpdateHTTPIntegration_Handler,
},
{
MethodName: "DeleteHTTPIntegration",
Handler: _ApplicationService_DeleteHTTPIntegration_Handler,
},
{
MethodName: "CreateInfluxDBIntegration",
Handler: _ApplicationService_CreateInfluxDBIntegration_Handler,
},
{
MethodName: "GetInfluxDBIntegration",
Handler: _ApplicationService_GetInfluxDBIntegration_Handler,
},
{
MethodName: "UpdateInfluxDBIntegration",
Handler: _ApplicationService_UpdateInfluxDBIntegration_Handler,
},
{
MethodName: "DeleteInfluxDBIntegration",
Handler: _ApplicationService_DeleteInfluxDBIntegration_Handler,
},
{
MethodName: "CreateThingsBoardIntegration",
Handler: _ApplicationService_CreateThingsBoardIntegration_Handler,
},
{
MethodName: "GetThingsBoardIntegration",
Handler: _ApplicationService_GetThingsBoardIntegration_Handler,
},
{
MethodName: "UpdateThingsBoardIntegration",
Handler: _ApplicationService_UpdateThingsBoardIntegration_Handler,
},
{
MethodName: "DeleteThingsBoardIntegration",
Handler: _ApplicationService_DeleteThingsBoardIntegration_Handler,
},
{
MethodName: "CreateMyDevicesIntegration",
Handler: _ApplicationService_CreateMyDevicesIntegration_Handler,
},
{
MethodName: "GetMyDevicesIntegration",
Handler: _ApplicationService_GetMyDevicesIntegration_Handler,
},
{
MethodName: "UpdateMyDevicesIntegration",
Handler: _ApplicationService_UpdateMyDevicesIntegration_Handler,
},
{
MethodName: "DeleteMyDevicesIntegration",
Handler: _ApplicationService_DeleteMyDevicesIntegration_Handler,
},
{
MethodName: "CreateLoRaCloudIntegration",
Handler: _ApplicationService_CreateLoRaCloudIntegration_Handler,
},
{
MethodName: "GetLoRaCloudIntegration",
Handler: _ApplicationService_GetLoRaCloudIntegration_Handler,
},
{
MethodName: "UpdateLoRaCloudIntegration",
Handler: _ApplicationService_UpdateLoRaCloudIntegration_Handler,
},
{
MethodName: "DeleteLoRaCloudIntegration",
Handler: _ApplicationService_DeleteLoRaCloudIntegration_Handler,
},
{
MethodName: "CreateGCPPubSubIntegration",
Handler: _ApplicationService_CreateGCPPubSubIntegration_Handler,
},
{
MethodName: "GetGCPPubSubIntegration",
Handler: _ApplicationService_GetGCPPubSubIntegration_Handler,
},
{
MethodName: "UpdateGCPPubSubIntegration",
Handler: _ApplicationService_UpdateGCPPubSubIntegration_Handler,
},
{
MethodName: "DeleteGCPPubSubIntegration",
Handler: _ApplicationService_DeleteGCPPubSubIntegration_Handler,
},
{
MethodName: "CreateAWSSNSIntegration",
Handler: _ApplicationService_CreateAWSSNSIntegration_Handler,
},
{
MethodName: "GetAWSSNSIntegration",
Handler: _ApplicationService_GetAWSSNSIntegration_Handler,
},
{
MethodName: "UpdateAWSSNSIntegration",
Handler: _ApplicationService_UpdateAWSSNSIntegration_Handler,
},
{
MethodName: "DeleteAWSSNSIntegration",
Handler: _ApplicationService_DeleteAWSSNSIntegration_Handler,
},
{
MethodName: "CreateAzureServiceBusIntegration",
Handler: _ApplicationService_CreateAzureServiceBusIntegration_Handler,
},
{
MethodName: "GetAzureServiceBusIntegration",
Handler: _ApplicationService_GetAzureServiceBusIntegration_Handler,
},
{
MethodName: "UpdateAzureServiceBusIntegration",
Handler: _ApplicationService_UpdateAzureServiceBusIntegration_Handler,
},
{
MethodName: "DeleteAzureServiceBusIntegration",
Handler: _ApplicationService_DeleteAzureServiceBusIntegration_Handler,
},
{
MethodName: "CreateLoccartoIntegration",
Handler: _ApplicationService_CreateLoccartoIntegration_Handler,
},
{
MethodName: "GetLoccartoIntegration",
Handler: _ApplicationService_GetLoccartoIntegration_Handler,
},
{
MethodName: "UpdateLoccartoIntegration",
Handler: _ApplicationService_UpdateLoccartoIntegration_Handler,
},
{
MethodName: "DeleteLoccartoIntegration",
Handler: _ApplicationService_DeleteLoccartoIntegration_Handler,
},
{
MethodName: "CreatePilotThingsIntegration",
Handler: _ApplicationService_CreatePilotThingsIntegration_Handler,
},
{
MethodName: "GetPilotThingsIntegration",
Handler: _ApplicationService_GetPilotThingsIntegration_Handler,
},
{
MethodName: "UpdatePilotThingsIntegration",
Handler: _ApplicationService_UpdatePilotThingsIntegration_Handler,
},
{
MethodName: "DeletePilotThingsIntegration",
Handler: _ApplicationService_DeletePilotThingsIntegration_Handler,
},
{
MethodName: "ListIntegrations",
Handler: _ApplicationService_ListIntegrations_Handler,
},
{
MethodName: "GenerateMQTTIntegrationClientCertificate",
Handler: _ApplicationService_GenerateMQTTIntegrationClientCertificate_Handler,
},
{
MethodName: "CreateQubitroIntegration",
Handler: _ApplicationService_CreateQubitroIntegration_Handler,
},
{
MethodName: "GetQubitroIntegration",
Handler: _ApplicationService_GetQubitroIntegration_Handler,
},
{
MethodName: "UpdateQubitroIntegration",
Handler: _ApplicationService_UpdateQubitroIntegration_Handler,
},
{
MethodName: "DeleteQubitroIntegration",
Handler: _ApplicationService_DeleteQubitroIntegration_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "as/external/api/application.proto",
}
| 44.232414 | 235 | 0.767707 |
d299e14ecb33bd9bae679a02ca7366e226163675 | 6,105 | php | PHP | MantUsuario.php | aosver/aosver.github.io | f4b3b7c4865fb1d1d4620beb55b16bb4972d0f7b | [
"Apache-2.0"
] | null | null | null | MantUsuario.php | aosver/aosver.github.io | f4b3b7c4865fb1d1d4620beb55b16bb4972d0f7b | [
"Apache-2.0"
] | null | null | null | MantUsuario.php | aosver/aosver.github.io | f4b3b7c4865fb1d1d4620beb55b16bb4972d0f7b | [
"Apache-2.0"
] | null | null | null | <?php include ("conn/conn.php");
if ($tipoUsuario == 2){
echo '<meta content="0;URL=home.php" http-equiv="refresh">';
}
if (isset($_GET['idEliminar'])){
$id = $_GET['idEliminar'];
$sql = "UPDATE tusuarios SET estado = 0 WHERE idpersona = $id";
$query = mysqli_query($conn,$sql)or die(mysqli_error($conn));
$sql = "UPDATE tPersonas SET estado = 0 WHERE id = $id";
$query = mysqli_query($conn,$sql)or die(mysqli_error($conn));
}
?>
<?php
if (isset($_GET['idActivar'])){
$id = $_GET['idActivar'];
$sql = "UPDATE tusuarios SET estado = 1 WHERE idpersona = $id";
$query = mysqli_query($conn,$sql)or die(mysqli_error($conn));
$sql = "UPDATE tpersonas SET estado = 1 WHERE id = $id";
$query = mysqli_query($conn,$sql)or die(mysqli_error($conn));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--titulo de arriba-->
<title>Mantenimiento de usuarios - Programación Alternativa</title>
<!--titulo de arriba-->
<style type="text/css">
body {
padding: 0px;
margin: 0px;
}
#contenido {
min-height: 200px;
padding: 10px;
}
</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.js">
</script>
<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript
" src="js/jquery.maskedinput.js"></script>
<link rel="stylesheet" href="css/style_all.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/style1.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" media="screen">
<script type="text/javascript" src="js/fancybox/source/jquery.fancybox.js"></script>
<link rel="stylesheet" href="js/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<!--AQUI INICIA CSS Y JAVASCRIPT-->
<!--AQUI FINALIZA CSS Y JAVASCRIPT-->
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="48" colspan="2"><img src="img/logo.png" width="150" style="margin-left: 20px;"/><?php include("includes/mensajes.php");?></td>
</tr>
<tr> <td width="204" style="background: #eee;" valign="top"><?php include("includes/sidebar.php");?></td>
<td valign="top">
<div id="titulo"><i>
<!--titulo de abajo-->
Mantenimiento de usuarios
<!--titulo de abajo-->
</i></div>
<div id="contenido">
<!--AQUI INICIA EL CONTENIDO-->
<form action="" method="post">
<center>
Buscar por: <br>
Carne: <input type="text" name="bCarne" class="input-small">
Nombre:<input type="text" name="bNombre" class="input-medium"> <input type="submit" value="Buscar" name="buscar" class="button">
</center>
</form>
<hr>
<?php
if (isset($_POST['buscar'])){
if ($_POST['bCarne'] !=""){
$bCarne = $_POST['bCarne'];
$sql = "SELECT CONCAT(tp.apellidos, ' ', tp.nombre) as nombre, email, carne, id,estado FROM tpersonas as tp WHERE carne = '$bCarne' AND estado = 1";
}else if ($_POST['bNombre'] !=""){
$bNombre = $_POST['bNombre'];
$sql = "SELECT CONCAT(tp.apellidos, ' ', tp.nombre) as nombre , email, carne, id,estado FROM tpersonas as tp WHERE UPPER(CONCAT('%',tp.nombre,' ',tp.apellidos,'%')) like UPPER('%$bNombre%')";
}else{
$sql = "SELECT CONCAT(tp.apellidos, ' ', tp.nombre) as nombre, carne, email, id,estado FROM tpersonas as tp";
}
}else{
$sql = "SELECT CONCAT(tp.apellidos, ' ', tp.nombre) as nombre, carne, email, id,estado FROM tpersonas as tp";
}
// echo $sql;
$query = mysqli_query($conn, $sql)or die (mysqli_error($conn));
if (mysqli_num_rows($query) == 0){
?>
<center>
<img src="img/info.png"><br>
No hay coincidencia.
</center>
<?php
}else{
//mostramos las editoriales
?>
<table width="100%" class="tabla">
<tr>
<td width="01" class="tabla_titulo"></td>
<td class="tabla_titulo" width="200">Nombre</td>
<td class="tabla_titulo" width="200">Carné</td>
<td class="tabla_titulo"width="200">Email</td>
<td class="tabla_titulo"width="200">Estado</td>
</tr>
<?php
while ($row=mysqli_fetch_assoc($query)){
?>
<tr>
<?php if ($row['estado']==1): ?>
<td style=" background-color: #00ff00">
<?php else: ?>
<td style=" background-color: red">
<?php endif ?>
<a href="ModifiUser.php?idModificar=<?php echo $row['id']?>" style="text-decoration: none;">
<img src="img/edit.png" height="20">
</a>
<?php if ($row['estado']==1): ?>
<a href="MantUsuario.php?idEliminar=<?php echo $row['id']?>" onclick="return confirm('Esta seguro(a) que desea desactivar la cuenta.?');" style="text-decoration: none;">
<img src="img/delete.png" height="20">
</a>
<?php else: ?>
<a href="MantUsuario.php?idActivar=<?php echo $row['id']?>" onclick="return confirm('Esta seguro(a) que desea activar la cuenta.?');" style="text-decoration: none;">
<img src="img/exito.png" height="20">
</a>
<?php endif ?>
<td><?php echo utf8_encode($row['nombre']);?></td>
<td><?php echo $row['carne'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php
if ($row['estado']==1) {
echo "Activo";
# code...
}else{
echo "No Activo";
}
?></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
<!--AQUI FINALIZA EL CONTENIDO-->
</div>
</td>
</tr>
<tr>
<td colspan="2" style="background: #484848; "><div style="width: 230px; height: 22px; background: url(img/logo%20pa.jpg) no-repeat; float: right; padding-top: 3px; padding-left: 15px;">Un proyecto más de<a href="http://programacionalternativa.com" target="_blank"><img src="img/logopa.jpg" width="100" style="float: right;" border="0"/></a></div></td>
</tr>
<?php include 'includes/scrollingcredits.html'; ?>
</table>
<?php include ("includes/javascript.php")?>
</body>
</html> | 30.678392 | 355 | 0.630467 |
e76fa57e191d94e3b032be85eb8def139c362bbf | 147 | js | JavaScript | src/services/modules/home.js | yyd19920013/e-admin-template | 47f7c4611ee41b9c40208b62ba33a4a36c10f273 | [
"MIT"
] | null | null | null | src/services/modules/home.js | yyd19920013/e-admin-template | 47f7c4611ee41b9c40208b62ba33a4a36c10f273 | [
"MIT"
] | null | null | null | src/services/modules/home.js | yyd19920013/e-admin-template | 47f7c4611ee41b9c40208b62ba33a4a36c10f273 | [
"MIT"
] | null | null | null | import services from 'services'
// 首页
export const home = params => {
return services.API({
url: '',
method: 'post',
params,
})
}
| 13.363636 | 31 | 0.578231 |
9c5b021b1f4f4aaad0708d5c910768a1d4d33f51 | 598 | js | JavaScript | rollup.config.js | Andrew-Reid/funkyline | cac9c92cd1396f92d2e89ae58bf89da756d22730 | [
"MIT"
] | null | null | null | rollup.config.js | Andrew-Reid/funkyline | cac9c92cd1396f92d2e89ae58bf89da756d22730 | [
"MIT"
] | null | null | null | rollup.config.js | Andrew-Reid/funkyline | cac9c92cd1396f92d2e89ae58bf89da756d22730 | [
"MIT"
] | null | null | null | import commonjs from 'rollup-plugin-commonjs';
import pkg from './package.json';
export default [
{
input: 'src/main.js',
output: {
name: 'd3',
extend: true,
file: pkg.browser,
format: 'umd'
},
plugins: [
commonjs()
]//,
//globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"})))
},
{
input: 'src/main.js',
output: [
{
file: pkg.main, format: 'cjs',
name: 'd3',
extend: true
},
{
file: pkg.module, format: 'es',
name: 'd3',
extend: true
}
]
}
];
| 17.588235 | 131 | 0.528428 |
e5553f4822ec89dcfdfb95dc7c1dcc1839258b3f | 953 | ts | TypeScript | test/ionItemOptionMethodGetSlidingPercentRenamed.spec.ts | mburger81/v4-migration-tslint | 3ea3b3dbbda9cab73339362d99f392d8abd4858d | [
"MIT"
] | 107 | 2018-05-04T16:42:02.000Z | 2020-09-13T17:55:00.000Z | test/ionItemOptionMethodGetSlidingPercentRenamed.spec.ts | mburger81/v4-migration-tslint | 3ea3b3dbbda9cab73339362d99f392d8abd4858d | [
"MIT"
] | 168 | 2018-05-29T21:04:28.000Z | 2020-06-11T13:06:17.000Z | test/ionItemOptionMethodGetSlidingPercentRenamed.spec.ts | mburger81/v4-migration-tslint | 3ea3b3dbbda9cab73339362d99f392d8abd4858d | [
"MIT"
] | 15 | 2018-06-12T16:41:54.000Z | 2020-04-17T20:22:01.000Z | import { expect } from 'chai';
import { ruleName, ruleMessage } from '../src/ionItemOptionMethodGetSlidingPercentRenamedRule';
import { assertAnnotated, assertSuccess } from './testHelper';
describe(ruleName, () => {
describe('success', () => {
it('should work with new method name', () => {
let source = `
class DoSomething{
constructor(){}
getRatio(item: ItemSliding){
return item.getSlidingRatio();
}
}
`;
assertSuccess(ruleName, source);
});
});
describe('failure', () => {
it('should fail when using getSlidingPercent', () => {
let source = `
class DoSomething{
constructor(){}
getRatio(item: ItemSliding){
return item.getSlidingPercent();
~~~~~~~~~~~~~~~~~
}
}
`;
assertAnnotated({
ruleName,
message: ruleMessage,
source
});
});
});
});
| 24.435897 | 95 | 0.528856 |
39d1af7cf9df7bfbd6661652b620ea5dff3bafc3 | 844 | js | JavaScript | lib/models/VehicleToggleMod.js | DeForce/fivem-js | 06c904e3010e0f1df50432bb3a6bd5771a271817 | [
"MIT"
] | null | null | null | lib/models/VehicleToggleMod.js | DeForce/fivem-js | 06c904e3010e0f1df50432bb3a6bd5771a271817 | [
"MIT"
] | null | null | null | lib/models/VehicleToggleMod.js | DeForce/fivem-js | 06c904e3010e0f1df50432bb3a6bd5771a271817 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VehicleToggleMod = void 0;
class VehicleToggleMod {
constructor(owner, modType) {
this._owner = owner;
this.ModType = modType;
}
get ModType() {
return this._modType;
}
set ModType(modType) {
this._modType = modType;
}
get IsInstalled() {
return !!IsToggleModOn(this._owner.Handle, this.ModType);
}
set IsInstalled(value) {
ToggleVehicleMod(this._owner.Handle, this.ModType, value);
}
get LocalizedModTypeName() {
return GetModSlotName(this._owner.Handle, this.ModType);
}
get Vehicle() {
return this._owner;
}
remove() {
RemoveVehicleMod(this._owner.Handle, this.ModType);
}
}
exports.VehicleToggleMod = VehicleToggleMod;
| 26.375 | 66 | 0.633886 |
22d87ceb3ba5d2d948b8f9db2f1d5ee46e7c8a8c | 10,237 | h | C | include/eqlib/eqldef.h | 39alpha/eq3_6 | 4ff7eec3d34634f1470ae5f67d8e294694216b6e | [
"BSD-3-Clause"
] | null | null | null | include/eqlib/eqldef.h | 39alpha/eq3_6 | 4ff7eec3d34634f1470ae5f67d8e294694216b6e | [
"BSD-3-Clause"
] | 6 | 2021-11-30T15:48:52.000Z | 2022-02-02T18:16:22.000Z | include/eqlib/eqldef.h | 39alpha/eq3_6 | 4ff7eec3d34634f1470ae5f67d8e294694216b6e | [
"BSD-3-Clause"
] | null | null | null | c eqldef.h
c
c Definitions of dimensioning paramaters and equivalent variables.
c The parameters themselves are set in the include file eqlpar.h.
c
c Some parameters are also defined and set in the include files
c eqlj8.h and eqlo8.h. These are involved in the menu-style ("D")
c input format for Version 8.
c
c-----------------------------------------------------------------------
c
c Those used in both EQ3NR and EQ6 modes (fixed/variable mass of
c solvent water).
c
c
c Primary parameters/variables:
c
c iapxpa = iapxmx Leading dimension of the apx array, which
c contains solid solution activity
c coefficient parameters other than
c site-mixing paramters
c
c ibpxpa = ibpxmx Leading dimension of the bpx array,
c which contains solid solution activity
c coefficient parameters of the site-mixing
c variety
c
c ietpar = ietmax Maximum number of species in a distinct
c site of a generic ion exchange phase,
c including the bare site species
c
c iktpar = iktmax Maximum number of end-member components
c (species) in a solid solution
c
c ipchpa = ipchmx Maximum order of pressure corrections
c to enthalpy and volume functions
c
c ipcvpa = ipcvmx Maximum order of pressure corrections
c to enthalpy and volume functions
c
c jetpar = jetmax Maximum number of distinct sites of
c a generic ion exchange phase
c
c jodbpa = jodbmx Maximum number of choices per iodb
c debugging print option switch
c
c jopgpa = jopgmx Maximum number of choices per iopg activity
c coefficient option switch
c
c joprpa = joprmx Maximum number of choices per iopr print
c option switch
c
c joptpa = joptmx Maximum number of choices per iopt option
c switch
c
c jsopar = jsomax Maximum number of solid solution mixing
c laws
c
c nappar = napmax Number of distinct sets of Pitzer
c alpha coefficients
c
c narxpa = narxmx Maximum number of interpolating
c coefficients used to describe the
c temperature dependence of a quantity
c (such as the log K of a reaction)
c in any given temperature range
c
c natpar = natmax Maximum number of aqueous species
c
c naztpa = naztmx Maximum value of the max norm of the
c electrical charge numbers of the aqueous
c species (nazmmx = -naztmx); used with
c Pitzer's equations
c
c nbtpar = nbtmax Maximum number of species in a basis set
c
c nctpar = nctmax Maximum number of chemical elements
c
c netpar = netmax Maximum number of generic ion exchange
c phases
c
c ngtpar = ngtmax Maximum number of gas species
c
c nltpar = nltmax Maximum number of pure liquid
c species/phases
c
c nmtpar = nmtmax Maximum number of pure mineral
c species/phases
c
c nmutpa = nmutmx Number of Pitzer mu coefficients
c
c nodbpa = nodbmx Number of iodb debugging print option
c switches
c
c nopgpa = nopgmx Number of iopg activity coefficient option
c switches
c
c noprpa = noprmx Number of iopr print control option
c switches
c
c noptpa = noptmx Number of iopt model option switches
c
c nptpar = nptmax Maximum number of phases
c
c nsltpa = nsltmx Number of Pitzer S-lambda function
c coefficients
c
c nstpar = nstmax Maximum number of species of any kind
c
c ntfxpa = ntfxmx Maximum number of aqueous species which
c contribute to the working definition of
c total alkalinity (HCO3-CO3-OH or extended)
c
c ntf1pa = ntf1mx Maximum number of aqueous species which
c contribute to total HCO3-CO3-OH alkalinity
c
c ntf2pa = ntf2mx Maximum number of aqueous species which
c contribute to the total extended alkalinity,
c defined as the HCO3-CO3-OH alkalinity with
c contributions from other species such as
c acetate, other organics, borate, silicate,
c phosphate, and transition metal-hydroxy
c complexes
c
c ntitpa = ntitmx Maximum number of lines per title on an
c input file or data file
c
c ntprpa = ntprmx Maximum number of temperature ranges for
c describing the temperature dependence of
c a quantity (such as the log K of a
c reaction) by means of interpolating
c polynomials
c
c nvet_par = nvetmx Maximum number of valid exchange models
c for generic ion exchange phases
c
c nxmdpa = nxmdmx Maximum number of species/reactions that
c can be affected by the suppress/alter
c options
c
c nxtpar = nxtmax Maximum number of solid solution phases
c
c
c Secondary parameters/variables:
c
c kpar = kmax Maximum dimension of the Jacobian matrix
c (WARNING - could set equal to nbtpar in
c EQ3NR, but need to set equal to 2*nbtpar
c in EQ6)
c
c ndrspa = ndrsmx size of array for storing reaction
c coefficients, expected average
c number*nstpar
c
c nesspa = nessmx size of array for storing elemental
c composition coefficients, expected
c average number*nstpar
c
c nmxpar = nmxmax Number of representations of Pitzer mu
c coefficients in the nmxx array; can't
c be greater than 3*nmutpa
c
c nstspa = nstsmx Size of array for storing stoichiometric
c mass balance coefficients, expected
c average number*nstpar
c
c nsxpar = nsxmax Number of representations of sets of
c Pitzer S-lambda function coefficients
c in the nsxx array; can't be greater than
c 2*nsltpa
c
c-----------------------------------------------------------------------
c
c Those used in only EQ3NR mode (fixed mass of solvent water).
c
c
c Primary parameters/variables:
c
c njfpar = njfmax Largest jflag option value
c
c nxtipa = nxtimx Maximum number of non-aqueous phases for
c which compositions can be read from the
c EQ3NR input file
c
c
c Secondary parameters/variables:
c
c nbtpa1 = nbtmx1 Maximum number of basis species + 1
c
c nxicpa = nxicmx Maximum number of non-aqueous phase
c species for which mole fractions can be
c read from the EQ3NR input file
c
c
c-----------------------------------------------------------------------
c
c Those used in only EQ6 mode (variable mass of solvent water).
c
c
c Primary parameters/variables:
c
c imchpa = imchmx Maximum number of terms in a rate law
c expression for a chemical reaction
c
c ndctpa = ndctmx Maximum number of species whose activities
c can appear in any term in a rate law
c expression for a chemical reaction
c
c nertpa = nertmx Maximum number of generic ion exchanger
c irreversible reactants/reactions
c
c nffgpa = nffgmx Maximum number of gases whose fugacities
c may be fixed
c
c nordpa = nordmx Maximum order of finite difference
c expressions or the equivalent truncated
c Taylor's series
c
c nprspa = nprsmx Maximum number of species in the
c physically removed system that can be
c read from the input file
c
c nptkpa = nttkmx Maximum number of pressure tracking
c coefficients
c
c nrctpa = nrctmx Maximum number of specified irreversible
c reactants/reactions
c
c nttkpa = nttkmx Maximum number of temperature tracking
c coefficients
c
c nsrtpa = nsrtmx Maximum number of special irreversible
c reactants/reactions that can be defined
c on the input file
c
c nxoppa = nxopmx Maximum number of subset-selection
c options for suppressing mineral phases
c
c nxpepa = nxpemx Maximum number of specified exceptions
c to the mineral subset-selection
c suppression options
c
c nxrtpa = nxrtmx Maximum number of solid solution
c irreversible reactants/reactions
c
c nsscpa = nsscmx = Maximum number of setscrew parameters
c
c
c Secondary parameters/variables:
c
c npetpa = npetmx Maximum number of phases in the ES
c
c nrdpa1 = nrdmx1 Maximum order + 1
c
c
c End of INCLUDE file eqldef.h
c-----------------------------------------------------------------------
| 39.678295 | 72 | 0.545863 |
709b8bb70ee6abe6e33fb16a178511f8966f5e7c | 643 | go | Go | controller/post_weight.go | tanel/wardrobe-organizer | b49271d22b73446c5a4e5b383be290b2a0192700 | [
"MIT"
] | 3 | 2019-03-27T12:25:42.000Z | 2021-12-24T23:41:03.000Z | controller/post_weight.go | tanel/wardrobe-manager-app | b49271d22b73446c5a4e5b383be290b2a0192700 | [
"MIT"
] | 53 | 2017-12-09T00:21:26.000Z | 2018-03-02T22:29:33.000Z | controller/post_weight.go | tanel/wardrobe-manager-app | b49271d22b73446c5a4e5b383be290b2a0192700 | [
"MIT"
] | null | null | null | package controller
import (
"github.com/juju/errors"
"github.com/tanel/wardrobe-organizer/db"
"github.com/tanel/wardrobe-organizer/model"
"github.com/tanel/webapp/http"
)
// PostWeight updates a weight entry
func PostWeight(request *http.Request, userID string) {
weightEntry, err := model.NewWeightEntryForm(request.R())
if err != nil {
request.BadRequest(err.Error())
return
}
weightEntry.ID = request.ParamByName("id")
weightEntry.UserID = userID
if err := db.UpdateWeight(*weightEntry); err != nil {
request.InternalServerError(errors.Annotate(err, "updating weight failed"))
return
}
request.Redirect("/weight")
}
| 23.814815 | 77 | 0.73717 |
a1b28a926e57d543f7b351ed366c19f330d7262b | 649 | sql | SQL | prisma/migrations/20210703213433_add_author/migration.sql | exghost/book-reader-server | 3fe48279cf5b5f1b6b6dc8f4a19662239ceef5fc | [
"MIT"
] | null | null | null | prisma/migrations/20210703213433_add_author/migration.sql | exghost/book-reader-server | 3fe48279cf5b5f1b6b6dc8f4a19662239ceef5fc | [
"MIT"
] | null | null | null | prisma/migrations/20210703213433_add_author/migration.sql | exghost/book-reader-server | 3fe48279cf5b5f1b6b6dc8f4a19662239ceef5fc | [
"MIT"
] | null | null | null | -- CreateTable
CREATE TABLE "Author" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "_AuthorToBook" (
"A" INTEGER NOT NULL,
"B" INTEGER NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "_AuthorToBook_AB_unique" ON "_AuthorToBook"("A", "B");
-- CreateIndex
CREATE INDEX "_AuthorToBook_B_index" ON "_AuthorToBook"("B");
-- AddForeignKey
ALTER TABLE "_AuthorToBook" ADD FOREIGN KEY ("A") REFERENCES "Author"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "_AuthorToBook" ADD FOREIGN KEY ("B") REFERENCES "Book"("id") ON DELETE CASCADE ON UPDATE CASCADE;
| 24.961538 | 112 | 0.702619 |
172e2f6c7fdf168ed1301e1ddfb349ea7dcc06f9 | 1,311 | kt | Kotlin | Corona-Warn-App/src/main/java/be/sciensano/coronalert/ui/submission/SubmissionTestRequestViewModel.kt | NeatNerdPrime/cwa-app-android | f41e6fd69c2aaed54ab1ab1978231138f1191349 | [
"Apache-2.0"
] | 59 | 2020-09-18T06:45:10.000Z | 2021-08-02T18:06:14.000Z | Corona-Warn-App/src/main/java/be/sciensano/coronalert/ui/submission/SubmissionTestRequestViewModel.kt | NeatNerdPrime/cwa-app-android | f41e6fd69c2aaed54ab1ab1978231138f1191349 | [
"Apache-2.0"
] | 44 | 2020-09-18T10:25:54.000Z | 2021-11-15T13:29:35.000Z | Corona-Warn-App/src/main/java/be/sciensano/coronalert/ui/submission/SubmissionTestRequestViewModel.kt | NeatNerdPrime/cwa-app-android | f41e6fd69c2aaed54ab1ab1978231138f1191349 | [
"Apache-2.0"
] | 13 | 2020-09-18T11:50:05.000Z | 2021-12-04T22:00:26.000Z | package be.sciensano.coronalert.ui.submission
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import be.sciensano.coronalert.MobileTestId
import be.sciensano.coronalert.storage.k
import be.sciensano.coronalert.storage.onsetSymptomsDate
import be.sciensano.coronalert.storage.r0
import be.sciensano.coronalert.storage.t0
import de.rki.coronawarnapp.storage.LocalData
import java.util.Date
class SubmissionTestRequestViewModel : ViewModel() {
companion object {
private val TAG: String? = SubmissionTestRequestViewModel::class.simpleName
}
private val symptomsDate: MutableLiveData<Date?> = MutableLiveData(null)
fun setSymptomsDate(date: Date?) = run {
symptomsDate.value = date
}
fun generateTestId(): MobileTestId {
val testId = MobileTestId.generate(symptomsDate.value)
saveTestId(testId)
return testId
}
private fun saveTestId(mobileTestId: MobileTestId) {
LocalData.t0(mobileTestId.t0)
LocalData.onsetSymptomsDate(mobileTestId.onsetSymptomsDate)
LocalData.r0(mobileTestId.r0)
LocalData.k(mobileTestId.k)
LocalData.registrationToken(mobileTestId.registrationToken())
LocalData.initialPollingForTestResultTimeStamp(System.currentTimeMillis())
}
}
| 31.97561 | 83 | 0.759725 |