Documentation
¶
Index ¶
- Constants
- Variables
- func CheckDomain(domain string) string
- func ReplaceURL(str string) string
- type EventType
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (m *Service) FullPath() string
- func (x *Service) GetDomain() string
- func (x *Service) GetName() string
- func (m *Service) GetPath(registry string) string
- func (x *Service) GetTopic() string
- func (x *Service) GetVersion() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (m *Service) TopicPath() string
Constants ¶
View Source
const DefaultDomain = "/trellis"
Variables ¶
View Source
var ( EventType_name = map[int32]string{ 0: "EVENT_TYPE_CREATE", 1: "EVENT_TYPE_DELETE", 2: "EVENT_TYPE_UPDATE", } EventType_value = map[string]int32{ "EVENT_TYPE_CREATE": 0, "EVENT_TYPE_DELETE": 1, "EVENT_TYPE_UPDATE": 2, } )
Enum value maps for EventType.
View Source
var File_trellis_tech_trellis_v1_proto_service_proto protoreflect.FileDescriptor
Functions ¶
func CheckDomain ¶
Types ¶
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type Service ¶
type Service struct { // @gotags: yaml:"domain,omitempty" Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty" yaml:"domain,omitempty"` // @gotags: yaml:"name,omitempty" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name,omitempty"` // @gotags: yaml:"version,omitempty" Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty" yaml:"version,omitempty"` // API Handler name @gotags: yaml:"topic,omitempty" Topic string `protobuf:"bytes,4,opt,name=topic,proto3" json:"topic,omitempty" yaml:"topic,omitempty"` // contains filtered or unexported fields }
Service 服务对象
func NewService ¶
func NewServiceWithTopic ¶
func (*Service) Descriptor
deprecated
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.