text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *_CBusCommandPointToPointToMultiPointStatus) InitializeParent(parent CBusPointToPointToMultipointCommand, bridgeAddress BridgeAddress, networkRoute NetworkRoute, peekedApplication byte) {
m.BridgeAddress = bridgeAddress
m.NetworkRoute = networkRoute
m.PeekedApplication = peekedApplication
} | [
0.5601930618286133,
0.8255584239959717,
0.5895541906356812,
0.1444854587316513,
0.3473363220691681,
0.13577517867088318,
0.15981265902519226,
0.7138959765434265,
1.0197455883026123,
-0.293294221162796,
-0.6559354066848755,
-0.5185998678207397,
-0.7202731966972351,
0.8275556564331055,
-0.... |
func (m *_CBusCommandPointToPointToMultiPointStatus) GetStatusRequest() StatusRequest {
return m.StatusRequest
} | [
-0.3467645049095154,
-0.5087591409683228,
0.3807671368122101,
1.2333507537841797,
0.2150343358516693,
0.30804193019866943,
-0.5028812885284424,
0.9451669454574585,
0.5759885907173157,
-0.14187756180763245,
0.09981587529182434,
-0.16068033874034882,
-0.20181702077388763,
0.5316013097763062,... |
func (m *_CBusCommandPointToPointToMultiPointStatus) GetCr() byte {
return CBusCommandPointToPointToMultiPointStatus_CR
} | [
0.7569674253463745,
0.8130081295967102,
0.46645471453666687,
1.4132167100906372,
0.16915830969810486,
0.40973392128944397,
-0.34392648935317993,
0.8832123279571533,
0.216716468334198,
-0.33395224809646606,
0.18969663977622986,
-0.23496270179748535,
-0.4123013913631439,
-0.15255796909332275... |
func NewCBusCommandPointToPointToMultiPointStatus(statusRequest StatusRequest, crc Checksum, peekAlpha byte, alpha Alpha, bridgeAddress BridgeAddress, networkRoute NetworkRoute, peekedApplication byte, srchk bool) *_CBusCommandPointToPointToMultiPointStatus {
_result := &_CBusCommandPointToPointToMultiPointStatus{
S... | [
-0.3563033938407898,
0.3229832053184509,
0.4639413058757782,
0.46141231060028076,
0.37307870388031006,
0.39256662130355835,
-0.338148832321167,
1.1432613134384155,
0.9911121129989624,
0.22563089430332184,
-0.7723093032836914,
0.048017241060733795,
-0.04865437000989914,
0.49785029888153076,... |
func CastCBusCommandPointToPointToMultiPointStatus(structType interface{}) CBusCommandPointToPointToMultiPointStatus {
if casted, ok := structType.(CBusCommandPointToPointToMultiPointStatus); ok {
return casted
}
if casted, ok := structType.(*CBusCommandPointToPointToMultiPointStatus); ok {
return *casted
}
re... | [
-0.47627022862434387,
0.047227852046489716,
0.1781967729330063,
0.9175647497177124,
0.4863886833190918,
0.7130069732666016,
-0.506031334400177,
0.6170905232429504,
1.0477375984191895,
0.4987204968929291,
-0.512538492679596,
0.1690528839826584,
-0.3830428421497345,
0.5407204627990723,
-0.... |
func ApplyRoutes(r *gin.RouterGroup) {
r.GET("/status", GetStatus)
r.GET("/status-page", GetStatusPage)
r.GET("/info", GetInfo)
} | [
-0.3774423599243164,
0.38758382201194763,
0.3452393710613251,
-0.17585626244544983,
0.5365929007530212,
0.043548133224248886,
-0.6139901280403137,
1.0343941450119019,
-0.003159537445753813,
-0.8167667984962463,
0.6346859931945801,
-0.18213564157485962,
-0.24923622608184814,
1.6441447734832... |
func (m *UsageRecord) GetParent() string {
if m != nil {
return m.Parent
}
return ""
} | [
1.4896855354309082,
0.5459114909172058,
0.31850123405456543,
0.3760737180709839,
-0.09676461666822433,
0.40887153148651123,
0.963809072971344,
-0.5667905211448669,
-0.09470980614423752,
-0.3938353359699249,
0.9465600252151489,
-0.19651742279529572,
-0.8767855167388916,
-0.07798163592815399... |
func (o *ChangeCurrentUserPasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewChangeCurrentUserPasswordOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
... | [
-0.38785871863365173,
-1.4478263854980469,
0.8152691125869751,
0.6920259594917297,
-0.27849653363227844,
-0.6946287155151367,
-0.0072851465083658695,
-0.1408655047416687,
0.3457908630371094,
0.9461054801940918,
0.4750065207481384,
-0.01524531189352274,
-0.7527118921279907,
0.38394448161125... |
func NewChangeCurrentUserPasswordOK() *ChangeCurrentUserPasswordOK {
return &ChangeCurrentUserPasswordOK{}
} | [
-0.24973826110363007,
-1.2988673448562622,
0.25576505064964294,
0.7922849655151367,
-1.6329964399337769,
0.33823150396347046,
0.7731600999832153,
0.8084439635276794,
-0.9145782589912415,
0.8135381937026978,
-0.4991739094257355,
0.48214614391326904,
0.33741557598114014,
0.9849408864974976,
... |
func NewChangeCurrentUserPasswordBadRequest() *ChangeCurrentUserPasswordBadRequest {
return &ChangeCurrentUserPasswordBadRequest{}
} | [
-0.7535802721977234,
-1.30601966381073,
0.5553788542747498,
1.106898546218872,
-1.218911051750183,
-0.05464394390583038,
-0.5516043901443481,
0.5615267753601074,
-0.8230495452880859,
0.20507048070430756,
-0.10036233067512512,
1.0791893005371094,
-0.20379482209682465,
1.2212257385253906,
... |
func NewChangeCurrentUserPasswordNotFound() *ChangeCurrentUserPasswordNotFound {
return &ChangeCurrentUserPasswordNotFound{}
} | [
-0.1782219260931015,
-1.7535563707351685,
0.3053010404109955,
0.6299418807029724,
-1.0964951515197754,
0.6658347249031067,
0.5841744542121887,
0.15930873155593872,
-0.3766355514526367,
0.5535850524902344,
0.020437179133296013,
0.9801784157752991,
0.13226737082004547,
0.9023433327674866,
... |
func (o *ChangeCurrentUserPasswordBody) Validate(formats strfmt.Registry) error {
return nil
} | [
-0.27402469515800476,
-0.6428676843643188,
0.3628227412700653,
0.5222280025482178,
-0.035084933042526245,
0.5419506430625916,
0.2514036297798157,
0.5805953145027161,
0.021953923627734184,
0.928102970123291,
-0.08908291161060333,
0.5661154985427856,
-1.1633646488189697,
1.520478367805481,
... |
func TestEmployeeManagerMapCreate(t *testing.T) {
db, mock, err := sqlmock.New()
if err != nil {
t.Fatalf("an error '%s' was not expected when opening a stub database connection", err)
}
defer db.Close()
rows := sqlmock.NewRows([]string{"employee_name", "manager_name"}).AddRow("Nick", "Sophie").AddRow("Sophie",... | [
-0.6230732202529907,
-0.32228928804397583,
0.7180973887443542,
-0.6770604848861694,
0.646475613117218,
0.6424176692962646,
-0.2090354710817337,
-0.21999052166938782,
0.20403672754764557,
-0.13619156181812286,
-0.40133944153785706,
-0.12385182082653046,
-0.1161518543958664,
0.56381446123123... |
func TestEmployeeManagerMapCreate_BadRequest(t *testing.T) {
db, _, err := sqlmock.New()
if err != nil {
t.Fatalf("an error '%s' was not expected when opening a stub database connection", err)
}
defer db.Close()
emplyManagerMap := NewEmployeeManagerMapHandler(db)
w := httptest.NewRecorder()
var jsonStr = []b... | [
-0.9225028157234192,
-0.7250155806541443,
0.934718668460846,
-0.44709452986717224,
0.5002750158309937,
0.8401522636413574,
-0.7273930311203003,
-0.04033835977315903,
0.01070308592170477,
-0.28322833776474,
0.07231426984071732,
0.013941467739641666,
-0.013439885340631008,
0.7076423764228821... |
func TestEmployeeManagerMapGetByID(t *testing.T) {
db, mock, err := sqlmock.New()
if err != nil {
t.Fatalf("an error '%s' was not expected when opening a stub database connection", err)
}
defer db.Close()
rows := sqlmock.NewRows([]string{"employee_name", "manager_name"}).AddRow("Nick", "Sophie").AddRow("Sophie"... | [
-0.3837578594684601,
-0.043606195598840714,
0.920062780380249,
-0.6893211603164673,
0.7098710536956787,
0.27226516604423523,
-0.20527251064777374,
-0.4732397496700287,
0.20134402811527252,
0.1415589600801468,
-0.515061616897583,
0.3464825749397278,
-0.3379381000995636,
0.6787249445915222,
... |
func TestEmployeeManagerMapGetAll(t *testing.T) {
db, mock, err := sqlmock.New()
if err != nil {
t.Fatalf("an error '%s' was not expected when opening a stub database connection", err)
}
defer db.Close()
rows := sqlmock.NewRows([]string{"employee_name", "manager_name"}).AddRow("Nick", "Sophie").AddRow("Sophie",... | [
-0.10105086117982864,
-0.31751900911331177,
1.0433036088943481,
-0.4574660658836365,
0.8060370683670044,
0.43798497319221497,
-0.44990530610084534,
0.13601695001125336,
0.2946881055831909,
0.20512770116329193,
-0.17375633120536804,
0.25161635875701904,
-0.08679843693971634,
0.7764531373977... |
func (l *FixtureCredentialBackend) GetClusterByIdentifier(clusterIdentifier string) (*m.Cluster, error) {
// Use Identifier as ID
result := l.credentials[clusterIdentifier]
if result == nil {
return nil, fmt.Errorf("cluster not found with identifier=%s", clusterIdentifier)
}
return &m.Cluster{
ID: cluste... | [
0.20835861563682556,
-0.3545821011066437,
0.08247867226600647,
0.1650266796350479,
0.28594473004341125,
-0.18435221910476685,
0.48418721556663513,
0.0029373394791036844,
1.2637327909469604,
-0.10504503548145294,
-0.24728356301784515,
0.5590358376502991,
-0.18391874432563782,
-0.03982488438... |
func (l *FixtureCredentialBackend) GetCredentials(clusterId string) (*m.ClusterCredentials, error) {
result := l.credentials[clusterId]
if result == nil {
return nil, fmt.Errorf("credentials not found for %s", clusterId)
}
return result, nil
} | [
0.08549584448337555,
0.42269033193588257,
0.049899905920028687,
0.5253490805625916,
0.9314109086990356,
-1.0409469604492188,
-0.007391341496258974,
-0.6638974547386169,
-0.02026445046067238,
0.5289261341094971,
-0.32301968336105347,
0.20397749543190002,
-0.7605538964271545,
0.7828988432884... |
func (l *DatabaseCrendentialBackend) GetClusterByIdentifier(clusterIdentifier string) (*m.Cluster, error) {
cluster := sqlstore.GetClusterByIdentifier(clusterIdentifier)
return cluster, nil
} | [
0.3228612244129181,
-0.03649752214550972,
0.07593261450529099,
0.4742644131183624,
0.4254477918148041,
0.1590830534696579,
0.5445790886878967,
0.1901475191116333,
1.2461345195770264,
0.038908857852220535,
-0.6077460646629333,
0.4470440447330475,
-0.5548903942108154,
-0.15165798366069794,
... |
func (l *DatabaseCrendentialBackend) GetCredentials(clusterId string) (*m.ClusterCredentials, error) {
credentials := sqlstore.GetCredentials(clusterId)
return credentials, nil
} | [
0.4002170264720917,
0.8027069568634033,
0.02099979668855667,
0.6510897278785706,
0.7591978311538696,
-0.5504987239837646,
-0.45595622062683105,
0.04492902755737305,
0.2228691279888153,
0.5202176570892334,
-0.7579113245010376,
0.45274606347084045,
-1.5435596704483032,
0.5665565729141235,
... |
func (h *csiService) Start() error {
h.mux.Lock()
defer h.mux.Unlock()
if h.ops == nil {
if err := h.init(); err != nil {
return err
}
}
h.ops.RegisterIdentityServer()
if h.NodeOps != nil {
h.ops.RegisterNodeServer()
} else {
h.ops.RegisterControllerServer()
}
go util.PanicLogger(h.Log, func() { h.s... | [
-0.22633275389671326,
0.16361473500728607,
0.4875437319278717,
0.5790098309516907,
1.086292028427124,
-0.2005583792924881,
0.49609577655792236,
0.4235020577907562,
-0.011176045052707195,
0.4175962209701538,
-0.5062915086746216,
0.9529682993888855,
-0.5592660903930664,
0.6702165007591248,
... |
func (h *csiService) Stop() {
h.mux.Lock()
defer h.mux.Unlock()
if h.server != nil {
h.server.Stop()
}
} | [
-0.6056520938873291,
-0.0500788688659668,
0.2149524986743927,
-0.10672049969434738,
0.8475915193557739,
-0.18847854435443878,
-0.05674448981881142,
0.5665099620819092,
-0.18811862170696259,
0.1811205893754959,
-0.4847587049007416,
1.2379398345947266,
-1.5932481288909912,
0.7608131170272827... |
func (h *csiService) init() error {
var err error
h.ops = h
os.Remove(h.Socket)
l, err := net.Listen("unix", h.Socket)
if err != nil {
return err
}
h.listener = l
h.server = grpc.NewServer()
return nil
} | [
0.14610232412815094,
0.3660179078578949,
0.6907188296318054,
-0.5980476140975952,
0.9532631635665894,
0.645527720451355,
0.17985689640045166,
0.4685713052749634,
-0.5487332940101624,
-0.021466588601469994,
-0.1801125556230545,
1.3356213569641113,
-0.9674733877182007,
0.5388228893280029,
... |
func parsePostRequest(r *http.Request) (models.BodyRequest, error) {
bodyReq := models.BodyRequest{}
body, err := ioutil.ReadAll(r.Body)
if err != nil {
return models.BodyRequest{}, err
}
err = json.Unmarshal(body, &bodyReq)
if err != nil {
return models.BodyRequest{}, err
}
bodyReq.PlacementID = r.URL.Quer... | [
-0.6199784278869629,
-0.16511523723602295,
0.574897289276123,
-0.7190600037574768,
-0.5575116276741028,
0.45466873049736023,
-0.3329276144504547,
-0.31349441409111023,
0.029873576015233994,
-0.15326757729053497,
0.18234167993068695,
-0.8152151703834534,
0.1573188453912735,
1.00735902786254... |
func AdserverHandler(jsonData []models.Campaign, analyticServIPAddr string) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "POST":
reqParsed, err := parsePostRequest(r)
utils.HTTPError(w, err)
campaign, notFound := utils.GetCampaign(reqParsed, ... | [
-0.47298526763916016,
-0.5309931635856628,
0.6078115105628967,
-0.21065224707126617,
-0.30387312173843384,
0.3833484351634979,
0.21124210953712463,
-0.0041071511805057526,
0.06626859307289124,
0.7388474345207214,
0.27844998240470886,
0.4247618019580841,
-0.1282598376274109,
0.6155015230178... |
func variadic(x ...int) int {
fmt.Println(x)
fmt.Printf("%T\n",x)
sum :=0
for _,v := range x{
sum = sum + v
}
return sum
} | [
0.29755598306655884,
0.018554462119936943,
0.35457682609558105,
0.01940692402422428,
0.12508738040924072,
0.39507171511650085,
-0.6914694905281067,
-1.230188250541687,
-0.63389652967453,
-0.35199829936027527,
-1.069238305091858,
0.8243827223777771,
0.8157172799110413,
-0.056305237114429474... |
func NewPopContainerToDebugParams() *PopContainerToDebugParams {
var ()
return &PopContainerToDebugParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.4506527781486511,
0.1733192801475525,
0.3308875262737274,
-0.07717929035425186,
-0.13123856484889984,
-0.14528100192546844,
-0.5439193844795227,
-0.40853747725486755,
-0.8356208801269531,
0.26726239919662476,
-0.3553137183189392,
-0.37006697058677673,
-0.6754180788993835,
0.677705824375... |
func NewPopContainerToDebugParamsWithTimeout(timeout time.Duration) *PopContainerToDebugParams {
var ()
return &PopContainerToDebugParams{
timeout: timeout,
}
} | [
0.1213846430182457,
0.12660029530525208,
0.4097401201725006,
0.049980659037828445,
-0.17195746302604675,
0.5992099046707153,
-0.9950306415557861,
-0.32442373037338257,
-0.8999212980270386,
0.9492186307907104,
-0.11449486017227173,
0.2647877037525177,
-0.32855334877967834,
1.038636922836303... |
func NewPopContainerToDebugParamsWithContext(ctx context.Context) *PopContainerToDebugParams {
var ()
return &PopContainerToDebugParams{
Context: ctx,
}
} | [
-0.4297791123390198,
0.44535598158836365,
0.7429583668708801,
-0.49422240257263184,
-0.12024740129709244,
0.598849356174469,
-0.7887455224990845,
-1.0474929809570312,
-0.40494030714035034,
0.27727633714675903,
-0.2164001762866974,
-0.05266408622264862,
-0.5920464992523193,
0.51512110233306... |
func NewPopContainerToDebugParamsWithHTTPClient(client *http.Client) *PopContainerToDebugParams {
var ()
return &PopContainerToDebugParams{
HTTPClient: client,
}
} | [
-0.48251914978027344,
0.07524008303880692,
0.6018889546394348,
-0.21202103793621063,
0.055872268974781036,
0.48872220516204834,
0.1911187618970871,
-0.6796552538871765,
-0.8209913969039917,
-0.309876948595047,
-0.4240504801273346,
-0.055581796914339066,
-0.370452344417572,
0.41769921779632... |
func (o *PopContainerToDebugParams) WithTimeout(timeout time.Duration) *PopContainerToDebugParams {
o.SetTimeout(timeout)
return o
} | [
0.260833740234375,
0.34531092643737793,
0.3367074131965637,
-0.49381667375564575,
-0.15136301517486572,
-0.08977562189102173,
-0.22977201640605927,
-0.6471062302589417,
-0.21641430258750916,
0.921888530254364,
-0.10652850568294525,
0.012439733371138573,
0.5172295570373535,
0.90090036392211... |
func (o *PopContainerToDebugParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.4363589584827423,
0.31384289264678955,
0.33970919251441956,
-0.273908406496048,
0.4643707275390625,
0.3740185499191284,
-0.1680409163236618,
-0.5473823547363281,
-0.4338889420032501,
0.8238426446914673,
-0.15556125342845917,
0.06792508810758591,
-0.020027678459882736,
1.0242838859558105... |
func (o *PopContainerToDebugParams) WithContext(ctx context.Context) *PopContainerToDebugParams {
o.SetContext(ctx)
return o
} | [
-0.6079075336456299,
0.6393461227416992,
0.6196482181549072,
-0.6866604685783386,
-0.35008153319358826,
-0.04932383820414543,
-0.30100712180137634,
-1.402153730392456,
0.45053574442863464,
0.1933426856994629,
-0.16849151253700256,
-0.2117379903793335,
-0.20632901787757874,
0.35864990949630... |
func (o *PopContainerToDebugParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.0239120721817017,
0.5958157777786255,
0.467315137386322,
-0.15566761791706085,
0.5350995063781738,
0.18999554216861725,
-0.22880719602108002,
-1.3404476642608643,
0.5760399699211121,
0.09675578027963638,
-0.33504989743232727,
-0.037827085703611374,
-0.49733665585517883,
0.66051357984542... |
func (o *PopContainerToDebugParams) WithHTTPClient(client *http.Client) *PopContainerToDebugParams {
o.SetHTTPClient(client)
return o
} | [
-0.25945010781288147,
-0.2519108057022095,
0.5251476764678955,
-0.8407426476478577,
-0.18926919996738434,
-0.18042927980422974,
0.3593670129776001,
-1.1591167449951172,
-0.49730002880096436,
-0.3419020473957062,
-0.1397889256477356,
-0.17670048773288727,
0.38516363501548767,
0.069386243820... |
func (o *PopContainerToDebugParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.13855811953544617,
-0.250747948884964,
0.43460339307785034,
-1.097675085067749,
0.004468668717890978,
-0.21329666674137115,
0.3325228691101074,
-1.2874683141708374,
-0.8215214610099792,
-0.1593615859746933,
-0.372188001871109,
0.06480370461940765,
-0.1300303190946579,
0.1536903530359268... |
func (o *PopContainerToDebugParams) WithNode(node string) *PopContainerToDebugParams {
o.SetNode(node)
return o
} | [
-0.6430231928825378,
0.49649810791015625,
0.35305505990982056,
-0.4721389412879944,
-0.004367714747786522,
-0.4976508617401123,
0.20203018188476562,
-0.8382400274276733,
0.02920403704047203,
0.21133312582969666,
0.23757117986679077,
-0.15618135035037994,
0.13747508823871613,
0.804399609565... |
func (o *PopContainerToDebugParams) SetNode(node string) {
o.Node = node
} | [
-1.1171822547912598,
0.3335171639919281,
0.41213101148605347,
-0.010139444842934608,
0.6562185883522034,
-0.2603018581867218,
0.14217643439769745,
-0.678334653377533,
-0.048797160387039185,
0.3234889507293701,
0.08258303254842758,
0.30619239807128906,
-0.42537352442741394,
1.30664396286010... |
func (o *PopContainerToDebugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param node
if err := r.SetPathParam("node", o.Node); err != nil {
return err
}
if len(res) > 0 {
return errors.Com... | [
-1.340165138244629,
0.20084203779697418,
0.8473647236824036,
-0.4898928999900818,
1.2276510000228882,
-0.3746553659439087,
1.0795618295669556,
-0.5171130299568176,
-0.5907514691352844,
0.25914061069488525,
0.43464991450309753,
0.23275262117385864,
-0.396071195602417,
0.27626603841781616,
... |
func checkConfig(config interface{}) {
configType := reflect.TypeOf(config)
if configType.Kind() != reflect.Ptr {
log.Fatal("Config not a pointer")
}
configValueType := configType.Elem()
if configValueType.Kind() != reflect.Struct {
log.Fatal("Config not a pointer to struct")
}
} | [
-0.5652915239334106,
-0.1385541707277298,
0.42602092027664185,
0.5529849529266357,
0.16369886696338654,
0.9386755228042603,
0.7374164462089539,
-0.05451134964823723,
0.6273252367973328,
0.8004946112632751,
-0.015190569683909416,
0.40025579929351807,
-0.7913845777511597,
1.7486478090286255,... |
func ParseCommandLine(args []string, config interface{}) *flag.FlagSet {
checkConfig(config)
configType := reflect.TypeOf(config).Elem()
configValue := reflect.ValueOf(config).Elem()
flagSet := flag.NewFlagSet(configType.Name(), flag.ExitOnError)
for i := 0; i < configType.NumField(); i++ {
field := configTyp... | [
-0.09043366461992264,
-0.24645763635635376,
0.4694684147834778,
-0.128596693277359,
0.5697357654571533,
-0.00269192922860384,
0.10325706005096436,
-0.4523194432258606,
-1.0398716926574707,
-0.002032940275967121,
-0.07402841001749039,
-0.08138122409582138,
-0.7789103388786316,
0.50131392478... |
func ParseEnvironmentVariables(prefix string, config interface{}) {
checkConfig(config)
configType := reflect.TypeOf(config).Elem()
configValue := reflect.ValueOf(config).Elem()
for i := 0; i < configType.NumField(); i++ {
field := configType.Field(i)
value, ok := os.LookupEnv(prefix + field.Name)
if ok {
... | [
-0.9219373464584351,
-0.249528169631958,
0.4543629288673401,
-1.0135911703109741,
-0.5277881622314453,
0.02617771178483963,
-0.16086305677890778,
0.3927401304244995,
-0.9431781768798828,
0.8715431094169617,
-0.6717262864112854,
0.34687989950180054,
0.31462278962135315,
0.9440087080001831,
... |
func ParseJson(fileName string, config interface{}) error {
checkConfig(config)
data, err := ioutil.ReadFile(fileName)
if err != nil {
return err
}
return json.Unmarshal(data, config)
} | [
-0.6078693270683289,
-0.48959311842918396,
0.4683692753314972,
-0.5799203515052795,
-0.6783653497695923,
0.34638503193855286,
0.23374047875404358,
0.9493266344070435,
-0.6401156187057495,
0.7870848774909973,
-0.37059855461120605,
0.2647569477558136,
-0.08242511749267578,
0.2562475502490997... |
func ParseAll(fileName string, prefix string, config interface{}) {
ParseJson(fileName, config)
ParseEnvironmentVariables(prefix, config)
ParseCommandLine(os.Args, config)
} | [
0.6906144022941589,
-0.9404365420341492,
0.48022687435150146,
0.4545302093029022,
-0.14527787268161774,
0.4974341094493866,
-0.5459575653076172,
0.6131971478462219,
-0.8734105825424194,
0.3130888342857361,
-0.3762854039669037,
0.43643027544021606,
0.5541718602180481,
1.2292370796203613,
... |
func NewCallOptions(opts ...CallOption) CallOptions {
options := CallOptions{}
for _, o := range opts {
o(&options)
}
return options
} | [
0.013782891444861889,
-0.10542744398117065,
0.48033809661865234,
1.1528677940368652,
-0.6683094501495361,
0.04781242460012436,
-1.8274587392807007,
-1.140940546989441,
0.42027533054351807,
0.2018318623304367,
-0.356728732585907,
-0.0896039754152298,
-0.6720125079154968,
0.9245327711105347,... |
func Context(ctx context.Context) Option {
return func(o *Options) {
o.Context = ctx
}
} | [
0.49885091185569763,
0.31035152077674866,
0.3282459080219269,
-0.18282915651798248,
0.8006842732429504,
0.6664218306541443,
0.4303184151649475,
-0.6079848408699036,
2.0159249305725098,
-0.7578306794166565,
-0.6657838225364685,
0.5117596387863159,
0.6380040645599365,
-0.9215937852859497,
... |
func NewPublishOptions(opts ...PublishOption) PublishOptions {
options := PublishOptions{}
for _, o := range opts {
o(&options)
}
return options
} | [
-0.24017274379730225,
-0.6853192448616028,
0.3869963586330414,
1.375279426574707,
-0.6278228163719177,
-0.5000020265579224,
-0.2667989432811737,
-0.26950469613075256,
0.5025076270103455,
0.6153608560562134,
-0.019785288721323013,
0.15938524901866913,
-0.10438327491283417,
1.285706996917724... |
func NewMessageOptions(opts ...MessageOption) MessageOptions {
options := MessageOptions{}
for _, o := range opts {
o(&options)
}
return options
} | [
-0.2698200047016144,
-0.2856829762458801,
0.4793189465999603,
0.823158860206604,
-0.025174438953399658,
-0.8106323480606079,
-0.6159579753875732,
-1.0674012899398804,
0.720129668712616,
1.0375975370407104,
-0.5250890851020813,
0.20530231297016144,
-1.0605733394622803,
1.4524918794631958,
... |
func NewRequestOptions(opts ...RequestOption) RequestOptions {
options := RequestOptions{}
for _, o := range opts {
o(&options)
}
return options
} | [
-0.8645147085189819,
-0.21376988291740417,
0.42582249641418457,
1.7546871900558472,
-0.20496585965156555,
-0.619758665561676,
-1.129461407661438,
-0.7802468538284302,
0.7531442046165466,
-0.46566128730773926,
-0.04906436800956726,
-0.2218594253063202,
-0.7086848020553589,
0.315564632415771... |
func NewOptions(opts ...Option) Options {
options := Options{
Context: context.Background(),
ContentType: DefaultContentType,
Codecs: make(map[string]codec.Codec),
CallOptions: CallOptions{
Context: context.Background(),
Backoff: DefaultBackoff,
Retry: DefaultRetry,
... | [
0.16016188263893127,
0.3040057122707367,
0.4617748558521271,
0.223235622048378,
0.8584479093551636,
-0.631639301776886,
-0.24873720109462738,
-1.321689248085022,
0.7759875059127808,
-0.17480327188968658,
-0.26971399784088135,
-0.30469515919685364,
-0.8048303723335266,
0.36909469962120056,
... |
func Broker(b broker.Broker) Option {
return func(o *Options) {
o.Broker = b
}
} | [
0.11479225754737854,
0.546479344367981,
0.2626441419124603,
0.7053359746932983,
0.02126956172287464,
0.4627016484737396,
0.6352792978286743,
0.6771357655525208,
1.566896677017212,
-1.4084125757217407,
-0.6373156309127808,
0.2919597923755646,
-0.26673680543899536,
-0.04654631391167641,
-0... |
func Tracer(t tracer.Tracer) Option {
return func(o *Options) {
o.Tracer = t
}
} | [
0.9248597621917725,
-0.08549413084983826,
0.37330952286720276,
0.3069668412208557,
-0.08454395830631256,
1.0440877676010132,
1.2196366786956787,
-0.3616686761379242,
1.4128714799880981,
-0.5561211109161377,
-0.2847011983394623,
-0.3592166602611542,
0.7690652012825012,
0.3660675883293152,
... |
func Logger(l logger.Logger) Option {
return func(o *Options) {
o.Logger = l
}
} | [
-0.08405452221632004,
0.5729846358299255,
0.4169493615627289,
-0.5649778246879578,
0.2730589210987091,
0.14099395275115967,
-0.14365306496620178,
0.10100656747817993,
1.3272324800491333,
-0.7377012968063354,
-0.7078906297683716,
-0.3331901431083679,
0.5151594281196594,
0.9307444095611572,
... |
func Meter(m meter.Meter) Option {
return func(o *Options) {
o.Meter = m
}
} | [
0.05330309644341469,
-0.003796992590650916,
0.20081427693367004,
0.48472514748573303,
-0.3408152163028717,
0.636688232421875,
0.5954363942146301,
-0.16421031951904297,
1.3707555532455444,
-0.8905622959136963,
0.07887216657400131,
0.5455954670906067,
0.3571568727493286,
0.6415980458259583,
... |
func Codec(contentType string, c codec.Codec) Option {
return func(o *Options) {
o.Codecs[contentType] = c
}
} | [
0.9375346302986145,
-0.5501337647438049,
0.2600362002849579,
-0.9566836357116699,
-0.04799807444214821,
0.29349052906036377,
0.3509606122970581,
-0.44674307107925415,
0.6211407780647278,
-0.8944070339202881,
0.16618521511554718,
1.0087757110595703,
0.7613057494163513,
-0.2306922972202301,
... |
func ContentType(ct string) Option {
return func(o *Options) {
o.ContentType = ct
}
} | [
0.9586954712867737,
0.13088034093379974,
0.2422676384449005,
-0.40872037410736084,
0.678190290927887,
-0.0525536946952343,
0.6454052329063416,
-0.18974646925926208,
0.715914249420166,
0.11548028886318207,
-0.0243825763463974,
0.257230669260025,
-0.4126845598220825,
-0.4680623710155487,
-... |
func Proxy(addr string) Option {
return func(o *Options) {
o.Proxy = addr
}
} | [
0.6877696514129639,
0.45974674820899963,
0.3765983283519745,
-0.5764899849891663,
-0.4162933826446533,
0.18696057796478271,
0.4456576406955719,
0.6553345918655396,
0.9275435209274292,
-0.7248977422714233,
-0.3540698289871216,
0.5858908295631409,
-0.06005411595106125,
-0.4362030327320099,
... |
func PoolSize(d int) Option {
return func(o *Options) {
o.PoolSize = d
}
} | [
-0.17579258978366852,
1.3383840322494507,
0.6076244711875916,
-0.6098225712776184,
-0.09938083589076996,
0.504639744758606,
1.2839500904083252,
-0.46094733476638794,
1.095873236656189,
-0.657436192035675,
-0.24755021929740906,
0.1347883939743042,
0.9342185258865356,
-0.6050322651863098,
... |
func PoolTTL(d time.Duration) Option {
return func(o *Options) {
o.PoolTTL = d
}
} | [
0.4668923020362854,
0.7197386026382446,
0.49013519287109375,
-0.6637453436851501,
-0.06670720130205154,
1.2146333456039429,
0.9743059873580933,
-0.9176301956176758,
0.7470424175262451,
0.49000734090805054,
-1.256907343864441,
0.14146248996257782,
1.1738108396530151,
-0.7718774676322937,
... |
func Transport(t transport.Transport) Option {
return func(o *Options) {
o.Transport = t
}
} | [
0.25832483172416687,
0.2880183756351471,
0.24695606529712677,
-0.2959304749965668,
0.43585720658302307,
0.6943104863166809,
0.7474859952926636,
-0.8442443013191223,
1.0567599534988403,
-0.9036303162574768,
-1.0672670602798462,
0.08766856044530869,
0.6484583020210266,
-0.695354163646698,
... |
func Register(r register.Register) Option {
return func(o *Options) {
if o.Router != nil {
o.Router.Init(router.Register(r))
}
}
} | [
-0.1487320512533188,
0.9119070768356323,
0.43744951486587524,
0.5714592337608337,
0.9425641894340515,
-0.6413918137550354,
0.14620539546012878,
-0.0960141196846962,
0.3785383701324463,
-0.6661136746406555,
-0.7657325863838196,
0.13434968888759613,
0.37842172384262085,
0.6785064935684204,
... |
func Router(r router.Router) Option {
return func(o *Options) {
o.Router = r
}
} | [
0.5486576557159424,
0.051115743815898895,
0.2905711531639099,
0.220136821269989,
-0.12091775983572006,
0.4405461549758911,
0.8467171788215637,
-0.3736724257469177,
1.273210048675537,
-0.42475247383117676,
-0.005710741970688105,
0.27206963300704956,
0.6414667963981628,
0.3045091927051544,
... |
func Selector(s selector.Selector) Option {
return func(o *Options) {
o.Selector = s
}
} | [
0.486133873462677,
-0.434955894947052,
-0.045972540974617004,
0.09230060130357742,
-0.4728121757507324,
-0.798174262046814,
0.46561121940612793,
-0.1073155403137207,
1.48581862449646,
-1.2895623445510864,
-0.2969664931297302,
0.2134254276752472,
1.1232388019561768,
-0.6848015785217285,
-... |
func Wrap(w Wrapper) Option {
return func(o *Options) {
o.Wrappers = append(o.Wrappers, w)
}
} | [
-1.1014190912246704,
0.5289841890335083,
0.3056458830833435,
0.2968856394290924,
-0.05221715196967125,
0.7397036552429199,
-0.49670156836509705,
-0.49990782141685486,
1.4302600622177124,
0.24202877283096313,
0.5814102292060852,
0.206733837723732,
0.5807545781135559,
0.045253027230501175,
... |
func WrapCall(cw ...CallWrapper) Option {
return func(o *Options) {
o.CallOptions.CallWrappers = append(o.CallOptions.CallWrappers, cw...)
}
} | [
-0.2181548774242401,
0.4391216039657593,
0.4570096731185913,
0.5395672917366028,
0.06333039700984955,
1.358764410018921,
-0.9315816164016724,
-0.6190252900123596,
0.9928826689720154,
0.1870487481355667,
0.22598029673099518,
0.15786278247833252,
-0.0503709651529789,
0.39257991313934326,
-... |
func Backoff(fn BackoffFunc) Option {
return func(o *Options) {
o.CallOptions.Backoff = fn
}
} | [
1.3217391967773438,
0.8442192077636719,
0.40512993931770325,
-0.16427060961723328,
0.5162830352783203,
0.8683856129646301,
0.5459688305854797,
-0.07058816403150558,
0.6379251480102539,
-0.107107974588871,
-0.03096223622560501,
-0.046164970844984055,
-0.15305039286613464,
-1.120577335357666... |
func Name(n string) Option {
return func(o *Options) {
o.Name = n
}
} | [
-0.13457857072353363,
0.19962047040462494,
0.5262288451194763,
-0.27936622500419617,
-0.48073387145996094,
-0.1936095803976059,
0.5801122188568115,
-0.8991037011146545,
0.6078188419342041,
0.5345683097839355,
-1.5202611684799194,
-0.7515823841094971,
0.8552529811859131,
-0.3928708136081695... |
func Lookup(l LookupFunc) Option {
return func(o *Options) {
o.Lookup = l
}
} | [
0.4369114637374878,
0.6122087240219116,
0.44734326004981995,
-0.3162751793861389,
0.2194756716489792,
0.4565962851047516,
0.6387361288070679,
0.7018752098083496,
1.2106415033340454,
-0.06068551167845726,
-0.43853214383125305,
-0.09210958331823349,
0.9298058152198792,
-1.1417239904403687,
... |
func Retries(i int) Option {
return func(o *Options) {
o.CallOptions.Retries = i
}
} | [
0.8308151364326477,
1.1565159559249878,
0.5137024521827698,
0.15348461270332336,
0.984607458114624,
0.6404080390930176,
0.2978679835796356,
-0.6699199080467224,
0.9541831612586975,
-0.4433051645755768,
-0.46440964937210083,
-0.1259130835533142,
-0.5022794008255005,
-1.0313295125961304,
-... |
func Retry(fn RetryFunc) Option {
return func(o *Options) {
o.CallOptions.Retry = fn
}
} | [
1.415177583694458,
0.8498767018318176,
0.37480440735816956,
0.5792807340621948,
0.7517827153205872,
0.27616313099861145,
-0.3049274682998657,
-0.6916866302490234,
0.8351092338562012,
-0.6645071506500244,
-0.24763444066047668,
0.4272076189517975,
0.06301717460155487,
-0.7287735342979431,
... |
func RequestTimeout(d time.Duration) Option {
return func(o *Options) {
o.CallOptions.RequestTimeout = d
}
} | [
0.14618824422359467,
1.2788569927215576,
0.46561911702156067,
0.8169876337051392,
0.7685188055038452,
0.5656694769859314,
-0.028724567964673042,
-0.12830089032649994,
1.0453290939331055,
-0.650955319404602,
0.18232938647270203,
0.34500259160995483,
-0.17646655440330505,
0.2341051697731018,... |
func StreamTimeout(d time.Duration) Option {
return func(o *Options) {
o.CallOptions.StreamTimeout = d
}
} | [
1.0656123161315918,
0.9427721500396729,
0.4987640380859375,
-0.11114991456270218,
0.3795439302921295,
0.8979036211967468,
0.30007413029670715,
-0.8046389818191528,
1.2972427606582642,
0.29475173354148865,
-0.06467592716217041,
1.0753141641616821,
-0.1808154582977295,
0.699450671672821,
-... |
func DialTimeout(d time.Duration) Option {
return func(o *Options) {
o.CallOptions.DialTimeout = d
}
} | [
1.0692294836044312,
0.5451357364654541,
0.4241228699684143,
-0.4839309751987457,
0.5291966795921326,
0.7923975586891174,
-0.1452222317457199,
0.1442759782075882,
1.351729154586792,
0.23534268140792847,
-0.0484197773039341,
0.4506571590900421,
0.5533828735351562,
-0.09865884482860565,
-1.... |
func WithExchange(e string) PublishOption {
return func(o *PublishOptions) {
o.Exchange = e
}
} | [
0.16136714816093445,
0.13485828042030334,
0.4263242185115814,
0.1175149530172348,
-0.011128273792564869,
0.1815502643585205,
-0.026591576635837555,
0.1191234290599823,
0.6587440967559814,
0.3420206904411316,
0.5205265283584595,
-0.10567066073417664,
0.5002521872520447,
0.5444840788841248,
... |
func PublishContext(ctx context.Context) PublishOption {
return func(o *PublishOptions) {
o.Context = ctx
}
} | [
0.08916324377059937,
0.0020249774679541588,
0.389697790145874,
-0.14586642384529114,
-0.6657513976097107,
-0.04785702005028725,
0.2234509140253067,
-0.09254347532987595,
1.4384353160858154,
0.36089247465133667,
-0.5042911767959595,
0.6332618594169617,
0.5077044367790222,
-0.022424353286623... |
func WithAddress(a ...string) CallOption {
return func(o *CallOptions) {
o.Address = a
}
} | [
0.3427501320838928,
-0.7015225291252136,
0.4501209557056427,
0.0603271909058094,
-0.08598129451274872,
0.5813353061676025,
-0.17964443564414978,
-0.5227009654045105,
1.1802531480789185,
-0.2551700472831726,
-0.6664508581161499,
0.6488094925880432,
0.3193014860153198,
0.39437276124954224,
... |
func WithCallWrapper(cw ...CallWrapper) CallOption {
return func(o *CallOptions) {
o.CallWrappers = append(o.CallWrappers, cw...)
}
} | [
0.27863019704818726,
-0.24898622930049896,
0.4379614591598511,
0.5798518657684326,
-0.6853724718093872,
0.48418787121772766,
-1.133697748184204,
-1.000983476638794,
0.8617123961448669,
-0.28595396876335144,
-0.23066861927509308,
-0.39510801434516907,
0.11121179163455963,
1.0414408445358276... |
func WithBackoff(fn BackoffFunc) CallOption {
return func(o *CallOptions) {
o.Backoff = fn
}
} | [
1.1188294887542725,
0.2858322262763977,
0.470018595457077,
-0.19110886752605438,
-0.23037585616111755,
0.21721038222312927,
0.009521819651126862,
-0.3246264159679413,
0.41903379559516907,
0.23873329162597656,
-0.23570501804351807,
-0.5683062672615051,
0.44010868668556213,
-0.65915757417678... |
func WithRetry(fn RetryFunc) CallOption {
return func(o *CallOptions) {
o.Retry = fn
}
} | [
1.1017887592315674,
0.27538424730300903,
0.5378338098526001,
0.2563507854938507,
0.08587431907653809,
-0.6837226152420044,
-0.3340160548686981,
-0.9711875319480896,
0.8662225008010864,
-0.011694475077092648,
-0.5160387754440308,
0.20702818036079407,
0.5180519819259644,
-0.7263675332069397,... |
func WithRetries(i int) CallOption {
return func(o *CallOptions) {
o.Retries = i
}
} | [
0.7241289615631104,
0.7741266489028931,
0.4574705958366394,
-0.4036843180656433,
-0.058722175657749176,
0.03995748609304428,
-0.10408554971218109,
-0.9740808010101318,
0.9187358617782593,
-0.32238519191741943,
-0.5932700634002686,
-0.7731837034225464,
-0.08335861563682556,
-0.8177047371864... |
func WithRequestTimeout(d time.Duration) CallOption {
return func(o *CallOptions) {
o.RequestTimeout = d
}
} | [
0.3070465326309204,
0.4287427067756653,
0.4913209080696106,
0.2805466949939728,
-0.46384987235069275,
0.17899778485298157,
-0.5762169361114502,
-0.5665232539176941,
0.6770948767662048,
-0.09712228924036026,
-0.17145125567913055,
-0.2723352015018463,
0.22929427027702332,
0.7409880757331848,... |
func WithStreamTimeout(d time.Duration) CallOption {
return func(o *CallOptions) {
o.StreamTimeout = d
}
} | [
1.334459662437439,
0.4442571997642517,
0.3986271321773529,
-0.42077159881591797,
-0.7479426264762878,
0.3296186029911041,
-0.18543791770935059,
-0.8870713710784912,
0.809960126876831,
0.34509941935539246,
-0.26393240690231323,
0.6477625370025635,
0.259080708026886,
1.0260818004608154,
-1... |
func WithDialTimeout(d time.Duration) CallOption {
return func(o *CallOptions) {
o.DialTimeout = d
}
} | [
1.1423372030258179,
0.010102121159434319,
0.3887249231338501,
-0.25164052844047546,
-0.5208839774131775,
0.06522110849618912,
-0.5508595108985901,
-0.1646198332309723,
1.2397193908691406,
0.3825038969516754,
-0.3992038369178772,
-0.22182698547840118,
0.8644436597824097,
0.5580063462257385,... |
func WithAuthToken() CallOption {
return func(o *CallOptions) {
o.AuthToken = true
}
} | [
0.8405140042304993,
0.016356369480490685,
0.46858304738998413,
-0.4320299029350281,
-0.17216959595680237,
0.20701923966407776,
0.13986767828464508,
-0.23578383028507233,
0.5240249633789062,
-0.4079928696155548,
-1.170725703239441,
0.6041303277015686,
0.6649850010871887,
0.572455883026123,
... |
func WithNetwork(n string) CallOption {
return func(o *CallOptions) {
o.Network = n
}
} | [
-0.21621352434158325,
0.3965199887752533,
0.4155690670013428,
0.15305264294147491,
-0.03205244615674019,
-0.09773845970630646,
-0.5880439281463623,
-1.0389577150344849,
0.4916921854019165,
-0.11112745851278305,
-0.9968037009239197,
-1.0135977268218994,
0.1447397917509079,
0.046435795724391... |
func WithRouter(r router.Router) CallOption {
return func(o *CallOptions) {
o.Router = r
}
} | [
0.37732425332069397,
-0.1097169816493988,
0.36130672693252563,
0.1013912782073021,
-1.0772361755371094,
0.6420278549194336,
0.22962719202041626,
-0.9409675598144531,
1.1907504796981812,
-0.3777879774570465,
0.005172049161046743,
-0.16588541865348816,
0.2490185648202896,
0.7518609762191772,... |
func WithSelector(s selector.Selector) CallOption {
return func(o *CallOptions) {
o.Selector = s
}
} | [
0.20198695361614227,
-0.5713732242584229,
0.18699124455451965,
-0.08583171665668488,
-1.2562087774276733,
-0.3595212399959564,
-0.29242172837257385,
-0.7207263708114624,
1.1355867385864258,
-0.3664761185646057,
-0.3864203691482544,
-0.07119473069906235,
0.8768393993377686,
-0.0388011112809... |
func WithSelectOptions(sops ...selector.SelectOption) CallOption {
return func(o *CallOptions) {
o.SelectOptions = sops
}
} | [
0.3137015402317047,
-0.17705602943897247,
0.5618110299110413,
0.8565154075622559,
-0.5799102783203125,
-0.02871020883321762,
-0.6797946691513062,
-1.6931357383728027,
1.5965957641601562,
0.9620453715324402,
-0.22456301748752594,
-0.9400199055671692,
0.4981459081172943,
0.3885980248451233,
... |
func WithMessageContentType(ct string) MessageOption {
return func(o *MessageOptions) {
o.ContentType = ct
}
} | [
0.946547269821167,
-0.6447773575782776,
0.3283195197582245,
0.21834449470043182,
-0.5937146544456482,
-0.7966479659080505,
0.36466073989868164,
-0.4741772413253784,
0.1584198772907257,
0.6872112154960632,
0.6077097654342651,
-0.6823177933692932,
-0.13830773532390594,
1.0339123010635376,
... |
func WithContentType(ct string) RequestOption {
return func(o *RequestOptions) {
o.ContentType = ct
}
} | [
0.3509466350078583,
-0.6737982630729675,
0.21583271026611328,
0.12373226135969162,
-0.3970363438129425,
-0.18560965359210968,
-0.1296437531709671,
-0.5248914361000061,
0.47296980023384094,
0.1393231451511383,
0.26804956793785095,
-0.6049907207489014,
0.018970029428601265,
0.256856799125671... |
func StreamingRequest() RequestOption {
return func(o *RequestOptions) {
o.Stream = true
}
} | [
0.004458180628716946,
0.8659001588821411,
0.3918377757072449,
0.3938709795475006,
-0.09249404817819595,
0.5600641369819641,
0.1956411451101303,
-0.07291866838932037,
0.6672340035438538,
-0.3914766013622284,
0.7979902029037476,
1.0331854820251465,
-0.2793254256248474,
0.2546878159046173,
... |
func NewMockProvider(ctrl *gomock.Controller) *MockProvider {
mock := &MockProvider{ctrl: ctrl}
mock.recorder = &MockProviderMockRecorder{mock}
return mock
} | [
-0.0986453965306282,
0.3910309672355652,
0.1117168515920639,
0.9454098343849182,
-0.013698438182473183,
0.3810182213783264,
0.4250999093055725,
-0.7669780254364014,
0.9146217107772827,
1.1438515186309814,
-0.5733456611633301,
-0.20803387463092804,
-0.581371009349823,
1.1119866371154785,
... |
func (m *MockProvider) EXPECT() *MockProviderMockRecorder {
return m.recorder
} | [
-0.3054896295070648,
0.16834166646003723,
0.21436446905136108,
0.5335744023323059,
0.1627933233976364,
0.31428954005241394,
0.037487275898456573,
0.22436587512493134,
1.0293400287628174,
0.4481503367424011,
0.2966248691082001,
0.9902622103691101,
-0.9623739123344421,
0.3121325671672821,
... |
func (m *MockProvider) GetEntrecote(weight int) (int, error) {
ret := m.ctrl.Call(m, "GetEntrecote", weight)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.28218531608581543,
0.0911397784948349,
1.0725138187408447,
0.27648285031318665,
1.31178617477417,
-0.28934749960899353,
1.2151538133621216,
-0.45345938205718994,
-0.8812254667282104,
0.21211154758930206,
-0.2787827253341675,
-1.1645838022232056,
-1.1607518196105957,
0.5057425498962402,
... |
func (mr *MockProviderMockRecorder) GetEntrecote(weight interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEntrecote", reflect.TypeOf((*MockProvider)(nil).GetEntrecote), weight)
} | [
0.18354126811027527,
0.7928933501243591,
0.8254871964454651,
0.22678878903388977,
0.7500841021537781,
-0.0032118891831487417,
0.3012150526046753,
-0.6329852342605591,
0.35390618443489075,
1.350848913192749,
0.5209335684776306,
0.11239294707775116,
-1.055916666984558,
0.36195164918899536,
... |
func (m *MockProvider) GetTBone(weight int) (int, error) {
ret := m.ctrl.Call(m, "GetTBone", weight)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.4313291609287262,
0.8847045302391052,
0.7636711597442627,
0.8163014054298401,
1.091019630432129,
-0.3653583824634552,
1.0203313827514648,
-0.7189950942993164,
-1.061359167098999,
0.4298180937767029,
-0.9387504458427429,
-0.7696475982666016,
-1.7194318771362305,
1.5714231729507446,
0.8... |
func (mr *MockProviderMockRecorder) GetTBone(weight interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTBone", reflect.TypeOf((*MockProvider)(nil).GetTBone), weight)
} | [
0.14172305166721344,
1.716162919998169,
0.5946818590164185,
0.549039363861084,
0.49079686403274536,
-0.01655571162700653,
0.263007253408432,
-1.0468635559082031,
0.21830840408802032,
1.477742075920105,
0.11430095136165619,
0.6164169907569885,
-1.4499626159667969,
1.5084545612335205,
0.32... |
func (u User) Store(r *http.Request, db *sql.DB) (Credentials, error) {
// create new credentials
creds := Credentials{
crypt.RandomString(credentialLen),
crypt.RandomString(credentialKeyLen),
}
var DBUser User
_ = DBUser.GetWithUUID(r, db, u.UUID) // doesn't matter if error just means there is no previous us... | [
-0.5141719579696655,
0.2985292971134186,
0.9197487831115723,
0.5657749772071838,
-0.3004109859466553,
-0.09865828603506088,
0.44616684317588806,
-0.18922045826911926,
-0.17407065629959106,
0.26423850655555725,
-0.32947129011154175,
-0.05873003974556923,
-0.5974229574203491,
0.5426508188247... |
func (u *User) GetWithUUID(r *http.Request, db *sql.DB, UUID string) error {
// language=PostgreSQL
row := tdb.QueryRow(r, db, `
SELECT UUID, credentials, credential_key
FROM users
WHERE UUID = $1
`, crypt.Hash(UUID))
return row.Scan(&u.UUID, &u.Credentials.Value, &u.Credentials.Key)
} | [
-0.6197056174278259,
0.29742735624313354,
0.4634212255477905,
0.02123419940471649,
-0.736967146396637,
-0.5282482504844666,
-0.7225367426872253,
-0.07542530447244644,
-0.846295952796936,
0.1308465301990509,
-0.21271570026874542,
0.19276085495948792,
-0.021067023277282715,
-0.31288608908653... |
func (u *User) Get(r *http.Request, db *sql.DB, credentials string) error {
var firebaseToken sql.NullString
// language=PostgreSQL
var row = tdb.QueryRow(r, db, `
SELECT UUID, credentials, credential_key, notification_cnt, firebase_token
FROM users
WHERE credentials = $1
`, crypt.Hash(credentials))
if err := r... | [
-0.6685181260108948,
0.81403648853302,
0.4804469347000122,
-0.011653115041553974,
0.07818814367055893,
-0.3055359721183777,
-0.6429685950279236,
0.54827481508255,
-0.8039237856864929,
-0.37141674757003784,
-0.46893420815467834,
-0.11501933634281158,
0.17960916459560394,
-0.0110935540869832... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.