service

package
v0.0.0-...-608e6a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

func CheckDomain(domain string) string

func ReplaceURL

func ReplaceURL(str string) string

ReplaceURL replace url

Types

type EventType

type EventType int32
const (
	EventType_EVENT_TYPE_CREATE EventType = 0
	EventType_EVENT_TYPE_DELETE EventType = 1
	EventType_EVENT_TYPE_UPDATE EventType = 2
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

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 NewService(domain, name, version string) *Service

func NewServiceWithTopic

func NewServiceWithTopic(domain, name, version, topic string) *Service

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) FullPath

func (m *Service) FullPath() string

func (*Service) GetDomain

func (x *Service) GetDomain() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPath

func (m *Service) GetPath(registry string) string

func (*Service) GetTopic

func (x *Service) GetTopic() string

func (*Service) GetVersion

func (x *Service) GetVersion() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) TopicPath

func (m *Service) TopicPath() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL