/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Kubernetes.Controller/Protocol/Message.cs
31 строка
885 B
David Bevin
Simplify Library Structure for Kubernetes (#1642)
09 май 2022, 15:27
Не верифицирован
09 май 2022, 15:27
82a831e
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; using System.Text.Json.Serialization; using Yarp.ReverseProxy.Configuration; namespace Yarp.Kubernetes.Protocol; public enum MessageType { Heartbeat, Update, Remove, } #pragma warning disable CA1815 // Override equals and operator equals on value types public struct Message #pragma warning restore CA1815 // Override equals and operator equals on value types { [JsonConverter(typeof(JsonStringEnumConverter))] public MessageType MessageType { get; set; } public string Key { get; set; } #pragma warning disable CA2227 // Collection properties should be read only public List<RouteConfig> Routes { get; set; } public List<ClusterConfig> Cluster { get; set; } #pragma warning restore CA2227 // Collection properties should be read only }