12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: rpcpb/rpc.proto
- package rpcpb
- import (
- context "context"
- encoding_binary "encoding/binary"
- fmt "fmt"
- _ "github.com/gogo/protobuf/gogoproto"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- io "io"
- math "math"
- math_bits "math/bits"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- type StresserType int32
- const (
- StresserType_KV_WRITE_SMALL StresserType = 0
- StresserType_KV_WRITE_LARGE StresserType = 1
- StresserType_KV_READ_ONE_KEY StresserType = 2
- StresserType_KV_READ_RANGE StresserType = 3
- StresserType_KV_DELETE_ONE_KEY StresserType = 4
- StresserType_KV_DELETE_RANGE StresserType = 5
- StresserType_KV_TXN_WRITE_DELETE StresserType = 6
- StresserType_LEASE StresserType = 10
- StresserType_ELECTION_RUNNER StresserType = 20
- StresserType_WATCH_RUNNER StresserType = 31
- StresserType_LOCK_RACER_RUNNER StresserType = 41
- StresserType_LEASE_RUNNER StresserType = 51
- )
- var StresserType_name = map[int32]string{
- 0: "KV_WRITE_SMALL",
- 1: "KV_WRITE_LARGE",
- 2: "KV_READ_ONE_KEY",
- 3: "KV_READ_RANGE",
- 4: "KV_DELETE_ONE_KEY",
- 5: "KV_DELETE_RANGE",
- 6: "KV_TXN_WRITE_DELETE",
- 10: "LEASE",
- 20: "ELECTION_RUNNER",
- 31: "WATCH_RUNNER",
- 41: "LOCK_RACER_RUNNER",
- 51: "LEASE_RUNNER",
- }
- var StresserType_value = map[string]int32{
- "KV_WRITE_SMALL": 0,
- "KV_WRITE_LARGE": 1,
- "KV_READ_ONE_KEY": 2,
- "KV_READ_RANGE": 3,
- "KV_DELETE_ONE_KEY": 4,
- "KV_DELETE_RANGE": 5,
- "KV_TXN_WRITE_DELETE": 6,
- "LEASE": 10,
- "ELECTION_RUNNER": 20,
- "WATCH_RUNNER": 31,
- "LOCK_RACER_RUNNER": 41,
- "LEASE_RUNNER": 51,
- }
- func (x StresserType) String() string {
- return proto.EnumName(StresserType_name, int32(x))
- }
- func (StresserType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{0}
- }
- type Checker int32
- const (
- Checker_KV_HASH Checker = 0
- Checker_LEASE_EXPIRE Checker = 1
- Checker_RUNNER Checker = 2
- Checker_NO_CHECK Checker = 3
- )
- var Checker_name = map[int32]string{
- 0: "KV_HASH",
- 1: "LEASE_EXPIRE",
- 2: "RUNNER",
- 3: "NO_CHECK",
- }
- var Checker_value = map[string]int32{
- "KV_HASH": 0,
- "LEASE_EXPIRE": 1,
- "RUNNER": 2,
- "NO_CHECK": 3,
- }
- func (x Checker) String() string {
- return proto.EnumName(Checker_name, int32(x))
- }
- func (Checker) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{1}
- }
- type Operation int32
- const (
- // NOT_STARTED is the agent status before etcd first start.
- Operation_NOT_STARTED Operation = 0
- // INITIAL_START_ETCD is only called to start etcd, the very first time.
- Operation_INITIAL_START_ETCD Operation = 10
- // RESTART_ETCD is sent to restart killed etcd.
- Operation_RESTART_ETCD Operation = 11
- // SIGTERM_ETCD pauses etcd process while keeping data directories
- // and previous etcd configurations.
- Operation_SIGTERM_ETCD Operation = 20
- // SIGQUIT_ETCD_AND_REMOVE_DATA kills etcd process and removes all data
- // directories to simulate destroying the whole machine.
- Operation_SIGQUIT_ETCD_AND_REMOVE_DATA Operation = 21
- // SAVE_SNAPSHOT is sent to trigger local member to download its snapshot
- // onto its local disk with the specified path from tester.
- Operation_SAVE_SNAPSHOT Operation = 30
- // RESTORE_RESTART_FROM_SNAPSHOT is sent to trigger local member to
- // restore a cluster from existing snapshot from disk, and restart
- // an etcd instance from recovered data.
- Operation_RESTORE_RESTART_FROM_SNAPSHOT Operation = 31
- // RESTART_FROM_SNAPSHOT is sent to trigger local member to restart
- // and join an existing cluster that has been recovered from a snapshot.
- // Local member joins this cluster with fresh data.
- Operation_RESTART_FROM_SNAPSHOT Operation = 32
- // SIGQUIT_ETCD_AND_ARCHIVE_DATA is sent when consistency check failed,
- // thus need to archive etcd data directories.
- Operation_SIGQUIT_ETCD_AND_ARCHIVE_DATA Operation = 40
- // SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT destroys etcd process,
- // etcd data, and agent server.
- Operation_SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT Operation = 41
- // BLACKHOLE_PEER_PORT_TX_RX drops all outgoing/incoming packets from/to
- // the peer port on target member's peer port.
- Operation_BLACKHOLE_PEER_PORT_TX_RX Operation = 100
- // UNBLACKHOLE_PEER_PORT_TX_RX removes outgoing/incoming packet dropping.
- Operation_UNBLACKHOLE_PEER_PORT_TX_RX Operation = 101
- // DELAY_PEER_PORT_TX_RX delays all outgoing/incoming packets from/to
- // the peer port on target member's peer port.
- Operation_DELAY_PEER_PORT_TX_RX Operation = 200
- // UNDELAY_PEER_PORT_TX_RX removes all outgoing/incoming delays.
- Operation_UNDELAY_PEER_PORT_TX_RX Operation = 201
- )
- var Operation_name = map[int32]string{
- 0: "NOT_STARTED",
- 10: "INITIAL_START_ETCD",
- 11: "RESTART_ETCD",
- 20: "SIGTERM_ETCD",
- 21: "SIGQUIT_ETCD_AND_REMOVE_DATA",
- 30: "SAVE_SNAPSHOT",
- 31: "RESTORE_RESTART_FROM_SNAPSHOT",
- 32: "RESTART_FROM_SNAPSHOT",
- 40: "SIGQUIT_ETCD_AND_ARCHIVE_DATA",
- 41: "SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT",
- 100: "BLACKHOLE_PEER_PORT_TX_RX",
- 101: "UNBLACKHOLE_PEER_PORT_TX_RX",
- 200: "DELAY_PEER_PORT_TX_RX",
- 201: "UNDELAY_PEER_PORT_TX_RX",
- }
- var Operation_value = map[string]int32{
- "NOT_STARTED": 0,
- "INITIAL_START_ETCD": 10,
- "RESTART_ETCD": 11,
- "SIGTERM_ETCD": 20,
- "SIGQUIT_ETCD_AND_REMOVE_DATA": 21,
- "SAVE_SNAPSHOT": 30,
- "RESTORE_RESTART_FROM_SNAPSHOT": 31,
- "RESTART_FROM_SNAPSHOT": 32,
- "SIGQUIT_ETCD_AND_ARCHIVE_DATA": 40,
- "SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT": 41,
- "BLACKHOLE_PEER_PORT_TX_RX": 100,
- "UNBLACKHOLE_PEER_PORT_TX_RX": 101,
- "DELAY_PEER_PORT_TX_RX": 200,
- "UNDELAY_PEER_PORT_TX_RX": 201,
- }
- func (x Operation) String() string {
- return proto.EnumName(Operation_name, int32(x))
- }
- func (Operation) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{2}
- }
- // Case defines various system faults or test case in distributed systems,
- // in order to verify correct behavior of etcd servers and clients.
- type Case int32
- const (
- // SIGTERM_ONE_FOLLOWER stops a randomly chosen follower (non-leader)
- // but does not delete its data directories on disk for next restart.
- // It waits "delay-ms" before recovering this failure.
- // The expected behavior is that the follower comes back online
- // and rejoins the cluster, and then each member continues to process
- // client requests ('Put' request that requires Raft consensus).
- Case_SIGTERM_ONE_FOLLOWER Case = 0
- // SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT stops a randomly chosen
- // follower but does not delete its data directories on disk for next
- // restart. And waits until most up-to-date node (leader) applies the
- // snapshot count of entries since the stop operation.
- // The expected behavior is that the follower comes back online and
- // rejoins the cluster, and then active leader sends snapshot
- // to the follower to force it to follow the leader's log.
- // As always, after recovery, each member must be able to process
- // client requests.
- Case_SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 1
- // SIGTERM_LEADER stops the active leader node but does not delete its
- // data directories on disk for next restart. Then it waits "delay-ms"
- // before recovering this failure, in order to trigger election timeouts.
- // The expected behavior is that a new leader gets elected, and the
- // old leader comes back online and rejoins the cluster as a follower.
- // As always, after recovery, each member must be able to process
- // client requests.
- Case_SIGTERM_LEADER Case = 2
- // SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT stops the active leader node
- // but does not delete its data directories on disk for next restart.
- // And waits until most up-to-date node ("new" leader) applies the
- // snapshot count of entries since the stop operation.
- // The expected behavior is that cluster elects a new leader, and the
- // old leader comes back online and rejoins the cluster as a follower.
- // And it receives the snapshot from the new leader to overwrite its
- // store. As always, after recovery, each member must be able to
- // process client requests.
- Case_SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 3
- // SIGTERM_QUORUM stops majority number of nodes to make the whole cluster
- // inoperable but does not delete data directories on stopped nodes
- // for next restart. And it waits "delay-ms" before recovering failure.
- // The expected behavior is that nodes come back online, thus cluster
- // comes back operative as well. As always, after recovery, each member
- // must be able to process client requests.
- Case_SIGTERM_QUORUM Case = 4
- // SIGTERM_ALL stops the whole cluster but does not delete data directories
- // on disk for next restart. And it waits "delay-ms" before recovering
- // this failure.
- // The expected behavior is that nodes come back online, thus cluster
- // comes back operative as well. As always, after recovery, each member
- // must be able to process client requests.
- Case_SIGTERM_ALL Case = 5
- // SIGQUIT_AND_REMOVE_ONE_FOLLOWER stops a randomly chosen follower
- // (non-leader), deletes its data directories on disk, and removes
- // this member from cluster (membership reconfiguration). On recovery,
- // tester adds a new member, and this member joins the existing cluster
- // with fresh data. It waits "delay-ms" before recovering this
- // failure. This simulates destroying one follower machine, where operator
- // needs to add a new member from a fresh machine.
- // The expected behavior is that a new member joins the existing cluster,
- // and then each member continues to process client requests.
- Case_SIGQUIT_AND_REMOVE_ONE_FOLLOWER Case = 10
- // SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT stops a randomly
- // chosen follower, deletes its data directories on disk, and removes
- // this member from cluster (membership reconfiguration). On recovery,
- // tester adds a new member, and this member joins the existing cluster
- // restart. On member remove, cluster waits until most up-to-date node
- // (leader) applies the snapshot count of entries since the stop operation.
- // This simulates destroying a leader machine, where operator needs to add
- // a new member from a fresh machine.
- // The expected behavior is that a new member joins the existing cluster,
- // and receives a snapshot from the active leader. As always, after
- // recovery, each member must be able to process client requests.
- Case_SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 11
- // SIGQUIT_AND_REMOVE_LEADER stops the active leader node, deletes its
- // data directories on disk, and removes this member from cluster.
- // On recovery, tester adds a new member, and this member joins the
- // existing cluster with fresh data. It waits "delay-ms" before
- // recovering this failure. This simulates destroying a leader machine,
- // where operator needs to add a new member from a fresh machine.
- // The expected behavior is that a new member joins the existing cluster,
- // and then each member continues to process client requests.
- Case_SIGQUIT_AND_REMOVE_LEADER Case = 12
- // SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT stops the active leader,
- // deletes its data directories on disk, and removes this member from
- // cluster (membership reconfiguration). On recovery, tester adds a new
- // member, and this member joins the existing cluster restart. On member
- // remove, cluster waits until most up-to-date node (new leader) applies
- // the snapshot count of entries since the stop operation. This simulates
- // destroying a leader machine, where operator needs to add a new member
- // from a fresh machine.
- // The expected behavior is that on member remove, cluster elects a new
- // leader, and a new member joins the existing cluster and receives a
- // snapshot from the newly elected leader. As always, after recovery, each
- // member must be able to process client requests.
- Case_SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 13
- // SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH first
- // stops majority number of nodes, deletes data directories on those quorum
- // nodes, to make the whole cluster inoperable. Now that quorum and their
- // data are totally destroyed, cluster cannot even remove unavailable nodes
- // (e.g. 2 out of 3 are lost, so no leader can be elected).
- // Let's assume 3-node cluster of node A, B, and C. One day, node A and B
- // are destroyed and all their data are gone. The only viable solution is
- // to recover from C's latest snapshot.
- //
- // To simulate:
- // 1. Assume node C is the current leader with most up-to-date data.
- // 2. Download snapshot from node C, before destroying node A and B.
- // 3. Destroy node A and B, and make the whole cluster inoperable.
- // 4. Now node C cannot operate either.
- // 5. SIGTERM node C and remove its data directories.
- // 6. Restore a new seed member from node C's latest snapshot file.
- // 7. Add another member to establish 2-node cluster.
- // 8. Add another member to establish 3-node cluster.
- // 9. Add more if any.
- //
- // The expected behavior is that etcd successfully recovers from such
- // disastrous situation as only 1-node survives out of 3-node cluster,
- // new members joins the existing cluster, and previous data from snapshot
- // are still preserved after recovery process. As always, after recovery,
- // each member must be able to process client requests.
- Case_SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH Case = 14
- // BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER drops all outgoing/incoming
- // packets from/to the peer port on a randomly chosen follower
- // (non-leader), and waits for "delay-ms" until recovery.
- // The expected behavior is that once dropping operation is undone,
- // each member must be able to process client requests.
- Case_BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER Case = 100
- // BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT drops
- // all outgoing/incoming packets from/to the peer port on a randomly
- // chosen follower (non-leader), and waits for most up-to-date node
- // (leader) applies the snapshot count of entries since the blackhole
- // operation.
- // The expected behavior is that once packet drop operation is undone,
- // the slow follower tries to catch up, possibly receiving the snapshot
- // from the active leader. As always, after recovery, each member must
- // be able to process client requests.
- Case_BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 101
- // BLACKHOLE_PEER_PORT_TX_RX_LEADER drops all outgoing/incoming packets
- // from/to the peer port on the active leader (isolated), and waits for
- // "delay-ms" until recovery, in order to trigger election timeout.
- // The expected behavior is that after election timeout, a new leader gets
- // elected, and once dropping operation is undone, the old leader comes
- // back and rejoins the cluster as a follower. As always, after recovery,
- // each member must be able to process client requests.
- Case_BLACKHOLE_PEER_PORT_TX_RX_LEADER Case = 102
- // BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT drops all
- // outgoing/incoming packets from/to the peer port on the active leader,
- // and waits for most up-to-date node (leader) applies the snapshot
- // count of entries since the blackhole operation.
- // The expected behavior is that cluster elects a new leader, and once
- // dropping operation is undone, the old leader comes back and rejoins
- // the cluster as a follower. The slow follower tries to catch up, likely
- // receiving the snapshot from the new active leader. As always, after
- // recovery, each member must be able to process client requests.
- Case_BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 103
- // BLACKHOLE_PEER_PORT_TX_RX_QUORUM drops all outgoing/incoming packets
- // from/to the peer ports on majority nodes of cluster, thus losing its
- // leader and cluster being inoperable. And it waits for "delay-ms"
- // until recovery.
- // The expected behavior is that once packet drop operation is undone,
- // nodes come back online, thus cluster comes back operative. As always,
- // after recovery, each member must be able to process client requests.
- Case_BLACKHOLE_PEER_PORT_TX_RX_QUORUM Case = 104
- // BLACKHOLE_PEER_PORT_TX_RX_ALL drops all outgoing/incoming packets
- // from/to the peer ports on all nodes, thus making cluster totally
- // inoperable. It waits for "delay-ms" until recovery.
- // The expected behavior is that once packet drop operation is undone,
- // nodes come back online, thus cluster comes back operative. As always,
- // after recovery, each member must be able to process client requests.
- Case_BLACKHOLE_PEER_PORT_TX_RX_ALL Case = 105
- // DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER delays outgoing/incoming packets
- // from/to the peer port on a randomly chosen follower (non-leader).
- // It waits for "delay-ms" until recovery.
- // The expected behavior is that once packet delay operation is undone,
- // the follower comes back and tries to catch up with latest changes from
- // cluster. And as always, after recovery, each member must be able to
- // process client requests.
- Case_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER Case = 200
- // RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER delays outgoing/incoming
- // packets from/to the peer port on a randomly chosen follower
- // (non-leader) with a randomized time duration (thus isolated). It
- // waits for "delay-ms" until recovery.
- // The expected behavior is that once packet delay operation is undone,
- // each member must be able to process client requests.
- Case_RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER Case = 201
- // DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT delays
- // outgoing/incoming packets from/to the peer port on a randomly chosen
- // follower (non-leader), and waits for most up-to-date node (leader)
- // applies the snapshot count of entries since the delay operation.
- // The expected behavior is that the delayed follower gets isolated
- // and behind the current active leader, and once delay operation is undone,
- // the slow follower comes back and catches up possibly receiving snapshot
- // from the active leader. As always, after recovery, each member must be
- // able to process client requests.
- Case_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 202
- // RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT delays
- // outgoing/incoming packets from/to the peer port on a randomly chosen
- // follower (non-leader) with a randomized time duration, and waits for
- // most up-to-date node (leader) applies the snapshot count of entries
- // since the delay operation.
- // The expected behavior is that the delayed follower gets isolated
- // and behind the current active leader, and once delay operation is undone,
- // the slow follower comes back and catches up, possibly receiving a
- // snapshot from the active leader. As always, after recovery, each member
- // must be able to process client requests.
- Case_RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 203
- // DELAY_PEER_PORT_TX_RX_LEADER delays outgoing/incoming packets from/to
- // the peer port on the active leader. And waits for "delay-ms" until
- // recovery.
- // The expected behavior is that cluster may elect a new leader, and
- // once packet delay operation is undone, the (old) leader comes back
- // and tries to catch up with latest changes from cluster. As always,
- // after recovery, each member must be able to process client requests.
- Case_DELAY_PEER_PORT_TX_RX_LEADER Case = 204
- // RANDOM_DELAY_PEER_PORT_TX_RX_LEADER delays outgoing/incoming packets
- // from/to the peer port on the active leader with a randomized time
- // duration. And waits for "delay-ms" until recovery.
- // The expected behavior is that cluster may elect a new leader, and
- // once packet delay operation is undone, the (old) leader comes back
- // and tries to catch up with latest changes from cluster. As always,
- // after recovery, each member must be able to process client requests.
- Case_RANDOM_DELAY_PEER_PORT_TX_RX_LEADER Case = 205
- // DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT delays
- // outgoing/incoming packets from/to the peer port on the active leader,
- // and waits for most up-to-date node (current or new leader) applies the
- // snapshot count of entries since the delay operation.
- // The expected behavior is that cluster may elect a new leader, and
- // the old leader gets isolated and behind the current active leader,
- // and once delay operation is undone, the slow follower comes back
- // and catches up, likely receiving a snapshot from the active leader.
- // As always, after recovery, each member must be able to process client
- // requests.
- Case_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 206
- // RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT delays
- // outgoing/incoming packets from/to the peer port on the active leader,
- // with a randomized time duration. And it waits for most up-to-date node
- // (current or new leader) applies the snapshot count of entries since the
- // delay operation.
- // The expected behavior is that cluster may elect a new leader, and
- // the old leader gets isolated and behind the current active leader,
- // and once delay operation is undone, the slow follower comes back
- // and catches up, likely receiving a snapshot from the active leader.
- // As always, after recovery, each member must be able to process client
- // requests.
- Case_RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 207
- // DELAY_PEER_PORT_TX_RX_QUORUM delays outgoing/incoming packets from/to
- // the peer ports on majority nodes of cluster. And it waits for
- // "delay-ms" until recovery, likely to trigger election timeouts.
- // The expected behavior is that cluster may elect a new leader, while
- // quorum of nodes struggle with slow networks, and once delay operation
- // is undone, nodes come back and cluster comes back operative. As always,
- // after recovery, each member must be able to process client requests.
- Case_DELAY_PEER_PORT_TX_RX_QUORUM Case = 208
- // RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM delays outgoing/incoming packets
- // from/to the peer ports on majority nodes of cluster, with randomized
- // time durations. And it waits for "delay-ms" until recovery, likely
- // to trigger election timeouts.
- // The expected behavior is that cluster may elect a new leader, while
- // quorum of nodes struggle with slow networks, and once delay operation
- // is undone, nodes come back and cluster comes back operative. As always,
- // after recovery, each member must be able to process client requests.
- Case_RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM Case = 209
- // DELAY_PEER_PORT_TX_RX_ALL delays outgoing/incoming packets from/to the
- // peer ports on all nodes. And it waits for "delay-ms" until recovery,
- // likely to trigger election timeouts.
- // The expected behavior is that cluster may become totally inoperable,
- // struggling with slow networks across the whole cluster. Once delay
- // operation is undone, nodes come back and cluster comes back operative.
- // As always, after recovery, each member must be able to process client
- // requests.
- Case_DELAY_PEER_PORT_TX_RX_ALL Case = 210
- // RANDOM_DELAY_PEER_PORT_TX_RX_ALL delays outgoing/incoming packets
- // from/to the peer ports on all nodes, with randomized time durations.
- // And it waits for "delay-ms" until recovery, likely to trigger
- // election timeouts.
- // The expected behavior is that cluster may become totally inoperable,
- // struggling with slow networks across the whole cluster. Once delay
- // operation is undone, nodes come back and cluster comes back operative.
- // As always, after recovery, each member must be able to process client
- // requests.
- Case_RANDOM_DELAY_PEER_PORT_TX_RX_ALL Case = 211
- // NO_FAIL_WITH_STRESS stops injecting failures while testing the
- // consistency and correctness under pressure loads, for the duration of
- // "delay-ms". Goal is to ensure cluster be still making progress
- // on recovery, and verify system does not deadlock following a sequence
- // of failure injections.
- // The expected behavior is that cluster remains fully operative in healthy
- // condition. As always, after recovery, each member must be able to process
- // client requests.
- Case_NO_FAIL_WITH_STRESS Case = 300
- // NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS neither injects failures nor
- // sends stressig client requests to the cluster, for the duration of
- // "delay-ms". Goal is to ensure cluster be still making progress
- // on recovery, and verify system does not deadlock following a sequence
- // of failure injections.
- // The expected behavior is that cluster remains fully operative in healthy
- // condition, and clients requests during liveness period succeed without
- // errors.
- // Note: this is how Google Chubby does failure injection testing
- // https://static.googleusercontent.com/media/research.google.com/en//archive/paxos_made_live.pdf.
- Case_NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS Case = 301
- // FAILPOINTS injects failpoints to etcd server runtime, triggering panics
- // in critical code paths.
- Case_FAILPOINTS Case = 400
- // EXTERNAL runs external failure injection scripts.
- Case_EXTERNAL Case = 500
- )
- var Case_name = map[int32]string{
- 0: "SIGTERM_ONE_FOLLOWER",
- 1: "SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
- 2: "SIGTERM_LEADER",
- 3: "SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT",
- 4: "SIGTERM_QUORUM",
- 5: "SIGTERM_ALL",
- 10: "SIGQUIT_AND_REMOVE_ONE_FOLLOWER",
- 11: "SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
- 12: "SIGQUIT_AND_REMOVE_LEADER",
- 13: "SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT",
- 14: "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH",
- 100: "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER",
- 101: "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
- 102: "BLACKHOLE_PEER_PORT_TX_RX_LEADER",
- 103: "BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT",
- 104: "BLACKHOLE_PEER_PORT_TX_RX_QUORUM",
- 105: "BLACKHOLE_PEER_PORT_TX_RX_ALL",
- 200: "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER",
- 201: "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER",
- 202: "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
- 203: "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
- 204: "DELAY_PEER_PORT_TX_RX_LEADER",
- 205: "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER",
- 206: "DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT",
- 207: "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT",
- 208: "DELAY_PEER_PORT_TX_RX_QUORUM",
- 209: "RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM",
- 210: "DELAY_PEER_PORT_TX_RX_ALL",
- 211: "RANDOM_DELAY_PEER_PORT_TX_RX_ALL",
- 300: "NO_FAIL_WITH_STRESS",
- 301: "NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS",
- 400: "FAILPOINTS",
- 500: "EXTERNAL",
- }
- var Case_value = map[string]int32{
- "SIGTERM_ONE_FOLLOWER": 0,
- "SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 1,
- "SIGTERM_LEADER": 2,
- "SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT": 3,
- "SIGTERM_QUORUM": 4,
- "SIGTERM_ALL": 5,
- "SIGQUIT_AND_REMOVE_ONE_FOLLOWER": 10,
- "SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 11,
- "SIGQUIT_AND_REMOVE_LEADER": 12,
- "SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT": 13,
- "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH": 14,
- "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER": 100,
- "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 101,
- "BLACKHOLE_PEER_PORT_TX_RX_LEADER": 102,
- "BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT": 103,
- "BLACKHOLE_PEER_PORT_TX_RX_QUORUM": 104,
- "BLACKHOLE_PEER_PORT_TX_RX_ALL": 105,
- "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER": 200,
- "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER": 201,
- "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 202,
- "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 203,
- "DELAY_PEER_PORT_TX_RX_LEADER": 204,
- "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER": 205,
- "DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT": 206,
- "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT": 207,
- "DELAY_PEER_PORT_TX_RX_QUORUM": 208,
- "RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM": 209,
- "DELAY_PEER_PORT_TX_RX_ALL": 210,
- "RANDOM_DELAY_PEER_PORT_TX_RX_ALL": 211,
- "NO_FAIL_WITH_STRESS": 300,
- "NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS": 301,
- "FAILPOINTS": 400,
- "EXTERNAL": 500,
- }
- func (x Case) String() string {
- return proto.EnumName(Case_name, int32(x))
- }
- func (Case) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{3}
- }
- type Request struct {
- Operation Operation `protobuf:"varint,1,opt,name=Operation,proto3,enum=rpcpb.Operation" json:"Operation,omitempty"`
- // Member contains the same Member object from tester configuration.
- Member *Member `protobuf:"bytes,2,opt,name=Member,proto3" json:"Member,omitempty"`
- // Tester contains tester configuration.
- Tester *Tester `protobuf:"bytes,3,opt,name=Tester,proto3" json:"Tester,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Request) Reset() { *m = Request{} }
- func (m *Request) String() string { return proto.CompactTextString(m) }
- func (*Request) ProtoMessage() {}
- func (*Request) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{0}
- }
- func (m *Request) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Request.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *Request) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Request.Merge(m, src)
- }
- func (m *Request) XXX_Size() int {
- return m.Size()
- }
- func (m *Request) XXX_DiscardUnknown() {
- xxx_messageInfo_Request.DiscardUnknown(m)
- }
- var xxx_messageInfo_Request proto.InternalMessageInfo
- // SnapshotInfo contains SAVE_SNAPSHOT request results.
- type SnapshotInfo struct {
- MemberName string `protobuf:"bytes,1,opt,name=MemberName,proto3" json:"MemberName,omitempty"`
- MemberClientURLs []string `protobuf:"bytes,2,rep,name=MemberClientURLs,proto3" json:"MemberClientURLs,omitempty"`
- SnapshotPath string `protobuf:"bytes,3,opt,name=SnapshotPath,proto3" json:"SnapshotPath,omitempty"`
- SnapshotFileSize string `protobuf:"bytes,4,opt,name=SnapshotFileSize,proto3" json:"SnapshotFileSize,omitempty"`
- SnapshotTotalSize string `protobuf:"bytes,5,opt,name=SnapshotTotalSize,proto3" json:"SnapshotTotalSize,omitempty"`
- SnapshotTotalKey int64 `protobuf:"varint,6,opt,name=SnapshotTotalKey,proto3" json:"SnapshotTotalKey,omitempty"`
- SnapshotHash int64 `protobuf:"varint,7,opt,name=SnapshotHash,proto3" json:"SnapshotHash,omitempty"`
- SnapshotRevision int64 `protobuf:"varint,8,opt,name=SnapshotRevision,proto3" json:"SnapshotRevision,omitempty"`
- Took string `protobuf:"bytes,9,opt,name=Took,proto3" json:"Took,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *SnapshotInfo) Reset() { *m = SnapshotInfo{} }
- func (m *SnapshotInfo) String() string { return proto.CompactTextString(m) }
- func (*SnapshotInfo) ProtoMessage() {}
- func (*SnapshotInfo) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{1}
- }
- func (m *SnapshotInfo) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *SnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SnapshotInfo.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *SnapshotInfo) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SnapshotInfo.Merge(m, src)
- }
- func (m *SnapshotInfo) XXX_Size() int {
- return m.Size()
- }
- func (m *SnapshotInfo) XXX_DiscardUnknown() {
- xxx_messageInfo_SnapshotInfo.DiscardUnknown(m)
- }
- var xxx_messageInfo_SnapshotInfo proto.InternalMessageInfo
- type Response struct {
- Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
- Status string `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"`
- // Member contains the same Member object from tester request.
- Member *Member `protobuf:"bytes,3,opt,name=Member,proto3" json:"Member,omitempty"`
- // SnapshotInfo contains SAVE_SNAPSHOT request results.
- SnapshotInfo *SnapshotInfo `protobuf:"bytes,4,opt,name=SnapshotInfo,proto3" json:"SnapshotInfo,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Response) Reset() { *m = Response{} }
- func (m *Response) String() string { return proto.CompactTextString(m) }
- func (*Response) ProtoMessage() {}
- func (*Response) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{2}
- }
- func (m *Response) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Response.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *Response) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Response.Merge(m, src)
- }
- func (m *Response) XXX_Size() int {
- return m.Size()
- }
- func (m *Response) XXX_DiscardUnknown() {
- xxx_messageInfo_Response.DiscardUnknown(m)
- }
- var xxx_messageInfo_Response proto.InternalMessageInfo
- type Member struct {
- // EtcdExec is the executable etcd binary path in agent server.
- EtcdExec string `protobuf:"bytes,1,opt,name=EtcdExec,proto3" json:"EtcdExec,omitempty" yaml:"etcd-exec"`
- // AgentAddr is the agent HTTP server address.
- AgentAddr string `protobuf:"bytes,11,opt,name=AgentAddr,proto3" json:"AgentAddr,omitempty" yaml:"agent-addr"`
- // FailpointHTTPAddr is the agent's failpoints HTTP server address.
- FailpointHTTPAddr string `protobuf:"bytes,12,opt,name=FailpointHTTPAddr,proto3" json:"FailpointHTTPAddr,omitempty" yaml:"failpoint-http-addr"`
- // BaseDir is the base directory where all logs and etcd data are stored.
- BaseDir string `protobuf:"bytes,101,opt,name=BaseDir,proto3" json:"BaseDir,omitempty" yaml:"base-dir"`
- // EtcdClientProxy is true when client traffic needs to be proxied.
- // If true, listen client URL port must be different than advertise client URL port.
- EtcdClientProxy bool `protobuf:"varint,201,opt,name=EtcdClientProxy,proto3" json:"EtcdClientProxy,omitempty" yaml:"etcd-client-proxy"`
- // EtcdPeerProxy is true when peer traffic needs to be proxied.
- // If true, listen peer URL port must be different than advertise peer URL port.
- EtcdPeerProxy bool `protobuf:"varint,202,opt,name=EtcdPeerProxy,proto3" json:"EtcdPeerProxy,omitempty" yaml:"etcd-peer-proxy"`
- // EtcdClientEndpoint is the etcd client endpoint.
- EtcdClientEndpoint string `protobuf:"bytes,301,opt,name=EtcdClientEndpoint,proto3" json:"EtcdClientEndpoint,omitempty" yaml:"etcd-client-endpoint"`
- // Etcd defines etcd binary configuration flags.
- Etcd *Etcd `protobuf:"bytes,302,opt,name=Etcd,proto3" json:"Etcd,omitempty" yaml:"etcd"`
- // EtcdOnSnapshotRestore defines one-time use configuration during etcd
- // snapshot recovery process.
- EtcdOnSnapshotRestore *Etcd `protobuf:"bytes,303,opt,name=EtcdOnSnapshotRestore,proto3" json:"EtcdOnSnapshotRestore,omitempty"`
- // ClientCertData contains cert file contents from this member's etcd server.
- ClientCertData string `protobuf:"bytes,401,opt,name=ClientCertData,proto3" json:"ClientCertData,omitempty" yaml:"client-cert-data"`
- ClientCertPath string `protobuf:"bytes,402,opt,name=ClientCertPath,proto3" json:"ClientCertPath,omitempty" yaml:"client-cert-path"`
- // ClientKeyData contains key file contents from this member's etcd server.
- ClientKeyData string `protobuf:"bytes,403,opt,name=ClientKeyData,proto3" json:"ClientKeyData,omitempty" yaml:"client-key-data"`
- ClientKeyPath string `protobuf:"bytes,404,opt,name=ClientKeyPath,proto3" json:"ClientKeyPath,omitempty" yaml:"client-key-path"`
- // ClientTrustedCAData contains trusted CA file contents from this member's etcd server.
- ClientTrustedCAData string `protobuf:"bytes,405,opt,name=ClientTrustedCAData,proto3" json:"ClientTrustedCAData,omitempty" yaml:"client-trusted-ca-data"`
- ClientTrustedCAPath string `protobuf:"bytes,406,opt,name=ClientTrustedCAPath,proto3" json:"ClientTrustedCAPath,omitempty" yaml:"client-trusted-ca-path"`
- // PeerCertData contains cert file contents from this member's etcd server.
- PeerCertData string `protobuf:"bytes,501,opt,name=PeerCertData,proto3" json:"PeerCertData,omitempty" yaml:"peer-cert-data"`
- PeerCertPath string `protobuf:"bytes,502,opt,name=PeerCertPath,proto3" json:"PeerCertPath,omitempty" yaml:"peer-cert-path"`
- // PeerKeyData contains key file contents from this member's etcd server.
- PeerKeyData string `protobuf:"bytes,503,opt,name=PeerKeyData,proto3" json:"PeerKeyData,omitempty" yaml:"peer-key-data"`
- PeerKeyPath string `protobuf:"bytes,504,opt,name=PeerKeyPath,proto3" json:"PeerKeyPath,omitempty" yaml:"peer-key-path"`
- // PeerTrustedCAData contains trusted CA file contents from this member's etcd server.
- PeerTrustedCAData string `protobuf:"bytes,505,opt,name=PeerTrustedCAData,proto3" json:"PeerTrustedCAData,omitempty" yaml:"peer-trusted-ca-data"`
- PeerTrustedCAPath string `protobuf:"bytes,506,opt,name=PeerTrustedCAPath,proto3" json:"PeerTrustedCAPath,omitempty" yaml:"peer-trusted-ca-path"`
- // SnapshotPath is the snapshot file path to store or restore from.
- SnapshotPath string `protobuf:"bytes,601,opt,name=SnapshotPath,proto3" json:"SnapshotPath,omitempty" yaml:"snapshot-path"`
- // SnapshotInfo contains last SAVE_SNAPSHOT request results.
- SnapshotInfo *SnapshotInfo `protobuf:"bytes,602,opt,name=SnapshotInfo,proto3" json:"SnapshotInfo,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Member) Reset() { *m = Member{} }
- func (m *Member) String() string { return proto.CompactTextString(m) }
- func (*Member) ProtoMessage() {}
- func (*Member) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{3}
- }
- func (m *Member) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Member.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *Member) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Member.Merge(m, src)
- }
- func (m *Member) XXX_Size() int {
- return m.Size()
- }
- func (m *Member) XXX_DiscardUnknown() {
- xxx_messageInfo_Member.DiscardUnknown(m)
- }
- var xxx_messageInfo_Member proto.InternalMessageInfo
- type Tester struct {
- DataDir string `protobuf:"bytes,1,opt,name=DataDir,proto3" json:"DataDir,omitempty" yaml:"data-dir"`
- Network string `protobuf:"bytes,2,opt,name=Network,proto3" json:"Network,omitempty" yaml:"network"`
- Addr string `protobuf:"bytes,3,opt,name=Addr,proto3" json:"Addr,omitempty" yaml:"addr"`
- // DelayLatencyMsRv is the delay latency in milliseconds,
- // to inject to simulated slow network.
- DelayLatencyMs uint32 `protobuf:"varint,11,opt,name=DelayLatencyMs,proto3" json:"DelayLatencyMs,omitempty" yaml:"delay-latency-ms"`
- // DelayLatencyMsRv is the delay latency random variable in milliseconds.
- DelayLatencyMsRv uint32 `protobuf:"varint,12,opt,name=DelayLatencyMsRv,proto3" json:"DelayLatencyMsRv,omitempty" yaml:"delay-latency-ms-rv"`
- // UpdatedDelayLatencyMs is the update delay latency in milliseconds,
- // to inject to simulated slow network. It's the final latency to apply,
- // in case the latency numbers are randomly generated from given delay latency field.
- UpdatedDelayLatencyMs uint32 `protobuf:"varint,13,opt,name=UpdatedDelayLatencyMs,proto3" json:"UpdatedDelayLatencyMs,omitempty" yaml:"updated-delay-latency-ms"`
- // RoundLimit is the limit of rounds to run failure set (-1 to run without limits).
- RoundLimit int32 `protobuf:"varint,21,opt,name=RoundLimit,proto3" json:"RoundLimit,omitempty" yaml:"round-limit"`
- // ExitOnCaseFail is true, then exit tester on first failure.
- ExitOnCaseFail bool `protobuf:"varint,22,opt,name=ExitOnCaseFail,proto3" json:"ExitOnCaseFail,omitempty" yaml:"exit-on-failure"`
- // EnablePprof is true to enable profiler.
- EnablePprof bool `protobuf:"varint,23,opt,name=EnablePprof,proto3" json:"EnablePprof,omitempty" yaml:"enable-pprof"`
- // CaseDelayMs is the delay duration after failure is injected.
- // Useful when triggering snapshot or no-op failure cases.
- CaseDelayMs uint32 `protobuf:"varint,31,opt,name=CaseDelayMs,proto3" json:"CaseDelayMs,omitempty" yaml:"case-delay-ms"`
- // CaseShuffle is true to randomize failure injecting order.
- CaseShuffle bool `protobuf:"varint,32,opt,name=CaseShuffle,proto3" json:"CaseShuffle,omitempty" yaml:"case-shuffle"`
- // Cases is the selected test cases to schedule.
- // If empty, run all failure cases.
- Cases []string `protobuf:"bytes,33,rep,name=Cases,proto3" json:"Cases,omitempty" yaml:"cases"`
- // FailpointCommands is the list of "gofail" commands
- // (e.g. panic("etcd-tester"),1*sleep(1000).
- FailpointCommands []string `protobuf:"bytes,34,rep,name=FailpointCommands,proto3" json:"FailpointCommands,omitempty" yaml:"failpoint-commands"`
- // RunnerExecPath is a path of etcd-runner binary.
- RunnerExecPath string `protobuf:"bytes,41,opt,name=RunnerExecPath,proto3" json:"RunnerExecPath,omitempty" yaml:"runner-exec-path"`
- // ExternalExecPath is a path of script for enabling/disabling an external fault injector.
- ExternalExecPath string `protobuf:"bytes,42,opt,name=ExternalExecPath,proto3" json:"ExternalExecPath,omitempty" yaml:"external-exec-path"`
- // Stressers is the list of stresser types:
- // KV, LEASE, ELECTION_RUNNER, WATCH_RUNNER, LOCK_RACER_RUNNER, LEASE_RUNNER.
- Stressers []*Stresser `protobuf:"bytes,101,rep,name=Stressers,proto3" json:"Stressers,omitempty" yaml:"stressers"`
- // Checkers is the list of consistency checker types:
- // KV_HASH, LEASE_EXPIRE, NO_CHECK, RUNNER.
- // Leave empty to skip consistency checks.
- Checkers []string `protobuf:"bytes,102,rep,name=Checkers,proto3" json:"Checkers,omitempty" yaml:"checkers"`
- // StressKeySize is the size of each small key written into etcd.
- StressKeySize int32 `protobuf:"varint,201,opt,name=StressKeySize,proto3" json:"StressKeySize,omitempty" yaml:"stress-key-size"`
- // StressKeySizeLarge is the size of each large key written into etcd.
- StressKeySizeLarge int32 `protobuf:"varint,202,opt,name=StressKeySizeLarge,proto3" json:"StressKeySizeLarge,omitempty" yaml:"stress-key-size-large"`
- // StressKeySuffixRange is the count of key range written into etcd.
- // Stress keys are created with "fmt.Sprintf("foo%016x", rand.Intn(keySuffixRange)".
- StressKeySuffixRange int32 `protobuf:"varint,203,opt,name=StressKeySuffixRange,proto3" json:"StressKeySuffixRange,omitempty" yaml:"stress-key-suffix-range"`
- // StressKeySuffixRangeTxn is the count of key range written into etcd txn (max 100).
- // Stress keys are created with "fmt.Sprintf("/k%03d", i)".
- StressKeySuffixRangeTxn int32 `protobuf:"varint,204,opt,name=StressKeySuffixRangeTxn,proto3" json:"StressKeySuffixRangeTxn,omitempty" yaml:"stress-key-suffix-range-txn"`
- // StressKeyTxnOps is the number of operations per a transaction (max 64).
- StressKeyTxnOps int32 `protobuf:"varint,205,opt,name=StressKeyTxnOps,proto3" json:"StressKeyTxnOps,omitempty" yaml:"stress-key-txn-ops"`
- // StressClients is the number of concurrent stressing clients
- // with "one" shared TCP connection.
- StressClients int32 `protobuf:"varint,301,opt,name=StressClients,proto3" json:"StressClients,omitempty" yaml:"stress-clients"`
- // StressQPS is the maximum number of stresser requests per second.
- StressQPS int32 `protobuf:"varint,302,opt,name=StressQPS,proto3" json:"StressQPS,omitempty" yaml:"stress-qps"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Tester) Reset() { *m = Tester{} }
- func (m *Tester) String() string { return proto.CompactTextString(m) }
- func (*Tester) ProtoMessage() {}
- func (*Tester) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{4}
- }
- func (m *Tester) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Tester) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Tester.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *Tester) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Tester.Merge(m, src)
- }
- func (m *Tester) XXX_Size() int {
- return m.Size()
- }
- func (m *Tester) XXX_DiscardUnknown() {
- xxx_messageInfo_Tester.DiscardUnknown(m)
- }
- var xxx_messageInfo_Tester proto.InternalMessageInfo
- type Stresser struct {
- Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty" yaml:"type"`
- Weight float64 `protobuf:"fixed64,2,opt,name=Weight,proto3" json:"Weight,omitempty" yaml:"weight"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Stresser) Reset() { *m = Stresser{} }
- func (m *Stresser) String() string { return proto.CompactTextString(m) }
- func (*Stresser) ProtoMessage() {}
- func (*Stresser) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{5}
- }
- func (m *Stresser) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Stresser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Stresser.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *Stresser) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Stresser.Merge(m, src)
- }
- func (m *Stresser) XXX_Size() int {
- return m.Size()
- }
- func (m *Stresser) XXX_DiscardUnknown() {
- xxx_messageInfo_Stresser.DiscardUnknown(m)
- }
- var xxx_messageInfo_Stresser proto.InternalMessageInfo
- type Etcd struct {
- Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty" yaml:"name"`
- DataDir string `protobuf:"bytes,2,opt,name=DataDir,proto3" json:"DataDir,omitempty" yaml:"data-dir"`
- WALDir string `protobuf:"bytes,3,opt,name=WALDir,proto3" json:"WALDir,omitempty" yaml:"wal-dir"`
- // HeartbeatIntervalMs is the time (in milliseconds) of a heartbeat interval.
- // Default value is 100, which is 100ms.
- HeartbeatIntervalMs int64 `protobuf:"varint,11,opt,name=HeartbeatIntervalMs,proto3" json:"HeartbeatIntervalMs,omitempty" yaml:"heartbeat-interval"`
- // ElectionTimeoutMs is the time (in milliseconds) for an election to timeout.
- // Default value is 1000, which is 1s.
- ElectionTimeoutMs int64 `protobuf:"varint,12,opt,name=ElectionTimeoutMs,proto3" json:"ElectionTimeoutMs,omitempty" yaml:"election-timeout"`
- ListenClientURLs []string `protobuf:"bytes,21,rep,name=ListenClientURLs,proto3" json:"ListenClientURLs,omitempty" yaml:"listen-client-urls"`
- AdvertiseClientURLs []string `protobuf:"bytes,22,rep,name=AdvertiseClientURLs,proto3" json:"AdvertiseClientURLs,omitempty" yaml:"advertise-client-urls"`
- ClientAutoTLS bool `protobuf:"varint,23,opt,name=ClientAutoTLS,proto3" json:"ClientAutoTLS,omitempty" yaml:"auto-tls"`
- ClientCertAuth bool `protobuf:"varint,24,opt,name=ClientCertAuth,proto3" json:"ClientCertAuth,omitempty" yaml:"client-cert-auth"`
- ClientCertFile string `protobuf:"bytes,25,opt,name=ClientCertFile,proto3" json:"ClientCertFile,omitempty" yaml:"cert-file"`
- ClientKeyFile string `protobuf:"bytes,26,opt,name=ClientKeyFile,proto3" json:"ClientKeyFile,omitempty" yaml:"key-file"`
- ClientTrustedCAFile string `protobuf:"bytes,27,opt,name=ClientTrustedCAFile,proto3" json:"ClientTrustedCAFile,omitempty" yaml:"trusted-ca-file"`
- ListenPeerURLs []string `protobuf:"bytes,31,rep,name=ListenPeerURLs,proto3" json:"ListenPeerURLs,omitempty" yaml:"listen-peer-urls"`
- AdvertisePeerURLs []string `protobuf:"bytes,32,rep,name=AdvertisePeerURLs,proto3" json:"AdvertisePeerURLs,omitempty" yaml:"initial-advertise-peer-urls"`
- PeerAutoTLS bool `protobuf:"varint,33,opt,name=PeerAutoTLS,proto3" json:"PeerAutoTLS,omitempty" yaml:"peer-auto-tls"`
- PeerClientCertAuth bool `protobuf:"varint,34,opt,name=PeerClientCertAuth,proto3" json:"PeerClientCertAuth,omitempty" yaml:"peer-client-cert-auth"`
- PeerCertFile string `protobuf:"bytes,35,opt,name=PeerCertFile,proto3" json:"PeerCertFile,omitempty" yaml:"peer-cert-file"`
- PeerKeyFile string `protobuf:"bytes,36,opt,name=PeerKeyFile,proto3" json:"PeerKeyFile,omitempty" yaml:"peer-key-file"`
- PeerTrustedCAFile string `protobuf:"bytes,37,opt,name=PeerTrustedCAFile,proto3" json:"PeerTrustedCAFile,omitempty" yaml:"peer-trusted-ca-file"`
- InitialCluster string `protobuf:"bytes,41,opt,name=InitialCluster,proto3" json:"InitialCluster,omitempty" yaml:"initial-cluster"`
- InitialClusterState string `protobuf:"bytes,42,opt,name=InitialClusterState,proto3" json:"InitialClusterState,omitempty" yaml:"initial-cluster-state"`
- InitialClusterToken string `protobuf:"bytes,43,opt,name=InitialClusterToken,proto3" json:"InitialClusterToken,omitempty" yaml:"initial-cluster-token"`
- SnapshotCount int64 `protobuf:"varint,51,opt,name=SnapshotCount,proto3" json:"SnapshotCount,omitempty" yaml:"snapshot-count"`
- QuotaBackendBytes int64 `protobuf:"varint,52,opt,name=QuotaBackendBytes,proto3" json:"QuotaBackendBytes,omitempty" yaml:"quota-backend-bytes"`
- PreVote bool `protobuf:"varint,63,opt,name=PreVote,proto3" json:"PreVote,omitempty" yaml:"pre-vote"`
- InitialCorruptCheck bool `protobuf:"varint,64,opt,name=InitialCorruptCheck,proto3" json:"InitialCorruptCheck,omitempty" yaml:"initial-corrupt-check"`
- Logger string `protobuf:"bytes,71,opt,name=Logger,proto3" json:"Logger,omitempty" yaml:"logger"`
- // LogOutputs is the log file to store current etcd server logs.
- LogOutputs []string `protobuf:"bytes,72,rep,name=LogOutputs,proto3" json:"LogOutputs,omitempty" yaml:"log-outputs"`
- LogLevel string `protobuf:"bytes,73,opt,name=LogLevel,proto3" json:"LogLevel,omitempty" yaml:"log-level"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Etcd) Reset() { *m = Etcd{} }
- func (m *Etcd) String() string { return proto.CompactTextString(m) }
- func (*Etcd) ProtoMessage() {}
- func (*Etcd) Descriptor() ([]byte, []int) {
- return fileDescriptor_4fbc93a8dcc3881e, []int{6}
- }
- func (m *Etcd) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Etcd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Etcd.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *Etcd) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Etcd.Merge(m, src)
- }
- func (m *Etcd) XXX_Size() int {
- return m.Size()
- }
- func (m *Etcd) XXX_DiscardUnknown() {
- xxx_messageInfo_Etcd.DiscardUnknown(m)
- }
- var xxx_messageInfo_Etcd proto.InternalMessageInfo
- func init() {
- proto.RegisterEnum("rpcpb.StresserType", StresserType_name, StresserType_value)
- proto.RegisterEnum("rpcpb.Checker", Checker_name, Checker_value)
- proto.RegisterEnum("rpcpb.Operation", Operation_name, Operation_value)
- proto.RegisterEnum("rpcpb.Case", Case_name, Case_value)
- proto.RegisterType((*Request)(nil), "rpcpb.Request")
- proto.RegisterType((*SnapshotInfo)(nil), "rpcpb.SnapshotInfo")
- proto.RegisterType((*Response)(nil), "rpcpb.Response")
- proto.RegisterType((*Member)(nil), "rpcpb.Member")
- proto.RegisterType((*Tester)(nil), "rpcpb.Tester")
- proto.RegisterType((*Stresser)(nil), "rpcpb.Stresser")
- proto.RegisterType((*Etcd)(nil), "rpcpb.Etcd")
- }
- func init() { proto.RegisterFile("rpcpb/rpc.proto", fileDescriptor_4fbc93a8dcc3881e) }
- var fileDescriptor_4fbc93a8dcc3881e = []byte{
- // 2985 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x59, 0x5b, 0x73, 0xdb, 0xc6,
- 0xf5, 0x37, 0x44, 0x49, 0x96, 0x56, 0x37, 0x68, 0x65, 0xd9, 0xf0, 0x4d, 0x90, 0xe1, 0x38, 0x7f,
- 0x59, 0x09, 0x6c, 0xff, 0xed, 0x4c, 0x2e, 0x4e, 0x13, 0x07, 0xa4, 0x20, 0x89, 0x25, 0x44, 0xd2,
- 0x4b, 0x48, 0x76, 0xfa, 0x82, 0x81, 0xc8, 0x95, 0xc4, 0x31, 0x05, 0x30, 0xc0, 0xd2, 0x91, 0xf2,
- 0x05, 0xfa, 0xd6, 0x69, 0xd3, 0xcb, 0xb4, 0x33, 0xfd, 0x08, 0x4d, 0xfb, 0xd0, 0x2f, 0xe1, 0xdc,
- 0xda, 0xb4, 0x7d, 0x6a, 0x1f, 0x38, 0x6d, 0xfa, 0xd2, 0xa7, 0x3e, 0x70, 0x7a, 0x7f, 0xe8, 0x74,
- 0x76, 0x17, 0x10,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0x04, 0x7e, 0x7d, 0xca, 0x3c, 0xa2, 0x64, 0x7f, 0xf5,
- 0xfc, 0x79, 0x44, 0xc8, 0xdf, 0x48, 0x70, 0x09, 0x5c, 0x1c, 0x0c, 0xa1, 0x7b, 0xe2, 0xb7, 0x12,
- 0xbc, 0x01, 0x96, 0x4f, 0x55, 0xa2, 0xb0, 0xdf, 0x49, 0x50, 0x01, 0x0b, 0xe5, 0x8a, 0xb3, 0x6e,
- 0x14, 0x2d, 0xe7, 0x51, 0xd1, 0xde, 0x74, 0x6a, 0x36, 0x32, 0x6b, 0x35, 0xf9, 0x67, 0x23, 0x34,
- 0x94, 0x84, 0xa7, 0x5c, 0x89, 0x9c, 0xce, 0x7a, 0x05, 0x39, 0x56, 0x71, 0xc7, 0x2c, 0x53, 0xe4,
- 0x27, 0x23, 0x70, 0x0e, 0x00, 0x0a, 0xab, 0x56, 0x8a, 0x65, 0xbb, 0x26, 0x7f, 0x37, 0x07, 0x67,
- 0xc0, 0x84, 0xf9, 0xd8, 0x36, 0x51, 0xd9, 0xb0, 0xe4, 0xbf, 0xe5, 0xee, 0x3e, 0x00, 0x93, 0x76,
- 0xe0, 0x7a, 0x61, 0xdb, 0x0f, 0x08, 0xbc, 0x2b, 0x7e, 0xcc, 0x46, 0xff, 0x9f, 0x15, 0xfd, 0x76,
- 0x7e, 0x69, 0xee, 0xe4, 0x9b, 0xff, 0xac, 0xaa, 0x9d, 0x59, 0x91, 0xee, 0x48, 0xf9, 0x73, 0xcf,
- 0xfe, 0xb4, 0x74, 0xe6, 0xd9, 0xd7, 0x4b, 0xd2, 0x57, 0x5f, 0x2f, 0x49, 0x7f, 0xfc, 0x7a, 0x49,
- 0xfa, 0xf1, 0x9f, 0x97, 0xce, 0xec, 0x8e, 0xb3, 0xdf, 0xde, 0xef, 0xfd, 0x2f, 0x00, 0x00, 0xff,
- 0xff, 0xda, 0x3b, 0x5a, 0x70, 0xc4, 0x1f, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // TransportClient is the client API for Transport service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type TransportClient interface {
- Transport(ctx context.Context, opts ...grpc.CallOption) (Transport_TransportClient, error)
- }
- type transportClient struct {
- cc *grpc.ClientConn
- }
- func NewTransportClient(cc *grpc.ClientConn) TransportClient {
- return &transportClient{cc}
- }
- func (c *transportClient) Transport(ctx context.Context, opts ...grpc.CallOption) (Transport_TransportClient, error) {
- stream, err := c.cc.NewStream(ctx, &_Transport_serviceDesc.Streams[0], "/rpcpb.Transport/Transport", opts...)
- if err != nil {
- return nil, err
- }
- x := &transportTransportClient{stream}
- return x, nil
- }
- type Transport_TransportClient interface {
- Send(*Request) error
- Recv() (*Response, error)
- grpc.ClientStream
- }
- type transportTransportClient struct {
- grpc.ClientStream
- }
- func (x *transportTransportClient) Send(m *Request) error {
- return x.ClientStream.SendMsg(m)
- }
- func (x *transportTransportClient) Recv() (*Response, error) {
- m := new(Response)
- if err := x.ClientStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
- }
- // TransportServer is the server API for Transport service.
- type TransportServer interface {
- Transport(Transport_TransportServer) error
- }
- // UnimplementedTransportServer can be embedded to have forward compatible implementations.
- type UnimplementedTransportServer struct {
- }
- func (*UnimplementedTransportServer) Transport(srv Transport_TransportServer) error {
- return status.Errorf(codes.Unimplemented, "method Transport not implemented")
- }
- func RegisterTransportServer(s *grpc.Server, srv TransportServer) {
- s.RegisterService(&_Transport_serviceDesc, srv)
- }
- func _Transport_Transport_Handler(srv interface{}, stream grpc.ServerStream) error {
- return srv.(TransportServer).Transport(&transportTransportServer{stream})
- }
- type Transport_TransportServer interface {
- Send(*Response) error
- Recv() (*Request, error)
- grpc.ServerStream
- }
- type transportTransportServer struct {
- grpc.ServerStream
- }
- func (x *transportTransportServer) Send(m *Response) error {
- return x.ServerStream.SendMsg(m)
- }
- func (x *transportTransportServer) Recv() (*Request, error) {
- m := new(Request)
- if err := x.ServerStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
- }
- var _Transport_serviceDesc = grpc.ServiceDesc{
- ServiceName: "rpcpb.Transport",
- HandlerType: (*TransportServer)(nil),
- Methods: []grpc.MethodDesc{},
- Streams: []grpc.StreamDesc{
- {
- StreamName: "Transport",
- Handler: _Transport_Transport_Handler,
- ServerStreams: true,
- ClientStreams: true,
- },
- },
- Metadata: "rpcpb/rpc.proto",
- }
- func (m *Request) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *Request) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Tester != nil {
- {
- size, err := m.Tester.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if m.Member != nil {
- {
- size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- }
- if m.Operation != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.Operation))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
- func (m *SnapshotInfo) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *SnapshotInfo) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *SnapshotInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Took) > 0 {
- i -= len(m.Took)
- copy(dAtA[i:], m.Took)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Took)))
- i--
- dAtA[i] = 0x4a
- }
- if m.SnapshotRevision != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotRevision))
- i--
- dAtA[i] = 0x40
- }
- if m.SnapshotHash != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotHash))
- i--
- dAtA[i] = 0x38
- }
- if m.SnapshotTotalKey != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotTotalKey))
- i--
- dAtA[i] = 0x30
- }
- if len(m.SnapshotTotalSize) > 0 {
- i -= len(m.SnapshotTotalSize)
- copy(dAtA[i:], m.SnapshotTotalSize)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotTotalSize)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.SnapshotFileSize) > 0 {
- i -= len(m.SnapshotFileSize)
- copy(dAtA[i:], m.SnapshotFileSize)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotFileSize)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.SnapshotPath) > 0 {
- i -= len(m.SnapshotPath)
- copy(dAtA[i:], m.SnapshotPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotPath)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.MemberClientURLs) > 0 {
- for iNdEx := len(m.MemberClientURLs) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.MemberClientURLs[iNdEx])
- copy(dAtA[i:], m.MemberClientURLs[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.MemberClientURLs[iNdEx])))
- i--
- dAtA[i] = 0x12
- }
- }
- if len(m.MemberName) > 0 {
- i -= len(m.MemberName)
- copy(dAtA[i:], m.MemberName)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.MemberName)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
- func (m *Response) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *Response) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.SnapshotInfo != nil {
- {
- size, err := m.SnapshotInfo.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x22
- }
- if m.Member != nil {
- {
- size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Status) > 0 {
- i -= len(m.Status)
- copy(dAtA[i:], m.Status)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Status)))
- i--
- dAtA[i] = 0x12
- }
- if m.Success {
- i--
- if m.Success {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
- func (m *Member) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *Member) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.SnapshotInfo != nil {
- {
- size, err := m.SnapshotInfo.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x25
- i--
- dAtA[i] = 0xd2
- }
- if len(m.SnapshotPath) > 0 {
- i -= len(m.SnapshotPath)
- copy(dAtA[i:], m.SnapshotPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotPath)))
- i--
- dAtA[i] = 0x25
- i--
- dAtA[i] = 0xca
- }
- if len(m.PeerTrustedCAPath) > 0 {
- i -= len(m.PeerTrustedCAPath)
- copy(dAtA[i:], m.PeerTrustedCAPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerTrustedCAPath)))
- i--
- dAtA[i] = 0x1f
- i--
- dAtA[i] = 0xd2
- }
- if len(m.PeerTrustedCAData) > 0 {
- i -= len(m.PeerTrustedCAData)
- copy(dAtA[i:], m.PeerTrustedCAData)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerTrustedCAData)))
- i--
- dAtA[i] = 0x1f
- i--
- dAtA[i] = 0xca
- }
- if len(m.PeerKeyPath) > 0 {
- i -= len(m.PeerKeyPath)
- copy(dAtA[i:], m.PeerKeyPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerKeyPath)))
- i--
- dAtA[i] = 0x1f
- i--
- dAtA[i] = 0xc2
- }
- if len(m.PeerKeyData) > 0 {
- i -= len(m.PeerKeyData)
- copy(dAtA[i:], m.PeerKeyData)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerKeyData)))
- i--
- dAtA[i] = 0x1f
- i--
- dAtA[i] = 0xba
- }
- if len(m.PeerCertPath) > 0 {
- i -= len(m.PeerCertPath)
- copy(dAtA[i:], m.PeerCertPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerCertPath)))
- i--
- dAtA[i] = 0x1f
- i--
- dAtA[i] = 0xb2
- }
- if len(m.PeerCertData) > 0 {
- i -= len(m.PeerCertData)
- copy(dAtA[i:], m.PeerCertData)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerCertData)))
- i--
- dAtA[i] = 0x1f
- i--
- dAtA[i] = 0xaa
- }
- if len(m.ClientTrustedCAPath) > 0 {
- i -= len(m.ClientTrustedCAPath)
- copy(dAtA[i:], m.ClientTrustedCAPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientTrustedCAPath)))
- i--
- dAtA[i] = 0x19
- i--
- dAtA[i] = 0xb2
- }
- if len(m.ClientTrustedCAData) > 0 {
- i -= len(m.ClientTrustedCAData)
- copy(dAtA[i:], m.ClientTrustedCAData)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientTrustedCAData)))
- i--
- dAtA[i] = 0x19
- i--
- dAtA[i] = 0xaa
- }
- if len(m.ClientKeyPath) > 0 {
- i -= len(m.ClientKeyPath)
- copy(dAtA[i:], m.ClientKeyPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientKeyPath)))
- i--
- dAtA[i] = 0x19
- i--
- dAtA[i] = 0xa2
- }
- if len(m.ClientKeyData) > 0 {
- i -= len(m.ClientKeyData)
- copy(dAtA[i:], m.ClientKeyData)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientKeyData)))
- i--
- dAtA[i] = 0x19
- i--
- dAtA[i] = 0x9a
- }
- if len(m.ClientCertPath) > 0 {
- i -= len(m.ClientCertPath)
- copy(dAtA[i:], m.ClientCertPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientCertPath)))
- i--
- dAtA[i] = 0x19
- i--
- dAtA[i] = 0x92
- }
- if len(m.ClientCertData) > 0 {
- i -= len(m.ClientCertData)
- copy(dAtA[i:], m.ClientCertData)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientCertData)))
- i--
- dAtA[i] = 0x19
- i--
- dAtA[i] = 0x8a
- }
- if m.EtcdOnSnapshotRestore != nil {
- {
- size, err := m.EtcdOnSnapshotRestore.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xfa
- }
- if m.Etcd != nil {
- {
- size, err := m.Etcd.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xf2
- }
- if len(m.EtcdClientEndpoint) > 0 {
- i -= len(m.EtcdClientEndpoint)
- copy(dAtA[i:], m.EtcdClientEndpoint)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.EtcdClientEndpoint)))
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xea
- }
- if m.EtcdPeerProxy {
- i--
- if m.EtcdPeerProxy {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xd0
- }
- if m.EtcdClientProxy {
- i--
- if m.EtcdClientProxy {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xc8
- }
- if len(m.BaseDir) > 0 {
- i -= len(m.BaseDir)
- copy(dAtA[i:], m.BaseDir)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.BaseDir)))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xaa
- }
- if len(m.FailpointHTTPAddr) > 0 {
- i -= len(m.FailpointHTTPAddr)
- copy(dAtA[i:], m.FailpointHTTPAddr)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.FailpointHTTPAddr)))
- i--
- dAtA[i] = 0x62
- }
- if len(m.AgentAddr) > 0 {
- i -= len(m.AgentAddr)
- copy(dAtA[i:], m.AgentAddr)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.AgentAddr)))
- i--
- dAtA[i] = 0x5a
- }
- if len(m.EtcdExec) > 0 {
- i -= len(m.EtcdExec)
- copy(dAtA[i:], m.EtcdExec)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.EtcdExec)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
- func (m *Tester) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *Tester) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *Tester) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.StressQPS != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressQPS))
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xf0
- }
- if m.StressClients != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressClients))
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xe8
- }
- if m.StressKeyTxnOps != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressKeyTxnOps))
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xe8
- }
- if m.StressKeySuffixRangeTxn != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySuffixRangeTxn))
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xe0
- }
- if m.StressKeySuffixRange != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySuffixRange))
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xd8
- }
- if m.StressKeySizeLarge != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySizeLarge))
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xd0
- }
- if m.StressKeySize != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySize))
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xc8
- }
- if len(m.Checkers) > 0 {
- for iNdEx := len(m.Checkers) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.Checkers[iNdEx])
- copy(dAtA[i:], m.Checkers[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Checkers[iNdEx])))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xb2
- }
- }
- if len(m.Stressers) > 0 {
- for iNdEx := len(m.Stressers) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Stressers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintRpc(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xaa
- }
- }
- if len(m.ExternalExecPath) > 0 {
- i -= len(m.ExternalExecPath)
- copy(dAtA[i:], m.ExternalExecPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ExternalExecPath)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xd2
- }
- if len(m.RunnerExecPath) > 0 {
- i -= len(m.RunnerExecPath)
- copy(dAtA[i:], m.RunnerExecPath)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.RunnerExecPath)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xca
- }
- if len(m.FailpointCommands) > 0 {
- for iNdEx := len(m.FailpointCommands) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.FailpointCommands[iNdEx])
- copy(dAtA[i:], m.FailpointCommands[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.FailpointCommands[iNdEx])))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x92
- }
- }
- if len(m.Cases) > 0 {
- for iNdEx := len(m.Cases) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.Cases[iNdEx])
- copy(dAtA[i:], m.Cases[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Cases[iNdEx])))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x8a
- }
- }
- if m.CaseShuffle {
- i--
- if m.CaseShuffle {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x80
- }
- if m.CaseDelayMs != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.CaseDelayMs))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xf8
- }
- if m.EnablePprof {
- i--
- if m.EnablePprof {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xb8
- }
- if m.ExitOnCaseFail {
- i--
- if m.ExitOnCaseFail {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xb0
- }
- if m.RoundLimit != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.RoundLimit))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xa8
- }
- if m.UpdatedDelayLatencyMs != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.UpdatedDelayLatencyMs))
- i--
- dAtA[i] = 0x68
- }
- if m.DelayLatencyMsRv != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.DelayLatencyMsRv))
- i--
- dAtA[i] = 0x60
- }
- if m.DelayLatencyMs != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.DelayLatencyMs))
- i--
- dAtA[i] = 0x58
- }
- if len(m.Addr) > 0 {
- i -= len(m.Addr)
- copy(dAtA[i:], m.Addr)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Addr)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Network) > 0 {
- i -= len(m.Network)
- copy(dAtA[i:], m.Network)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Network)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.DataDir) > 0 {
- i -= len(m.DataDir)
- copy(dAtA[i:], m.DataDir)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.DataDir)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
- func (m *Stresser) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *Stresser) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *Stresser) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Weight != 0 {
- i -= 8
- encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Weight))))
- i--
- dAtA[i] = 0x11
- }
- if len(m.Type) > 0 {
- i -= len(m.Type)
- copy(dAtA[i:], m.Type)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Type)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
- func (m *Etcd) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *Etcd) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
- func (m *Etcd) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.LogLevel) > 0 {
- i -= len(m.LogLevel)
- copy(dAtA[i:], m.LogLevel)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.LogLevel)))
- i--
- dAtA[i] = 0x4
- i--
- dAtA[i] = 0xca
- }
- if len(m.LogOutputs) > 0 {
- for iNdEx := len(m.LogOutputs) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.LogOutputs[iNdEx])
- copy(dAtA[i:], m.LogOutputs[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.LogOutputs[iNdEx])))
- i--
- dAtA[i] = 0x4
- i--
- dAtA[i] = 0xc2
- }
- }
- if len(m.Logger) > 0 {
- i -= len(m.Logger)
- copy(dAtA[i:], m.Logger)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Logger)))
- i--
- dAtA[i] = 0x4
- i--
- dAtA[i] = 0xba
- }
- if m.InitialCorruptCheck {
- i--
- if m.InitialCorruptCheck {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x4
- i--
- dAtA[i] = 0x80
- }
- if m.PreVote {
- i--
- if m.PreVote {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x3
- i--
- dAtA[i] = 0xf8
- }
- if m.QuotaBackendBytes != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.QuotaBackendBytes))
- i--
- dAtA[i] = 0x3
- i--
- dAtA[i] = 0xa0
- }
- if m.SnapshotCount != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotCount))
- i--
- dAtA[i] = 0x3
- i--
- dAtA[i] = 0x98
- }
- if len(m.InitialClusterToken) > 0 {
- i -= len(m.InitialClusterToken)
- copy(dAtA[i:], m.InitialClusterToken)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.InitialClusterToken)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xda
- }
- if len(m.InitialClusterState) > 0 {
- i -= len(m.InitialClusterState)
- copy(dAtA[i:], m.InitialClusterState)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.InitialClusterState)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xd2
- }
- if len(m.InitialCluster) > 0 {
- i -= len(m.InitialCluster)
- copy(dAtA[i:], m.InitialCluster)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.InitialCluster)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xca
- }
- if len(m.PeerTrustedCAFile) > 0 {
- i -= len(m.PeerTrustedCAFile)
- copy(dAtA[i:], m.PeerTrustedCAFile)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerTrustedCAFile)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xaa
- }
- if len(m.PeerKeyFile) > 0 {
- i -= len(m.PeerKeyFile)
- copy(dAtA[i:], m.PeerKeyFile)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerKeyFile)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xa2
- }
- if len(m.PeerCertFile) > 0 {
- i -= len(m.PeerCertFile)
- copy(dAtA[i:], m.PeerCertFile)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerCertFile)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x9a
- }
- if m.PeerClientCertAuth {
- i--
- if m.PeerClientCertAuth {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x90
- }
- if m.PeerAutoTLS {
- i--
- if m.PeerAutoTLS {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x88
- }
- if len(m.AdvertisePeerURLs) > 0 {
- for iNdEx := len(m.AdvertisePeerURLs) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.AdvertisePeerURLs[iNdEx])
- copy(dAtA[i:], m.AdvertisePeerURLs[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.AdvertisePeerURLs[iNdEx])))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x82
- }
- }
- if len(m.ListenPeerURLs) > 0 {
- for iNdEx := len(m.ListenPeerURLs) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.ListenPeerURLs[iNdEx])
- copy(dAtA[i:], m.ListenPeerURLs[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ListenPeerURLs[iNdEx])))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xfa
- }
- }
- if len(m.ClientTrustedCAFile) > 0 {
- i -= len(m.ClientTrustedCAFile)
- copy(dAtA[i:], m.ClientTrustedCAFile)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientTrustedCAFile)))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xda
- }
- if len(m.ClientKeyFile) > 0 {
- i -= len(m.ClientKeyFile)
- copy(dAtA[i:], m.ClientKeyFile)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientKeyFile)))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xd2
- }
- if len(m.ClientCertFile) > 0 {
- i -= len(m.ClientCertFile)
- copy(dAtA[i:], m.ClientCertFile)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientCertFile)))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xca
- }
- if m.ClientCertAuth {
- i--
- if m.ClientCertAuth {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xc0
- }
- if m.ClientAutoTLS {
- i--
- if m.ClientAutoTLS {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xb8
- }
- if len(m.AdvertiseClientURLs) > 0 {
- for iNdEx := len(m.AdvertiseClientURLs) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.AdvertiseClientURLs[iNdEx])
- copy(dAtA[i:], m.AdvertiseClientURLs[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.AdvertiseClientURLs[iNdEx])))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xb2
- }
- }
- if len(m.ListenClientURLs) > 0 {
- for iNdEx := len(m.ListenClientURLs) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.ListenClientURLs[iNdEx])
- copy(dAtA[i:], m.ListenClientURLs[iNdEx])
- i = encodeVarintRpc(dAtA, i, uint64(len(m.ListenClientURLs[iNdEx])))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xaa
- }
- }
- if m.ElectionTimeoutMs != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.ElectionTimeoutMs))
- i--
- dAtA[i] = 0x60
- }
- if m.HeartbeatIntervalMs != 0 {
- i = encodeVarintRpc(dAtA, i, uint64(m.HeartbeatIntervalMs))
- i--
- dAtA[i] = 0x58
- }
- if len(m.WALDir) > 0 {
- i -= len(m.WALDir)
- copy(dAtA[i:], m.WALDir)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.WALDir)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.DataDir) > 0 {
- i -= len(m.DataDir)
- copy(dAtA[i:], m.DataDir)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.DataDir)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
- func encodeVarintRpc(dAtA []byte, offset int, v uint64) int {
- offset -= sovRpc(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
- }
- func (m *Request) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Operation != 0 {
- n += 1 + sovRpc(uint64(m.Operation))
- }
- if m.Member != nil {
- l = m.Member.Size()
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.Tester != nil {
- l = m.Tester.Size()
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *SnapshotInfo) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.MemberName)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if len(m.MemberClientURLs) > 0 {
- for _, s := range m.MemberClientURLs {
- l = len(s)
- n += 1 + l + sovRpc(uint64(l))
- }
- }
- l = len(m.SnapshotPath)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.SnapshotFileSize)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.SnapshotTotalSize)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.SnapshotTotalKey != 0 {
- n += 1 + sovRpc(uint64(m.SnapshotTotalKey))
- }
- if m.SnapshotHash != 0 {
- n += 1 + sovRpc(uint64(m.SnapshotHash))
- }
- if m.SnapshotRevision != 0 {
- n += 1 + sovRpc(uint64(m.SnapshotRevision))
- }
- l = len(m.Took)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *Response) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Success {
- n += 2
- }
- l = len(m.Status)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.Member != nil {
- l = m.Member.Size()
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.SnapshotInfo != nil {
- l = m.SnapshotInfo.Size()
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *Member) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.EtcdExec)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.AgentAddr)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.FailpointHTTPAddr)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.BaseDir)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.EtcdClientProxy {
- n += 3
- }
- if m.EtcdPeerProxy {
- n += 3
- }
- l = len(m.EtcdClientEndpoint)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.Etcd != nil {
- l = m.Etcd.Size()
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.EtcdOnSnapshotRestore != nil {
- l = m.EtcdOnSnapshotRestore.Size()
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientCertData)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientCertPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientKeyData)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientKeyPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientTrustedCAData)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientTrustedCAPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerCertData)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerCertPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerKeyData)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerKeyPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerTrustedCAData)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerTrustedCAPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.SnapshotPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.SnapshotInfo != nil {
- l = m.SnapshotInfo.Size()
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *Tester) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.DataDir)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.Network)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.Addr)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.DelayLatencyMs != 0 {
- n += 1 + sovRpc(uint64(m.DelayLatencyMs))
- }
- if m.DelayLatencyMsRv != 0 {
- n += 1 + sovRpc(uint64(m.DelayLatencyMsRv))
- }
- if m.UpdatedDelayLatencyMs != 0 {
- n += 1 + sovRpc(uint64(m.UpdatedDelayLatencyMs))
- }
- if m.RoundLimit != 0 {
- n += 2 + sovRpc(uint64(m.RoundLimit))
- }
- if m.ExitOnCaseFail {
- n += 3
- }
- if m.EnablePprof {
- n += 3
- }
- if m.CaseDelayMs != 0 {
- n += 2 + sovRpc(uint64(m.CaseDelayMs))
- }
- if m.CaseShuffle {
- n += 3
- }
- if len(m.Cases) > 0 {
- for _, s := range m.Cases {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if len(m.FailpointCommands) > 0 {
- for _, s := range m.FailpointCommands {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- l = len(m.RunnerExecPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ExternalExecPath)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if len(m.Stressers) > 0 {
- for _, e := range m.Stressers {
- l = e.Size()
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if len(m.Checkers) > 0 {
- for _, s := range m.Checkers {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if m.StressKeySize != 0 {
- n += 2 + sovRpc(uint64(m.StressKeySize))
- }
- if m.StressKeySizeLarge != 0 {
- n += 2 + sovRpc(uint64(m.StressKeySizeLarge))
- }
- if m.StressKeySuffixRange != 0 {
- n += 2 + sovRpc(uint64(m.StressKeySuffixRange))
- }
- if m.StressKeySuffixRangeTxn != 0 {
- n += 2 + sovRpc(uint64(m.StressKeySuffixRangeTxn))
- }
- if m.StressKeyTxnOps != 0 {
- n += 2 + sovRpc(uint64(m.StressKeyTxnOps))
- }
- if m.StressClients != 0 {
- n += 2 + sovRpc(uint64(m.StressClients))
- }
- if m.StressQPS != 0 {
- n += 2 + sovRpc(uint64(m.StressQPS))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *Stresser) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Type)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.Weight != 0 {
- n += 9
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *Etcd) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.DataDir)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- l = len(m.WALDir)
- if l > 0 {
- n += 1 + l + sovRpc(uint64(l))
- }
- if m.HeartbeatIntervalMs != 0 {
- n += 1 + sovRpc(uint64(m.HeartbeatIntervalMs))
- }
- if m.ElectionTimeoutMs != 0 {
- n += 1 + sovRpc(uint64(m.ElectionTimeoutMs))
- }
- if len(m.ListenClientURLs) > 0 {
- for _, s := range m.ListenClientURLs {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if len(m.AdvertiseClientURLs) > 0 {
- for _, s := range m.AdvertiseClientURLs {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if m.ClientAutoTLS {
- n += 3
- }
- if m.ClientCertAuth {
- n += 3
- }
- l = len(m.ClientCertFile)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientKeyFile)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.ClientTrustedCAFile)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if len(m.ListenPeerURLs) > 0 {
- for _, s := range m.ListenPeerURLs {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if len(m.AdvertisePeerURLs) > 0 {
- for _, s := range m.AdvertisePeerURLs {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- if m.PeerAutoTLS {
- n += 3
- }
- if m.PeerClientCertAuth {
- n += 3
- }
- l = len(m.PeerCertFile)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerKeyFile)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.PeerTrustedCAFile)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.InitialCluster)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.InitialClusterState)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- l = len(m.InitialClusterToken)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.SnapshotCount != 0 {
- n += 2 + sovRpc(uint64(m.SnapshotCount))
- }
- if m.QuotaBackendBytes != 0 {
- n += 2 + sovRpc(uint64(m.QuotaBackendBytes))
- }
- if m.PreVote {
- n += 3
- }
- if m.InitialCorruptCheck {
- n += 3
- }
- l = len(m.Logger)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if len(m.LogOutputs) > 0 {
- for _, s := range m.LogOutputs {
- l = len(s)
- n += 2 + l + sovRpc(uint64(l))
- }
- }
- l = len(m.LogLevel)
- if l > 0 {
- n += 2 + l + sovRpc(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func sovRpc(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
- }
- func sozRpc(x uint64) (n int) {
- return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (m *Request) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Request: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
- }
- m.Operation = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Operation |= Operation(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Member == nil {
- m.Member = &Member{}
- }
- if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Tester", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Tester == nil {
- m.Tester = &Tester{}
- }
- if err := m.Tester.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *SnapshotInfo) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SnapshotInfo: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SnapshotInfo: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MemberName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MemberName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MemberClientURLs", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MemberClientURLs = append(m.MemberClientURLs, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SnapshotPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotFileSize", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SnapshotFileSize = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTotalSize", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SnapshotTotalSize = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTotalKey", wireType)
- }
- m.SnapshotTotalKey = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SnapshotTotalKey |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotHash", wireType)
- }
- m.SnapshotHash = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SnapshotHash |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotRevision", wireType)
- }
- m.SnapshotRevision = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SnapshotRevision |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Took", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Took = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Response) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Response: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Success = bool(v != 0)
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Status = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Member == nil {
- m.Member = &Member{}
- }
- if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotInfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.SnapshotInfo == nil {
- m.SnapshotInfo = &SnapshotInfo{}
- }
- if err := m.SnapshotInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Member) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Member: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field EtcdExec", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.EtcdExec = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AgentAddr", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AgentAddr = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FailpointHTTPAddr", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.FailpointHTTPAddr = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 101:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field BaseDir", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.BaseDir = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 201:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EtcdClientProxy", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EtcdClientProxy = bool(v != 0)
- case 202:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EtcdPeerProxy", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EtcdPeerProxy = bool(v != 0)
- case 301:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field EtcdClientEndpoint", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.EtcdClientEndpoint = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 302:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Etcd", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Etcd == nil {
- m.Etcd = &Etcd{}
- }
- if err := m.Etcd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 303:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field EtcdOnSnapshotRestore", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.EtcdOnSnapshotRestore == nil {
- m.EtcdOnSnapshotRestore = &Etcd{}
- }
- if err := m.EtcdOnSnapshotRestore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 401:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientCertData", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientCertData = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 402:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientCertPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientCertPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 403:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyData", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientKeyData = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 404:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientKeyPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 405:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientTrustedCAData", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientTrustedCAData = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 406:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientTrustedCAPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientTrustedCAPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 501:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerCertData", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerCertData = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 502:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerCertPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerCertPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 503:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerKeyData", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerKeyData = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 504:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerKeyPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerKeyPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 505:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerTrustedCAData", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerTrustedCAData = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 506:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerTrustedCAPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerTrustedCAPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 601:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SnapshotPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 602:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotInfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.SnapshotInfo == nil {
- m.SnapshotInfo = &SnapshotInfo{}
- }
- if err := m.SnapshotInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Tester) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Tester: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Tester: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DataDir", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.DataDir = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Network = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addr = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DelayLatencyMs", wireType)
- }
- m.DelayLatencyMs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DelayLatencyMs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DelayLatencyMsRv", wireType)
- }
- m.DelayLatencyMsRv = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DelayLatencyMsRv |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UpdatedDelayLatencyMs", wireType)
- }
- m.UpdatedDelayLatencyMs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UpdatedDelayLatencyMs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 21:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RoundLimit", wireType)
- }
- m.RoundLimit = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RoundLimit |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 22:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExitOnCaseFail", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ExitOnCaseFail = bool(v != 0)
- case 23:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnablePprof", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EnablePprof = bool(v != 0)
- case 31:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CaseDelayMs", wireType)
- }
- m.CaseDelayMs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.CaseDelayMs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 32:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CaseShuffle", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.CaseShuffle = bool(v != 0)
- case 33:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Cases", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Cases = append(m.Cases, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 34:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FailpointCommands", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.FailpointCommands = append(m.FailpointCommands, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 41:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RunnerExecPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RunnerExecPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 42:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExternalExecPath", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ExternalExecPath = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 101:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Stressers", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Stressers = append(m.Stressers, &Stresser{})
- if err := m.Stressers[len(m.Stressers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 102:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Checkers", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Checkers = append(m.Checkers, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 201:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressKeySize", wireType)
- }
- m.StressKeySize = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressKeySize |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 202:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressKeySizeLarge", wireType)
- }
- m.StressKeySizeLarge = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressKeySizeLarge |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 203:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressKeySuffixRange", wireType)
- }
- m.StressKeySuffixRange = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressKeySuffixRange |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 204:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressKeySuffixRangeTxn", wireType)
- }
- m.StressKeySuffixRangeTxn = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressKeySuffixRangeTxn |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 205:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressKeyTxnOps", wireType)
- }
- m.StressKeyTxnOps = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressKeyTxnOps |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 301:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressClients", wireType)
- }
- m.StressClients = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressClients |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 302:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StressQPS", wireType)
- }
- m.StressQPS = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StressQPS |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Stresser) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Stresser: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Stresser: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Type = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 1 {
- return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
- }
- var v uint64
- if (iNdEx + 8) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
- iNdEx += 8
- m.Weight = float64(math.Float64frombits(v))
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Etcd) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Etcd: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Etcd: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DataDir", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.DataDir = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field WALDir", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.WALDir = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatIntervalMs", wireType)
- }
- m.HeartbeatIntervalMs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HeartbeatIntervalMs |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ElectionTimeoutMs", wireType)
- }
- m.ElectionTimeoutMs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ElectionTimeoutMs |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 21:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ListenClientURLs", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ListenClientURLs = append(m.ListenClientURLs, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 22:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AdvertiseClientURLs", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AdvertiseClientURLs = append(m.AdvertiseClientURLs, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 23:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientAutoTLS", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ClientAutoTLS = bool(v != 0)
- case 24:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientCertAuth", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ClientCertAuth = bool(v != 0)
- case 25:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientCertFile", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientCertFile = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 26:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyFile", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientKeyFile = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 27:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientTrustedCAFile", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ClientTrustedCAFile = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 31:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ListenPeerURLs", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ListenPeerURLs = append(m.ListenPeerURLs, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 32:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AdvertisePeerURLs", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AdvertisePeerURLs = append(m.AdvertisePeerURLs, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 33:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerAutoTLS", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PeerAutoTLS = bool(v != 0)
- case 34:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerClientCertAuth", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PeerClientCertAuth = bool(v != 0)
- case 35:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerCertFile", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerCertFile = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 36:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerKeyFile", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerKeyFile = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 37:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PeerTrustedCAFile", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PeerTrustedCAFile = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 41:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field InitialCluster", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.InitialCluster = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 42:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field InitialClusterState", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.InitialClusterState = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 43:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field InitialClusterToken", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.InitialClusterToken = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 51:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SnapshotCount", wireType)
- }
- m.SnapshotCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SnapshotCount |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 52:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field QuotaBackendBytes", wireType)
- }
- m.QuotaBackendBytes = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.QuotaBackendBytes |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 63:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PreVote", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PreVote = bool(v != 0)
- case 64:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InitialCorruptCheck", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.InitialCorruptCheck = bool(v != 0)
- case 71:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Logger", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Logger = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 72:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LogOutputs", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LogOutputs = append(m.LogOutputs, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 73:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LogLevel", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRpc
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthRpc
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LogLevel = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRpc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthRpc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipRpc(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- return iNdEx, nil
- case 1:
- iNdEx += 8
- return iNdEx, nil
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthRpc
- }
- iNdEx += length
- if iNdEx < 0 {
- return 0, ErrInvalidLengthRpc
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRpc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- innerWire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- innerWireType := int(innerWire & 0x7)
- if innerWireType == 4 {
- break
- }
- next, err := skipRpc(dAtA[start:])
- if err != nil {
- return 0, err
- }
- iNdEx = start + next
- if iNdEx < 0 {
- return 0, ErrInvalidLengthRpc
- }
- }
- return iNdEx, nil
- case 4:
- return iNdEx, nil
- case 5:
- iNdEx += 4
- return iNdEx, nil
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- }
- panic("unreachable")
- }
- var (
- ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow")
- )
|