text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (*Node) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{3}
} | [
-1.1299227476119995,
0.8331925272941589,
0.5287612676620483,
-0.3189433217048645,
0.1299704760313034,
-0.1069939136505127,
-0.33473342657089233,
0.4012536406517029,
-0.02726457081735134,
-0.2055712640285492,
-0.3869921565055847,
0.34003859758377075,
-0.06556457281112671,
0.2779914140701294... |
func (*Cluster) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{4}
} | [
-0.5678310394287109,
0.7320823073387146,
0.4169466197490692,
0.20459407567977905,
0.05219979211688042,
0.14416036009788513,
0.33437204360961914,
0.47517287731170654,
0.36861419677734375,
-0.6765760183334351,
-0.6015541553497314,
0.8305032253265381,
-0.15969659388065338,
-0.0315637215971946... |
func (*JoinRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{5}
} | [
-0.7483343482017517,
0.3546167314052582,
0.8001750111579895,
0.5453193783760071,
-0.02289888821542263,
0.5024400353431702,
0.2204943746328354,
0.3563174307346344,
-0.6141796112060547,
0.09560061991214752,
-0.09811142086982727,
-0.026268601417541504,
-0.3416203260421753,
0.3036782145500183,... |
func (*LeaveRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{6}
} | [
-0.6847169399261475,
0.10217122733592987,
0.8695036172866821,
-0.32988664507865906,
0.2240344136953354,
0.2552054822444916,
-0.1516316831111908,
-0.21625979244709015,
-0.015352034009993076,
0.16032801568508148,
-0.2551761567592621,
-0.2356598824262619,
-0.5095047950744629,
0.11985813826322... |
func (*NodeResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{7}
} | [
-0.5387563705444336,
0.5123976469039917,
0.16024984419345856,
-0.6193604469299316,
0.27563461661338806,
-0.9558786749839783,
0.23860463500022888,
-0.2783130705356598,
0.013589004054665565,
-0.13027845323085785,
-0.4207164943218231,
-0.17573580145835876,
-0.5850906372070312,
-0.207318872213... |
func (*ClusterResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{8}
} | [
-0.24352815747261047,
0.41186630725860596,
0.19064100086688995,
-0.04069807752966881,
0.3783831298351288,
-0.7606300115585327,
0.5714195370674133,
0.11434972286224365,
0.2655734419822693,
0.10578545928001404,
-0.8360185623168945,
0.38378018140792847,
-1.0214494466781616,
-0.967290878295898... |
func (*Document) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{9}
} | [
-0.30782341957092285,
0.8542134761810303,
0.4246600866317749,
0.42272084951400757,
-0.7383763194084167,
0.06654299050569534,
0.6399602890014648,
0.552556037902832,
-0.013002107851207256,
-0.44266757369041443,
-0.4222986698150635,
0.33394405245780945,
-0.487258642911911,
0.2409335821866989,... |
func (*GetRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{10}
} | [
-0.8760787844657898,
0.9502174854278564,
0.7846418619155884,
0.24330413341522217,
0.8094497323036194,
-0.3490470349788666,
0.4032856523990631,
0.09502992779016495,
-0.07793841511011124,
-0.28494974970817566,
-0.321196585893631,
0.5724079608917236,
-0.25323721766471863,
-0.3327770233154297,... |
func (*GetResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{11}
} | [
-0.09742996841669083,
0.6752442121505737,
0.699293851852417,
0.33906564116477966,
1.1606935262680054,
-0.7092850804328918,
0.9911683201789856,
0.03892844542860985,
0.3493878245353699,
-0.5297807455062866,
-0.7843518853187561,
-0.0817984789609909,
-0.8516994118690491,
-0.2684086263179779,
... |
func (*SetRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{12}
} | [
-1.318250298500061,
0.6861526370048523,
0.6284091472625732,
0.4098028540611267,
0.497892290353775,
-0.08094580471515656,
-0.03659510612487793,
-0.04195993021130562,
-0.2003769427537918,
-0.13341279327869415,
-0.30367007851600647,
0.460121214389801,
0.021752238273620605,
-0.2564710378646850... |
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{13}
} | [
-0.8989044427871704,
0.4984051287174225,
0.6205740571022034,
0.31079503893852234,
0.2483726590871811,
-0.30502432584762573,
0.17315642535686493,
0.48333728313446045,
0.5439738035202026,
-0.7448195219039917,
0.013873615302145481,
0.7271794676780701,
-0.3691788613796234,
0.6544229984283447,
... |
func (*BulkIndexRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{14}
} | [
-0.8107736706733704,
0.5032145380973816,
0.2315053790807724,
0.2791457176208496,
0.3242138922214508,
-0.9522725939750671,
0.48973408341407776,
0.7462629675865173,
-0.21033251285552979,
-0.23873788118362427,
-0.4908643960952759,
0.770858883857727,
-0.955530047416687,
0.14731667935848236,
... |
func (*BulkIndexResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{15}
} | [
-0.054654382169246674,
0.37262624502182007,
-0.20504994690418243,
-0.09177656471729279,
0.7797176837921143,
-1.2316687107086182,
0.7451156377792358,
-0.006232767831534147,
0.16261111199855804,
-0.04953275993466377,
-1.285562515258789,
0.11465110629796982,
-1.4998959302902222,
-0.8404526710... |
func (*BulkDeleteRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{16}
} | [
-0.7213828563690186,
0.5675885081291199,
0.479030042886734,
-0.03759458661079407,
0.9648322463035583,
-0.6856255531311035,
-0.25405898690223694,
0.40435418486595154,
0.10620751976966858,
-0.260711133480072,
-0.5858887434005737,
1.4779646396636963,
-0.32503026723861694,
0.6631738543510437,
... |
func (*BulkDeleteResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{17}
} | [
-0.15863420069217682,
0.5240485668182373,
0.0945141613483429,
-0.3854253888130188,
1.2255444526672363,
-1.1153976917266846,
0.035043615847826004,
0.10541000217199326,
0.33399638533592224,
-0.38444069027900696,
-1.2408084869384766,
0.5520538091659546,
-0.927057683467865,
-0.506059467792511,... |
func (*SetMetadataRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{18}
} | [
-0.9375414848327637,
0.3272281289100647,
0.2614220976829529,
0.26781290769577026,
0.06479978561401367,
0.3551013469696045,
0.5166481137275696,
0.2910009026527405,
-0.7043195366859436,
0.33718109130859375,
-0.30391865968704224,
0.824126660823822,
0.21681778132915497,
0.5382986664772034,
0... |
func (*DeleteMetadataRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{19}
} | [
-0.6548233032226562,
0.40054836869239807,
0.5101630091667175,
0.24274775385856628,
-0.29184842109680176,
0.23212158679962158,
0.49032706022262573,
0.5711017847061157,
-0.19309496879577637,
-0.4225335419178009,
0.25370630621910095,
0.7537585496902466,
-0.09331689774990082,
0.372573584318161... |
func (*SearchRequest) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{20}
} | [
-0.9006422162055969,
0.4121330976486206,
0.5879397988319397,
0.050986528396606445,
0.14864708483219147,
-0.38352224230766296,
0.047450512647628784,
0.10286634415388107,
-0.3028540015220642,
-0.30704718828201294,
-0.4132803678512573,
0.3452194929122925,
-0.3501734137535095,
0.32706409692764... |
func (*SearchResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{21}
} | [
-0.1040644496679306,
0.2718283534049988,
0.34277674555778503,
-0.08511212468147278,
0.6242474317550659,
-1.037510633468628,
0.6620835661888123,
-0.11461073160171509,
-0.0028440835885703564,
-0.2466515451669693,
-1.0787485837936401,
-0.3153674304485321,
-1.1966135501861572,
-0.5886917114257... |
func (*MappingResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{22}
} | [
-0.6624355912208557,
0.41472211480140686,
0.28526371717453003,
0.030167242512106895,
-0.10291275382041931,
-0.2781909704208374,
0.13694079220294952,
0.0007126238197088242,
0.04981333762407303,
-0.16584526002407074,
-0.5749695897102356,
-0.827907383441925,
-0.21405388414859772,
-0.814007043... |
func (*Event) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{23}
} | [
-0.3578251302242279,
0.5405768156051636,
0.5838652849197388,
0.3771812319755554,
0.1533827781677246,
0.15054315328598022,
0.646734893321991,
0.8654953241348267,
0.15273183584213257,
-0.37188297510147095,
-0.8999719619750977,
0.25258004665374756,
0.03942710533738136,
0.3063206076622009,
0... |
func (*WatchResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{24}
} | [
0.15965652465820312,
-0.1426573097705841,
0.3844642639160156,
-0.2891611158847809,
0.6517797708511353,
-0.8037635684013367,
1.3027119636535645,
-0.0636732205748558,
-0.06834729760885239,
-0.3429087698459625,
-1.1012613773345947,
0.03878997638821602,
-0.3935680389404297,
-1.0435659885406494... |
func (*MetricsResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{25}
} | [
0.15963268280029297,
0.5977139472961426,
0.010515800677239895,
-0.30202797055244446,
-0.2575487792491913,
-0.22382117807865143,
0.8307455778121948,
-0.1604730188846588,
-0.43588653206825256,
-0.7315453290939331,
-0.9495596289634705,
-0.2787124812602997,
-0.6790094375610352,
-0.561044573783... |
func checkAndValidateConfig(configDBUtilsList ...interface{}) ConfigDBUtils {
if len(configDBUtilsList) != 1 {
return DefaultConfigDBUtils
}
switch configDBUtilsList[0].(type) {
case ConfigDBUtils:
return configDBUtilsList[0].(ConfigDBUtils)
default:
return DefaultConfigDBUtils
}
} | [
-0.6576265096664429,
0.1410101056098938,
0.4018787443637848,
1.3772333860397339,
0.3975811302661896,
0.29840701818466187,
-0.13114184141159058,
0.1889662891626358,
-0.12787239253520966,
0.8053346872329712,
0.08378534018993378,
-0.31871652603149414,
-0.21895301342010498,
1.0251253843307495,... |
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
return &executableSchema{
resolvers: cfg.Resolvers,
directives: cfg.Directives,
complexity: cfg.Complexity,
}
} | [
0.12359616905450821,
-0.624889075756073,
0.3856506049633026,
0.3890434503555298,
-0.5765991806983948,
0.3744804859161377,
0.09621302038431168,
0.46767035126686096,
-0.36183619499206543,
0.3167094588279724,
-0.5453308820724487,
-0.22916509211063385,
-0.10190654546022415,
-0.1977230012416839... |
func (ec *executionContext) _Goal(ctx context.Context, sel ast.SelectionSet, obj *Goal) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, goalImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switch field.Name {
case... | [
-0.78709477186203,
-0.13183259963989258,
0.4792647957801819,
-0.5609274506568909,
-1.0017597675323486,
-0.18571990728378296,
-0.7231974601745605,
-0.7816723585128784,
-0.9010439515113831,
0.7203345894813538,
0.08760816603899002,
0.13975299894809723,
0.9242576956748962,
-0.2747374176979065,... |
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, mutationImplementors)
ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{
Object: "Mutation",
})
out := graphql.NewOrderedMap(len(fields))
invalid := false... | [
-1.3496938943862915,
-0.33604517579078674,
0.4918152987957001,
-0.6348860263824463,
-0.33993226289749146,
-0.7185899615287781,
-0.4466683268547058,
-1.019349455833435,
0.14229463040828705,
1.0610604286193848,
0.3150923550128937,
-0.3765568435192108,
1.5064984560012817,
-0.3402915894985199,... |
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, queryImplementors)
ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{
Object: "Query",
})
var wg sync.WaitGroup
out := graphql.NewOrderedMap(len(fields))
in... | [
-0.6375154852867126,
0.34454306960105896,
0.5464219450950623,
-0.6024891138076782,
-0.607036292552948,
-0.34206029772758484,
-0.3633044362068176,
-0.7580892443656921,
-0.6900333166122437,
0.3677215874195099,
0.504569411277771,
-0.16438792645931244,
1.2070428133010864,
-0.19502133131027222,... |
func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj *Task) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, taskImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switch field.Name {
case... | [
-0.30859825015068054,
-0.16074004769325256,
0.52657151222229,
-0.5055458545684814,
-0.8003091812133789,
-0.29911255836486816,
-0.2430122196674347,
-0.9321621656417847,
-0.5714820623397827,
0.9729382395744324,
-0.3799266517162323,
-0.04453379660844803,
1.3441596031188965,
-0.508163094520568... |
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __DirectiveImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Al... | [
-0.7616087794303894,
-0.9222742915153503,
0.5578024387359619,
-1.3660553693771362,
-0.7264721393585205,
-0.358225017786026,
-0.5229436755180359,
-0.9618685245513916,
-0.5393950939178467,
0.17081770300865173,
0.5074154138565063,
0.30028486251831055,
0.7200544476509094,
-0.8793110847473145,
... |
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __EnumValueImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Al... | [
-0.7538906931877136,
-0.7788618803024292,
0.5966957807540894,
-0.737507700920105,
-0.4923487901687622,
-0.6097859144210815,
-0.7377671003341675,
-0.6297001242637634,
0.2281954288482666,
0.5711967349052429,
0.4515295922756195,
0.4159531891345978,
0.9537313580513,
0.00574358319863677,
0.01... |
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __FieldImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switc... | [
-0.4673350751399994,
-0.4702756404876709,
0.4902726411819458,
-1.2266252040863037,
-0.4165525436401367,
-0.5237122178077698,
-0.9666463136672974,
-1.0028893947601318,
-0.07367847114801407,
0.4614560306072235,
0.4387163817882538,
0.17293736338615417,
0.862463653087616,
-0.4079228937625885,
... |
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __InputValueImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field... | [
-0.8486756682395935,
-0.8725767135620117,
0.4558454155921936,
-0.9261739253997803,
-0.7550106048583984,
-0.3216555416584015,
-0.546459436416626,
-0.8509218692779541,
-0.15876701474189758,
0.3375934362411499,
0.4458722770214081,
0.2476162165403366,
0.489104688167572,
-0.32047563791275024,
... |
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __SchemaImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
sw... | [
-0.6028403043746948,
-0.39975565671920776,
0.5440967082977295,
-0.5659282207489014,
-0.4211326837539673,
-0.857856035232544,
-0.5496963858604431,
-0.8014232516288757,
0.35261213779449463,
0.5461284518241882,
0.5733287334442139,
0.1435609757900238,
0.7571863532066345,
-0.7791908383369446,
... |
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __TypeImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switch f... | [
-0.3942496180534363,
-0.36735427379608154,
0.5972486138343811,
-1.0446161031723022,
-0.10427015274763107,
-0.7570484280586243,
-0.3255164921283722,
-1.6597648859024048,
-0.028688320890069008,
0.699964702129364,
0.23028090596199036,
0.062451574951410294,
0.41540148854255676,
-0.286366313695... |
func setField(obj interface{}, name string, value interface{}) error {
structValue := reflect.ValueOf(obj).Elem()
structType := reflect.TypeOf(obj).Elem()
structFieldValue := structValue.FieldByName(name)
for i := 0; i < structType.NumField(); i++ {
field := structType.Field(i)
tag := field.Tag.Get("query")
... | [
-0.38041576743125916,
0.11444063484668732,
0.7294371724128723,
0.04046616330742836,
-0.7148771286010742,
1.11346435546875,
0.2968231439590454,
-0.6527996063232422,
-0.3174232542514801,
0.38878247141838074,
-0.7895920276641846,
-0.16579240560531616,
-0.49387845396995544,
0.06660778075456619... |
func ShowCart(w http.ResponseWriter, r *http.Request) {
HomeVars := NewHomePageVars(r)
utils.GenerateTemplate(w, HomeVars, "cart")
} | [
0.48233890533447266,
-0.24629494547843933,
0.41808220744132996,
-0.44650179147720337,
-0.38045451045036316,
-0.07191018015146255,
0.3954063355922699,
0.22133991122245789,
-0.16991446912288666,
0.05413789674639702,
0.8807574510574341,
0.6215866804122925,
0.7524517774581909,
1.03600776195526... |
func GetLevelLabel(level LogLevel) string {
switch level {
case Debug:
return "Debug"
case Verbose:
return "Verbose"
case Info:
return "Info"
case Warning:
return "Warning"
case Error:
return "Error"
case Fatal:
return "Fatal"
case Panic:
return "Panic"
default:
return ""
}
} | [
-0.06113295257091522,
-1.3856444358825684,
0.6452977061271667,
-0.24465209245681763,
0.21817703545093536,
0.9628002643585205,
-1.0375832319259644,
-0.5485702157020569,
-0.030281731858849525,
0.669815182685852,
-0.24439741671085358,
-0.012801650911569595,
-0.21328765153884888,
0.20818996429... |
func SendFeedback(w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
var r models.Review
ts := getToken(req)
if ts == "" {
w.WriteHeader(http.StatusUnauthorized)
return
}
_, err := authorize("employee", ts, false)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusUnauthorized)
io... | [
-0.4321601390838623,
0.016194483265280724,
1.2212666273117065,
0.38254448771476746,
0.3128945529460907,
0.2433401644229889,
0.24341093003749847,
-0.2913687229156494,
-0.0016206963919103146,
0.78856360912323,
0.5248342752456665,
0.417242169380188,
-0.9263823628425598,
0.25134411454200745,
... |
func AddEmployee(w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
var e models.Employee
ts := getToken(req)
if ts == "" {
w.WriteHeader(http.StatusUnauthorized)
return
}
_, err := authorize("operator", ts, false)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusUnauthorized)
i... | [
-1.3482555150985718,
-0.0673038437962532,
1.0145665407180786,
-0.20430544018745422,
-0.19938579201698303,
0.6406504511833191,
-0.4689670503139496,
0.49592530727386475,
-0.5778464078903198,
0.6862990260124207,
0.2557167410850525,
0.14943543076515198,
-0.6302777528762817,
0.5139056444168091,... |
func UpdateEmployee(w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
var e models.Employee
err := json.NewDecoder(req.Body).Decode(&e)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusBadRequest)
return
}
e, err = repo.GetEmployee(e.ID.String())
if err != nil {
log.Println(err)
... | [
-1.2722104787826538,
-1.0956486463546753,
0.8713057637214661,
-0.08189979940652847,
-0.09432367980480194,
0.8881091475486755,
-0.19444626569747925,
0.39712175726890564,
-0.7199035882949829,
0.9977095723152161,
0.01366863027215004,
0.018576549366116524,
-0.5002807974815369,
0.52191913127899... |
func DeleteEmployee(w http.ResponseWriter, req *http.Request, p httprouter.Params) {
id := p.ByName("id")
err := repo.DeleteEmployee(id)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusInternalServerError)
return
}
} | [
-0.6255489587783813,
-0.4856315851211548,
0.5717635750770569,
0.07591799646615982,
0.26981404423713684,
0.9775140285491943,
-0.021364722400903702,
0.7167932987213135,
-0.316249817609787,
0.4503064453601837,
0.003338512731716037,
-0.08866887539625168,
-1.0690984725952148,
0.8022957444190979... |
func GetEmployee(w http.ResponseWriter, req *http.Request, p httprouter.Params) {
id := p.ByName("id")
e, err := repo.GetEmployee(id)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusNotFound)
return
}
ej, _ := json.Marshal(e)
w = setHeaders(w)
fmt.Fprintf(w, "%s\n", ej)
} | [
-0.8254260420799255,
-0.5357043743133545,
0.7759260535240173,
-0.41093775629997253,
0.07117682695388794,
0.1998853236436844,
-0.4141494631767273,
0.223032146692276,
-0.7574950456619263,
0.5138721466064453,
0.10929933190345764,
0.5430284142494202,
-0.4787217974662781,
0.39747077226638794,
... |
func GetEmployeeEmail(w http.ResponseWriter, req *http.Request, p httprouter.Params) {
email := p.ByName("email")
e, err := repo.GetEmployeeEmail(email)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusNotFound)
return
}
ej, _ := json.Marshal(e)
w = setHeaders(w)
fmt.Fprintf(w, "%s\n", ej)
} | [
-0.7428234219551086,
-0.06852433830499649,
0.7423366904258728,
-0.50815349817276,
0.47494664788246155,
-0.027778759598731995,
0.06924957036972046,
0.17352451384067535,
-0.9263672828674316,
0.6902101635932922,
0.25156381726264954,
0.9629414677619934,
-0.05565900355577469,
0.0393574461340904... |
func GetEmployees(w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
es, err := repo.GetEmployees(nil)
if err != nil {
log.Println(err)
w.WriteHeader(http.StatusNotFound)
return
}
esj, _ := json.Marshal(es)
w = setHeaders(w)
fmt.Fprintf(w, "%s\n", esj)
} | [
-1.2908284664154053,
-0.4788014888763428,
0.5816646218299866,
-0.7477932572364807,
0.23741258680820465,
0.024178626015782356,
-0.7483257055282593,
0.6354992389678955,
-0.5307170748710632,
0.9104870557785034,
0.22161705791950226,
0.8595861196517944,
-0.14747391641139984,
0.39408737421035767... |
func Set2Review(w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
r := struct {
ToReview string `json:"toReview"`
Reviewer string `json:"reviewer"`
}{}
ts := getToken(req)
if ts == "" {
w.WriteHeader(http.StatusUnauthorized)
return
}
_, err := authorize("operator", ts, false)
if err != n... | [
-1.0569933652877808,
-0.47084662318229675,
0.8063247799873352,
-0.6048464775085449,
-0.7034480571746826,
0.2571372389793396,
-0.7160164713859558,
0.3093210756778717,
-1.0748980045318604,
0.3969346582889557,
0.3851926326751709,
0.9676152467727661,
-0.056666165590286255,
-0.04351949691772461... |
func NewFactory(options ...interface{}) *DefaultFactory {
f := &DefaultFactory{}
f.initOptions(options...)
return f
} | [
-0.12116976827383041,
0.31445929408073425,
0.3307925760746002,
1.5613170862197876,
-0.10103841871023178,
-0.7240251898765564,
0.034575846046209335,
-0.2989056408405304,
0.47278404235839844,
-0.9147354364395142,
0.05179141089320183,
0.06324919313192368,
-0.19007611274719238,
0.1028205677866... |
func (f *DefaultFactory) PageFromURL(ctx context.Context, origURLtext string, options ...interface{}) (Content, error) {
if len(origURLtext) == 0 {
return nil, targetURLIsBlankError(xerrors.Caller(xErrorsFrameCaller))
}
// Use the standard Go HTTP library method to retrieve the Content; the default will automatic... | [
0.27798810601234436,
-0.5857865214347839,
0.7740615010261536,
0.04579592123627663,
-0.7338827252388,
-0.4479011297225952,
-0.4472064673900604,
-0.07250288128852844,
0.2188425362110138,
0.08751580864191055,
0.6500665545463562,
-0.07150592654943466,
-0.6661907434463501,
-0.09774826467037201,... |
func (f *DefaultFactory) pageFromHTTPResponse(ctx context.Context, url *url.URL, resp *http.Response, options ...interface{}) (Content, error) {
result := new(Page)
result.MetaPropertyTags = make(map[string]interface{})
result.TargetURL = url
contentType := resp.Header.Get("Content-Type")
if len(contentType) > 0 ... | [
0.5667279362678528,
-0.9541191458702087,
0.7610117793083191,
0.19486790895462036,
-0.28481993079185486,
0.28561335802078247,
0.012195288203656673,
-0.4824444353580475,
0.5243297219276428,
-0.3993092477321625,
0.5262519121170044,
-1.4597434997558594,
-0.36180999875068665,
0.0237858965992927... |
func (_m *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) {
ret := _m.Called(ctx, account, blockNumber)
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address, *big.Int) (*big.Int, error)); ok {
return rf(ctx, account, blo... | [
-0.4738421142101288,
-0.5256747603416443,
0.8835805654525757,
-0.3427223265171051,
0.06141553446650505,
0.02715836651623249,
0.9908167123794556,
-0.4134792387485504,
0.3220319449901581,
-0.33357566595077515,
-0.2212570756673813,
-0.08014119416475296,
0.18174399435520172,
0.3958893418312073... |
func (_m *Client) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error {
ret := _m.Called(ctx, b)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, []rpc.BatchElem) error); ok {
r0 = rf(ctx, b)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.6977983117103577,
0.012925265356898308,
0.585358738899231,
0.7628030180931091,
0.2684154510498047,
0.3262588083744049,
-0.7686095833778381,
0.030429627746343613,
0.2677192687988281,
-0.09278649091720581,
-0.8111387491226196,
-0.220638707280159,
-0.47021210193634033,
0.39455705881118774,
... |
func (_m *Client) BatchCallContextAll(ctx context.Context, b []rpc.BatchElem) error {
ret := _m.Called(ctx, b)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, []rpc.BatchElem) error); ok {
r0 = rf(ctx, b)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.6646695733070374,
-0.1792900711297989,
0.7315771579742432,
0.9119501113891602,
0.1565827876329422,
0.43525123596191406,
-0.5983169674873352,
0.40543150901794434,
0.2877035140991211,
0.05378904566168785,
-0.5316638350486755,
-0.19549661874771118,
-0.5639331340789795,
0.4388444125652313,
... |
func (_m *Client) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) {
ret := _m.Called(ctx, hash)
var r0 *types.Block
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) (*types.Block, error)); ok {
return rf(ctx, hash)
}
if rf, ok := ret.Get(0).(func(context.Context... | [
0.36977073550224304,
-0.12191593647003174,
0.7206282019615173,
0.7332347631454468,
-0.18600858747959137,
0.18702389299869537,
0.7708821892738342,
-0.6110473871231079,
-0.28071680665016174,
-0.6466880440711975,
-0.7615017294883728,
0.5026968717575073,
-0.006958625745028257,
-0.0546089485287... |
func (_m *Client) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) {
ret := _m.Called(ctx, number)
var r0 *types.Block
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *big.Int) (*types.Block, error)); ok {
return rf(ctx, number)
}
if rf, ok := ret.Get(0).(func(context.Conte... | [
-0.4311363697052002,
0.3985168933868408,
0.5387692451477051,
0.5892932415008545,
-0.5268374085426331,
-0.13573895394802094,
1.028123140335083,
-0.6004443168640137,
0.23977571725845337,
-0.33775651454925537,
-0.7132028937339783,
0.2120322287082672,
0.19248893857002258,
-0.10065361857414246,... |
func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error {
var _ca []interface{}
_ca = append(_ca, ctx, result, method)
_ca = append(_ca, args...)
ret := _m.Called(_ca...)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, interface{}, string, ...i... | [
-0.6983006596565247,
0.4984263777732849,
0.655593752861023,
0.20487499237060547,
-0.2816031873226166,
-0.2609415352344513,
0.4783880114555359,
-0.9369481801986694,
0.1801241785287857,
-0.26595020294189453,
-0.16366702318191528,
-0.20216931402683258,
-0.03383900225162506,
0.4930190742015838... |
func (_m *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) {
ret := _m.Called(ctx, msg, blockNumber)
var r0 []byte
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)); ok {
return rf(ctx, msg, blockNumber)
... | [
-0.29581063985824585,
0.07417410612106323,
0.9630601406097412,
0.44907334446907043,
-0.5459198951721191,
-0.1731310784816742,
0.1425802856683731,
0.023707931861281395,
0.2899291515350342,
-0.5994225740432739,
0.2933655083179474,
-0.2018643021583557,
-0.2788947820663452,
1.3781663179397583,... |
func (_m *Client) ChainID() (*big.Int, error) {
ret := _m.Called()
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func() (*big.Int, error)); ok {
return rf()
}
if rf, ok := ret.Get(0).(func() *big.Int); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*big.Int)
}
}
if rf, ok ... | [
-0.5580028891563416,
-0.4826310873031616,
0.76004958152771,
0.09679073840379715,
0.5866851806640625,
0.1324329674243927,
1.0439509153366089,
0.07408853620290756,
-0.27788373827934265,
0.12070780247449875,
-0.5870835781097412,
0.9536731839179993,
-0.4014762043952942,
1.4508326053619385,
0... |
func (_m *Client) Close() {
_m.Called()
} | [
-0.5725410580635071,
0.21445317566394806,
0.36103036999702454,
0.2952495515346527,
-0.31331929564476013,
0.9454618692398071,
1.2317938804626465,
-0.050126202404499054,
-0.8525981903076172,
0.03919845074415207,
0.22518318891525269,
0.32916074991226196,
-0.10161593556404114,
0.39213877916336... |
func (_m *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) {
ret := _m.Called(ctx, account, blockNumber)
var r0 []byte
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address, *big.Int) ([]byte, error)); ok {
return rf(ctx, account, blockNumber)... | [
-0.41861778497695923,
-0.4485948979854584,
0.8632227778434753,
-0.6571109890937805,
-0.1084398403763771,
-0.2470744401216507,
0.9634426236152649,
-0.4725828170776367,
0.36279672384262085,
-0.37644216418266296,
0.05010662600398064,
0.26307952404022217,
0.2522799074649811,
0.9366350769996643... |
func (_m *Client) ConfiguredChainID() *big.Int {
ret := _m.Called()
var r0 *big.Int
if rf, ok := ret.Get(0).(func() *big.Int); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*big.Int)
}
}
return r0
} | [
-0.587236225605011,
0.1848827302455902,
0.5001586079597473,
-0.3772095739841461,
1.1196465492248535,
-0.6975421905517578,
0.9356309175491333,
0.34283334016799927,
-0.2183983027935028,
0.039586249738931656,
-0.5327945947647095,
0.39530283212661743,
-0.19992363452911377,
0.8393927812576294,
... |
func (_m *Client) Dial(ctx context.Context) error {
ret := _m.Called(ctx)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context) error); ok {
r0 = rf(ctx)
} else {
r0 = ret.Error(0)
}
return r0
} | [
-0.2795291244983673,
0.12459318339824677,
0.38076233863830566,
-0.13161106407642365,
0.18933835625648499,
0.6573218703269958,
0.029461992904543877,
0.16419276595115662,
0.5989354252815247,
-0.1247188076376915,
0.23016837239265442,
0.34676387906074524,
0.00908728875219822,
0.116899818181991... |
func (_m *Client) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error) {
ret := _m.Called(ctx, call)
var r0 uint64
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, ethereum.CallMsg) (uint64, error)); ok {
return rf(ctx, call)
}
if rf, ok := ret.Get(0).(func(context.Context, ethere... | [
-0.9023261666297913,
1.018868088722229,
0.9045745730400085,
0.18724915385246277,
-0.11590500175952911,
-0.11400069296360016,
-0.08114276826381683,
-0.3644150197505951,
0.4312271773815155,
-0.19339554011821747,
0.3848661780357361,
0.24741357564926147,
-0.7143469452857971,
1.027091383934021,... |
func (_m *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) {
ret := _m.Called(ctx, q)
var r0 []types.Log
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, ethereum.FilterQuery) ([]types.Log, error)); ok {
return rf(ctx, q)
}
if rf, ok := ret.Get(0).(func(context.Co... | [
-0.26072174310684204,
-0.3690904378890991,
0.7707658410072327,
-0.1746608167886734,
-0.851087749004364,
0.07315248996019363,
-0.34747886657714844,
-0.5997697114944458,
0.6450052857398987,
0.3325519263744354,
0.1278591901063919,
1.14011812210083,
-0.10263708233833313,
0.2402091920375824,
... |
func (_m *Client) HeadByHash(ctx context.Context, n common.Hash) (*evmtypes.Head, error) {
ret := _m.Called(ctx, n)
var r0 *evmtypes.Head
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) (*evmtypes.Head, error)); ok {
return rf(ctx, n)
}
if rf, ok := ret.Get(0).(func(context.Context, co... | [
-0.09683556109666824,
-0.2445104718208313,
0.7022713422775269,
0.5844064354896545,
-0.05257957801222801,
-0.02747298590838909,
0.4380945861339569,
-0.9291412830352783,
0.1951335370540619,
-0.27166858315467834,
-0.7488684058189392,
0.15307781100273132,
0.14028304815292358,
0.043626856058835... |
func (_m *Client) HeadByNumber(ctx context.Context, n *big.Int) (*evmtypes.Head, error) {
ret := _m.Called(ctx, n)
var r0 *evmtypes.Head
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *big.Int) (*evmtypes.Head, error)); ok {
return rf(ctx, n)
}
if rf, ok := ret.Get(0).(func(context.Context, *big.I... | [
-0.7737233638763428,
0.061580758541822433,
0.5811125636100769,
0.26774880290031433,
-0.0389852300286293,
-0.20541353523731232,
0.6521543264389038,
-0.5996860861778259,
0.596855640411377,
-0.002948173088952899,
-0.6491458415985107,
0.12809208035469055,
0.23130349814891815,
0.125640898942947... |
func (_m *Client) HeaderByHash(ctx context.Context, h common.Hash) (*types.Header, error) {
ret := _m.Called(ctx, h)
var r0 *types.Header
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) (*types.Header, error)); ok {
return rf(ctx, h)
}
if rf, ok := ret.Get(0).(func(context.Context, com... | [
-0.2308216542005539,
-0.5792711973190308,
0.5448957085609436,
0.606931209564209,
-0.4480701684951782,
0.3041370213031769,
0.36457541584968567,
-0.3985292911529541,
-0.4850451350212097,
-0.3750663995742798,
-0.6436269879341125,
0.045535553246736526,
-0.15590566396713257,
-0.3471126854419708... |
func (_m *Client) HeaderByNumber(ctx context.Context, n *big.Int) (*types.Header, error) {
ret := _m.Called(ctx, n)
var r0 *types.Header
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *big.Int) (*types.Header, error)); ok {
return rf(ctx, n)
}
if rf, ok := ret.Get(0).(func(context.Context, *big.In... | [
-1.1796910762786865,
0.00238251406699419,
0.4270209074020386,
0.2829894423484802,
-0.44141972064971924,
-0.33147290349006653,
0.4969311058521271,
-0.585433304309845,
0.1408010572195053,
-0.2776668965816498,
-0.6106980443000793,
-0.37415987253189087,
0.27360406517982483,
-0.1225893124938011... |
func (_m *Client) IsL2() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
} | [
-0.27148789167404175,
-1.0865875482559204,
0.46289318799972534,
0.2936926484107971,
-0.5177086591720581,
-0.11119717359542847,
-0.4496397078037262,
0.35739269852638245,
-0.4346387982368469,
0.15896724164485931,
-0.8801794052124023,
0.7332764863967896,
-0.06247933954000473,
0.41322982311248... |
func (_m *Client) LINKBalance(ctx context.Context, address common.Address, linkAddress common.Address) (*assets.Link, error) {
ret := _m.Called(ctx, address, linkAddress)
var r0 *assets.Link
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address, common.Address) (*assets.Link, error)); ok {
r... | [
-0.20691046118736267,
-0.738680362701416,
0.7512078881263733,
0.08961065858602524,
0.4310835301876068,
0.03803960233926773,
0.49463769793510437,
0.2226395606994629,
1.2226507663726807,
-1.0601011514663696,
0.4671744704246521,
0.7162779569625854,
-0.02561904676258564,
0.5280267596244812,
... |
func (_m *Client) LatestBlockHeight(ctx context.Context) (*big.Int, error) {
ret := _m.Called(ctx)
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func(context.Context) (*big.Int, error)); ok {
return rf(ctx)
}
if rf, ok := ret.Get(0).(func(context.Context) *big.Int); ok {
r0 = rf(ctx)
} else {
if r... | [
-0.4305378794670105,
0.11084732413291931,
0.7619096040725708,
0.4746318459510803,
-0.3848842680454254,
-0.024365395307540894,
0.46350347995758057,
-0.34172043204307556,
-0.09009692072868347,
0.5627661943435669,
-1.0563549995422363,
0.01617053896188736,
-0.09797738492488861,
0.0084197297692... |
func (_m *Client) NodeStates() map[string]string {
ret := _m.Called()
var r0 map[string]string
if rf, ok := ret.Get(0).(func() map[string]string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]string)
}
}
return r0
} | [
-0.913123607635498,
0.2902100086212158,
0.3961855471134186,
-0.8357748985290527,
-0.23103787004947662,
-0.5866701602935791,
0.7582966685295105,
0.03650331124663353,
-0.14716164767742157,
-0.4654209017753601,
0.08740272372961044,
-0.04246651753783226,
-0.11419136822223663,
0.327596247196197... |
func (_m *Client) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) {
ret := _m.Called(ctx, account)
var r0 []byte
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address) ([]byte, error)); ok {
return rf(ctx, account)
}
if rf, ok := ret.Get(0).(func(context.Context,... | [
-0.4977116286754608,
-0.09538009762763977,
0.5736855864524841,
-0.6003967523574829,
-0.2841510772705078,
-0.08488699793815613,
0.7946367859840393,
-0.07310039550065994,
0.300388365983963,
-0.3350735604763031,
-0.06411030143499374,
0.28562918305397034,
0.018616652116179466,
0.54058283567428... |
func (_m *Client) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) {
ret := _m.Called(ctx, account)
var r0 uint64
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address) (uint64, error)); ok {
return rf(ctx, account)
}
if rf, ok := ret.Get(0).(func(context.Context... | [
-0.8511519432067871,
0.17176511883735657,
0.5164980292320251,
-0.24259114265441895,
-0.14369694888591766,
-0.08984050154685974,
1.2204307317733765,
-0.1291670799255371,
0.06786438822746277,
-0.4205533564090729,
0.22459687292575836,
-0.14561057090759277,
0.25777989625930786,
0.1528625041246... |
func (_m *Client) SendTransaction(ctx context.Context, tx *types.Transaction) error {
ret := _m.Called(ctx, tx)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *types.Transaction) error); ok {
r0 = rf(ctx, tx)
} else {
r0 = ret.Error(0)
}
return r0
} | [
-0.3026963770389557,
0.06647198647260666,
0.5436099767684937,
-0.03687676414847374,
0.022124318405985832,
-0.18925809860229492,
0.2500154674053192,
-0.05635590851306915,
0.42691126465797424,
-0.12420370429754257,
-1.1170804500579834,
-0.019918765872716904,
-0.04623009264469147,
-0.38037794... |
func (_m *Client) SendTransactionReturnCode(ctx context.Context, tx *types.Transaction, fromAddress common.Address) (chainsclient.SendTxReturnCode, error) {
ret := _m.Called(ctx, tx, fromAddress)
var r0 chainsclient.SendTxReturnCode
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *types.Transaction, co... | [
-0.005445662420243025,
-0.3681502640247345,
0.7150563597679138,
-0.07777111232280731,
-0.4886290431022644,
-0.4890998601913452,
0.7213619947433472,
0.25724709033966064,
0.18052314221858978,
0.2204958200454712,
-0.026597589254379272,
0.3052177131175995,
-0.10942000895738602,
-0.563531041145... |
func (_m *Client) SequenceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (evmtypes.Nonce, error) {
ret := _m.Called(ctx, account, blockNumber)
var r0 evmtypes.Nonce
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address, *big.Int) (evmtypes.Nonce, error)); ok {
return r... | [
-0.3535788953304291,
-0.6906402111053467,
0.829197347164154,
-0.04921120032668114,
0.3502737283706665,
-0.5440091490745544,
1.2405376434326172,
-0.5148111581802368,
0.4845243990421295,
-0.2646777629852295,
-0.04676623269915581,
0.1903635561466217,
-0.0961911529302597,
0.4297305941581726,
... |
func (_m *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) {
ret := _m.Called(ctx, q, ch)
var r0 ethereum.Subscription
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, ethereum.FilterQuery, chan<- types.Log) (ethereum.Subscripti... | [
0.44233036041259766,
-0.21019607782363892,
0.7167102098464966,
-0.38978058099746704,
-0.8516649007797241,
-0.13340230286121368,
-0.4361758530139923,
-1.1521105766296387,
0.12685444951057434,
0.0719589963555336,
-0.45346036553382874,
0.9587778449058533,
0.1865350902080536,
-0.26428505778312... |
func (_m *Client) SubscribeNewHead(ctx context.Context, ch chan<- *evmtypes.Head) (ethereum.Subscription, error) {
ret := _m.Called(ctx, ch)
var r0 ethereum.Subscription
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, chan<- *evmtypes.Head) (ethereum.Subscription, error)); ok {
return rf(ctx, ch)
}
... | [
0.00002507686622266192,
-0.44964203238487244,
0.7620322704315186,
-0.010115313343703747,
-0.34314078092575073,
0.11131756007671356,
-0.304635226726532,
-1.3309977054595947,
0.16067945957183838,
-0.185718834400177,
-0.5756310224533081,
0.5604555010795593,
0.19134151935577393,
0.239507809281... |
func (_m *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error) {
ret := _m.Called(ctx)
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func(context.Context) (*big.Int, error)); ok {
return rf(ctx)
}
if rf, ok := ret.Get(0).(func(context.Context) *big.Int); ok {
r0 = rf(ctx)
} else {
if ret... | [
-0.9079784750938416,
0.32629796862602234,
0.5863520503044128,
0.2362455278635025,
-0.3211384117603302,
-0.1945345550775528,
-0.012914209626615047,
-0.12075725942850113,
-0.21675750613212585,
-0.03836933523416519,
-0.20247602462768555,
0.23836562037467957,
-0.2825247049331665,
0.37552094459... |
func (_m *Client) SuggestGasTipCap(ctx context.Context) (*big.Int, error) {
ret := _m.Called(ctx)
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func(context.Context) (*big.Int, error)); ok {
return rf(ctx)
}
if rf, ok := ret.Get(0).(func(context.Context) *big.Int); ok {
r0 = rf(ctx)
} else {
if re... | [
-1.3444149494171143,
0.19703367352485657,
0.8924201726913452,
-0.06573725491762161,
-0.18071633577346802,
-0.26171404123306274,
0.7187493443489075,
-0.7200390696525574,
-0.1450996994972229,
-0.11944630742073059,
0.09323236346244812,
-0.02758830599486828,
0.46283823251724243,
0.461198598146... |
func (_m *Client) TokenBalance(ctx context.Context, address common.Address, contractAddress common.Address) (*big.Int, error) {
ret := _m.Called(ctx, address, contractAddress)
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Address, common.Address) (*big.Int, error)); ok {
retu... | [
-0.1860143095254898,
-0.3995988070964813,
0.8591500520706177,
-0.11963817477226257,
-0.25371238589286804,
-0.4890860319137573,
0.4410187602043152,
0.3736654818058014,
1.1491626501083374,
-0.2776695787906647,
-0.11422217637300491,
0.4062686264514923,
0.10920482873916626,
0.3817240595817566,... |
func (_m *Client) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, error) {
ret := _m.Called(ctx, txHash)
var r0 *types.Transaction
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) (*types.Transaction, error)); ok {
return rf(ctx, txHash)
}
if rf, ok := re... | [
0.6994526386260986,
0.22903692722320557,
0.5980662107467651,
0.11946490406990051,
0.08242866396903992,
-0.5237486362457275,
0.648675799369812,
-0.3047187924385071,
-0.0009060532320290804,
0.10425598919391632,
-0.876947283744812,
-0.27343207597732544,
-0.2619284987449646,
-0.322785317897796... |
func (_m *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
ret := _m.Called(ctx, txHash)
var r0 *types.Receipt
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) (*types.Receipt, error)); ok {
return rf(ctx, txHash)
}
if rf, ok := ret.Get(0).(f... | [
0.45056086778640747,
0.18863266706466675,
0.6413359045982361,
-0.4501821994781494,
-0.5253501534461975,
-0.5928751826286316,
0.1305987387895584,
0.5361295938491821,
0.18158920109272003,
0.31296178698539734,
-0.09045492112636566,
-0.29150208830833435,
0.38721078634262085,
-0.519992351531982... |
func NewClient(t mockConstructorTestingTNewClient) *Client {
mock := &Client{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
} | [
-0.35071760416030884,
-0.8228389024734497,
-0.07977639138698578,
0.012035504914820194,
0.03199507296085358,
0.8451754450798035,
1.047666311264038,
0.11312232166528702,
-0.09854213893413544,
-0.5454046726226807,
-0.109664686024189,
-0.19845204055309296,
-0.1374940425157547,
-0.1714942902326... |
func (r *Repository) GetSafeFullName() string {
return strings.Replace(r.FullName, "/", "_", -1)
} | [
0.15702100098133087,
0.5146235227584839,
0.4612118601799011,
-0.19123530387878418,
-0.9902480244636536,
-0.40191587805747986,
-0.42701390385627747,
-0.357133150100708,
0.05322166532278061,
-0.07182583212852478,
-0.9668053984642029,
-0.4725858271121979,
-0.03508948162198067,
0.0572999641299... |
func NewGetRepositoriesRepoNameSignaturesParams() *GetRepositoriesRepoNameSignaturesParams {
var ()
return &GetRepositoriesRepoNameSignaturesParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.3535093367099762,
0.15694160759449005,
0.3776409327983856,
-0.6082982420921326,
0.43338531255722046,
-0.897813618183136,
-0.42215022444725037,
0.7256453633308411,
-0.05124242976307869,
0.5049863457679749,
-1.3434350490570068,
-0.8070710897445679,
-0.7218630909919739,
-0.1534144431352615... |
func NewGetRepositoriesRepoNameSignaturesParamsWithTimeout(timeout time.Duration) *GetRepositoriesRepoNameSignaturesParams {
var ()
return &GetRepositoriesRepoNameSignaturesParams{
timeout: timeout,
}
} | [
0.27451637387275696,
0.09332799911499023,
0.462898313999176,
-0.5401340126991272,
0.12952940165996552,
-0.1492326706647873,
-1.1688846349716187,
0.7355239987373352,
-0.06729712337255478,
1.224310278892517,
-1.154021143913269,
-0.42123648524284363,
-0.6880980134010315,
0.22929179668426514,
... |
func NewGetRepositoriesRepoNameSignaturesParamsWithContext(ctx context.Context) *GetRepositoriesRepoNameSignaturesParams {
var ()
return &GetRepositoriesRepoNameSignaturesParams{
Context: ctx,
}
} | [
-0.15528933703899384,
0.14428995549678802,
0.7700116634368896,
-0.7876192331314087,
0.38828107714653015,
-0.05155117064714432,
-0.7134813666343689,
-0.1765480637550354,
0.27937161922454834,
0.8168397545814514,
-1.3024169206619263,
-0.8891806602478027,
-0.7907469868659973,
-0.21911057829856... |
func NewGetRepositoriesRepoNameSignaturesParamsWithHTTPClient(client *http.Client) *GetRepositoriesRepoNameSignaturesParams {
var ()
return &GetRepositoriesRepoNameSignaturesParams{
HTTPClient: client,
}
} | [
0.17193688452243805,
-0.003221081104129553,
0.6383352875709534,
-0.31986644864082336,
0.558364987373352,
-0.19121885299682617,
-0.19971343874931335,
0.6090670824050903,
-0.2214251160621643,
0.42893993854522705,
-1.1613562107086182,
-0.8603246808052063,
-0.5821467041969299,
-0.2826716899871... |
func (o *GetRepositoriesRepoNameSignaturesParams) WithTimeout(timeout time.Duration) *GetRepositoriesRepoNameSignaturesParams {
o.SetTimeout(timeout)
return o
} | [
-0.2730792462825775,
0.5251030325889587,
0.26008495688438416,
-1.1340250968933105,
-0.016415512189269066,
-0.687770426273346,
-0.8926516771316528,
0.4167403280735016,
0.7580543756484985,
1.090091586112976,
-1.0385605096817017,
-0.9068215489387512,
-0.2624777853488922,
-0.01716969721019268,... |
func (o *GetRepositoriesRepoNameSignaturesParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.44565051794052124,
0.641146719455719,
0.15554089844226837,
-1.2422893047332764,
0.42456987500190735,
-0.3869486153125763,
-0.5657745003700256,
0.9501599669456482,
0.29823964834213257,
1.0639352798461914,
-0.9038519859313965,
-0.6574440002441406,
-0.87352454662323,
-0.08459408581256866,
... |
func (o *GetRepositoriesRepoNameSignaturesParams) WithContext(ctx context.Context) *GetRepositoriesRepoNameSignaturesParams {
o.SetContext(ctx)
return o
} | [
-0.9304814338684082,
0.3681052327156067,
0.48050475120544434,
-1.2289618253707886,
-0.028630640357732773,
-0.5475014448165894,
-0.9251380562782288,
-0.2596448063850403,
1.047581672668457,
0.6467525362968445,
-1.12980318069458,
-1.0370457172393799,
-0.7789332270622253,
-0.5722143650054932,
... |
func (o *GetRepositoriesRepoNameSignaturesParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.0486891269683838,
0.5844594240188599,
0.2503705620765686,
-1.0554100275039673,
0.5947431921958923,
-0.4102875590324402,
-0.5468184351921082,
0.009718558751046658,
0.9703313708305359,
0.6003363728523254,
-1.079298973083496,
-0.6988837718963623,
-1.1530967950820923,
-0.4884874224662781,
... |
func (o *GetRepositoriesRepoNameSignaturesParams) WithHTTPClient(client *http.Client) *GetRepositoriesRepoNameSignaturesParams {
o.SetHTTPClient(client)
return o
} | [
-0.36374181509017944,
-0.20644722878932953,
0.4662000238895416,
-1.2695648670196533,
0.11149954050779343,
-0.7851373553276062,
-0.3316814601421356,
-0.0326027013361454,
0.2969341278076172,
0.1269228309392929,
-1.0781179666519165,
-1.103649616241455,
-0.18730482459068298,
-0.679816246032714... |
func (o *GetRepositoriesRepoNameSignaturesParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.30470773577690125,
0.13248471915721893,
0.2227858304977417,
-1.6364004611968994,
0.1683756560087204,
-1.0026108026504517,
-0.12638051807880402,
-0.01736711896955967,
-0.13271640241146088,
0.40334635972976685,
-1.084763765335083,
-0.6274293661117554,
-0.7356347441673279,
-0.8366062045097... |
func (o *GetRepositoriesRepoNameSignaturesParams) WithRepoName(repoName string) *GetRepositoriesRepoNameSignaturesParams {
o.SetRepoName(repoName)
return o
} | [
-1.0693527460098267,
0.14531217515468597,
0.5521246790885925,
-0.3270244002342224,
0.09214199334383011,
-1.1984381675720215,
-0.3655444383621216,
0.44328704476356506,
0.9090265035629272,
1.0709866285324097,
-1.0977214574813843,
-2.0717294216156006,
-0.10434582084417343,
-0.3227727711200714... |
func (o *GetRepositoriesRepoNameSignaturesParams) SetRepoName(repoName string) {
o.RepoName = repoName
} | [
-1.5192301273345947,
0.1429002732038498,
0.3203570544719696,
-0.19013455510139465,
0.26454171538352966,
-1.2495942115783691,
-0.018459880724549294,
0.6062771081924438,
0.47775301337242126,
1.0170835256576538,
-1.3783187866210938,
-1.924829125404358,
-0.399611234664917,
-0.01194818038493394... |
func (o *GetRepositoriesRepoNameSignaturesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param repo_name
if err := r.SetPathParam("repo_name", o.RepoName); err != nil {
return err
}
if len(re... | [
-1.5412551164627075,
0.09661849588155746,
0.6612405180931091,
-0.8086758255958557,
1.0905672311782837,
-0.6823950409889221,
0.7653432488441467,
0.11019362509250641,
-0.13438233733177185,
0.6670448184013367,
-0.12294624000787735,
-0.5487328171730042,
-0.7556495666503906,
-0.0847478285431861... |
func NewTaskContext(eventChannel chan event.Event) *TaskContext {
return &TaskContext{
taskChannel: make(chan TaskResult),
eventChannel: eventChannel,
appliedResources: make(map[object.ObjMetadata]applyInfo),
}
} | [
0.3383041322231293,
-0.8178141117095947,
0.4768245220184326,
-0.18103444576263428,
-0.7291139960289001,
-0.26993757486343384,
0.042379479855298996,
-0.9262421727180481,
0.07051876932382584,
0.3044329285621643,
-0.838638186454773,
0.07370807230472565,
0.6926277875900269,
0.7558241486549377,... |
func (tc *TaskContext) ResourceApplied(id object.ObjMetadata, gen int64) {
tc.appliedResources[id] = applyInfo{
generation: gen,
}
} | [
-0.29305705428123474,
-1.0631146430969238,
0.2949577569961548,
-1.0641303062438965,
-0.7937701940536499,
0.8952109813690186,
0.521011471748352,
0.5914740562438965,
0.11016836017370224,
-0.27282679080963135,
-0.7715951204299927,
-0.024472545832395554,
0.6276639699935913,
1.108637809753418,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.