North-South Load Balancing
of Kubernetes Services with
eBPF/XDP--reject-with icmp-port-unreachable -A KUBE-SERVICES -d 10.96.61.252/32 -p tcp -m comment --comment "default/nginx-64: has no endpoints" -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable -A KUBE-SERVICES --reject-with icmp-port-unreachable -A KUBE-SERVICES -d 10.98.85.41/32 -p tcp -m comment --comment "default/nginx-9: has no endpoints" -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable -A KUBE-SERVICES --reject-with icmp-port-unreachable -A KUBE-SERVICES -d 10.106.49.80/32 -p tcp -m comment --comment "default/nginx-37: has no endpoints" -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable -A KUBE-SERVICES0 码力 | 11 页 | 444.46 KB | 1 年前3
The Zig Programming Language 0.12.0 Documentationvoid (none) Always the value void{} noreturn (none) the type of break , continue , return , unreachable , and while (true) {} type (none) the type of types anyerror (none) an error code comptime_int u3 const unwrapped unwrapped == 123 Optional Unwrap a.? Optionals Equivalent to: a orelse unreachable const value: ?u3 value.? == 5678 Defaulting Error Unwrap a catch b a catch |err| b Error Unions fields" { const x: Foo = .{ .b = 5, }; if (x.a + x.b != 1239) { comptime unreachable; } } Shell $ zig test struct_default_field_values.zig 1/1 struct_default_field_values.test0 码力 | 241 页 | 7.37 MB | 1 年前3
The Zig Programming Language 0.1.1 Documentationtrue or false void (none) 0 bit type noreturn (none) the type of break, continue, goto, return, unreachable, and while (true) {} type (none) the type of types error (none) an error code See also: Integers unwrapped == 1234 Note that b may be a value of type noreturn. ??a Nullables Equivalent to: a ?? unreachable const value: ?u32 = 5678; ??value == 5678 a %% b a %% |err| b Error Unions If a is an error null; const unwrapped = value %% 1234; unwrapped == 1234 %%a Error Unions Equivalent to: a %% unreachable const value: %u32 = 5678; %%value == 5678 a and b bool If a is false, returns false without0 码力 | 82 页 | 2.67 MB | 1 年前3
C++23: An Overview of Almost All New and Updated Featuressize_t auto(x): decay-copy in The Language #elifdef, #elifndef, and #warning Marking Unreachable Code Assumptions Named Universal Character Escapes Trim Whitespace Before Line Splicing size_t auto(x): decay-copy in The Language #elifdef, #elifndef, and #warning Marking Unreachable Code Assumptions Named Universal Character Escapes Trim Whitespace Before Line Splicing size_t auto(x): decay-copy in The Language #elifdef, #elifndef, and #warning Marking Unreachable Code Assumptions Named Universal Character Escapes Trim Whitespace Before Line Splicing0 码力 | 105 页 | 759.96 KB | 6 月前3
The Zig Programming Language 0.2.0 Documentationbool true or false void (none) 0 bit type noreturn (none) the type of break, continue, return, unreachable, and while (true) {} type (none) the type of types error (none) an error code See also: Integers unwrapped == 1234 ??a Nullables Equivalent to: const value: ?u32 = 567 ??value == 5678 a ?? unreachable a catch b a catch |err| b Error Unions If a is an error, returns b ("default value"), otherwise switch (i) { 0 => f32, 1 => i8, 2 => bool, else => unreachable, }; sum += typeNameLength(T); } assert(sum == 9); } fn typeNameLength(comptime0 码力 | 117 页 | 2.84 MB | 1 年前3
The Zig Programming Language 0.4.0 Documentationwhile with Optionals while with Error Unions inline while for Labeled for inline for if defer unreachable Basics At Compile-Time noreturn Functions Pass-by-value Parameters Function Reflection Errors Debug ReleaseFast ReleaseSafe ReleaseSmall Single Threaded Builds Undefined Behavior Reaching Unreachable Code Index out of Bounds Cast Negative Number to Unsigned Integer Cast Truncates Data Integer Overflow bool true or false void (none) 0 bit type noreturn (none) the type of break, continue, return, unreachable, and while (true) {} type (none) the type of types anyerror (none) an error code comptime_int0 码力 | 207 页 | 5.29 MB | 1 年前3
The Zig Programming Language 0.7.1 Documentationbool true or false void (none) 0 bit type noreturn (none) the type of break, continue, return, unreachable, and while (true) {} type (none) the type of types anyerror (none) an error code comptime_int const value: ?u3 const unwrapped unwrapped == 123 a.? Optionals Equivalent to: a orelse unreachable const value: ?u3 value.? == 5678 a catch b a catch |err| b Error Unions If a is an error, returns (c) { ComplexTypeTag.ok => |value| expect(value == 42), ComplexTypeTag.not_ok => unreachable, } } test "@TagType" { expect(@TagType(ComplexType) == ComplexTypeTag); } test "coerce0 码力 | 225 页 | 5.74 MB | 1 年前3
The Zig Programming Language 0.11.0 Documentationvoid (none) Always the value void{} noreturn (none) the type of break , continue , return , unreachable , and while (true) {} type (none) the type of types anyerror (none) an error code comptime_int nu 2 const unwrapped = value 3 unwrapped == 1234 a.? Optionals Equivalent to: 1 a orelse unreachable 1 const value: ?u32 = 567 2 value.? == 5678 a catch b a catch |err| b Error Unions If a is ComplexTypeTag.ok => |value| try expect(value == 42), 19 ComplexTypeTag.not_ok => unreachable, 20 } 21 } 22 23 test "get tag type" { 24 try expect(std.meta.Tag(ComplexType) == ComplexTypeTag);0 码力 | 238 页 | 7.80 MB | 1 年前3
The Zig Programming Language 0.8.1 Documentationbool true or false void (none) 0 bit type noreturn (none) the type of break, continue, return, unreachable, and while (true) {} type (none) the type of types anyerror (none) an error code comptime_int const value: ?u3 const unwrapped unwrapped == 123 a.? Optionals Equivalent to: a orelse unreachable const value: ?u3 value.? == 5678 a catch b a catch |err| b Error Unions If a is an error, returns ComplexTypeTag.ok => |value| try expect(value == 42), ComplexTypeTag.not_ok => unreachable, } } test "get tag type" { try expect(std.meta.Tag(ComplexType) == ComplexTypeTag); }0 码力 | 234 页 | 6.01 MB | 1 年前3
The Zig Programming Language 0.5.0 Documentationwhile with Optionals while with Error Unions inline while for Labeled for inline for if defer unreachable Basics At Compile-Time noreturn Functions Pass-by-value Parameters Function Reflection Errors Debug ReleaseFast ReleaseSafe ReleaseSmall Single Threaded Builds Undefined Behavior Reaching Unreachable Code Index out of Bounds Cast Negative Number to Unsigned Integer Cast Truncates Data Integer Overflow bool true or false void (none) 0 bit type noreturn (none) the type of break, continue, return, unreachable, and while (true) {} type (none) the type of types anyerror (none) an error code comptime_int0 码力 | 224 页 | 5.80 MB | 1 年前3
共 565 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57













