Documentation
¶
Overview ¶
Package enterprise is a generated protocol buffer package.
It is generated from these files:
github.com/micro/enterprise/proto/license.proto
It has these top-level messages:
Info License Service Subscription Token Update
Package enterprise is a generated protocol buffer package.
It is generated from these files:
github.com/micro/enterprise/proto/license.proto
It has these top-level messages:
Info License Service Subscription Token Update
Index ¶
- type Info
- type License
- func (*License) Descriptor() ([]byte, []int)
- func (m *License) GetCreated() uint64
- func (m *License) GetId() string
- func (m *License) GetKey() string
- func (m *License) GetSubscription() *Subscription
- func (m *License) GetVersion() string
- func (*License) ProtoMessage()
- func (m *License) Reset()
- func (m *License) String() string
- type Service
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)
- func (m *Subscription) GetCreated() uint64
- func (m *Subscription) GetEmail() string
- func (m *Subscription) GetId() string
- func (m *Subscription) GetQuantity() uint64
- func (m *Subscription) GetStatus() string
- func (m *Subscription) GetType() string
- func (*Subscription) ProtoMessage()
- func (m *Subscription) Reset()
- func (m *Subscription) String() string
- type Token
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // informational message Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` // unix timestamp of info Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` // unix timestamp for next update NextUpdate uint64 `protobuf:"varint,3,opt,name=next_update,json=nextUpdate" json:"next_update,omitempty"` }
Info is the response from an update
func (*Info) Descriptor ¶
func (*Info) GetMessage ¶
func (*Info) GetNextUpdate ¶
func (*Info) GetTimestamp ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
type License ¶
type License struct { // unique id Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // version of license Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` // time of creation Created uint64 `protobuf:"varint,3,opt,name=created" json:"created,omitempty"` // X-Micro-License hash Key string `protobuf:"bytes,4,opt,name=key" json:"key,omitempty"` // subscription Subscription *Subscription `protobuf:"bytes,5,opt,name=subscription" json:"subscription,omitempty"` }
License is the enterprise license
func (*License) Descriptor ¶
func (*License) GetCreated ¶
func (*License) GetSubscription ¶
func (m *License) GetSubscription() *Subscription
func (*License) GetVersion ¶
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
type Service ¶
type Service struct { // name of service Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // version of service Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` // unique id of instance Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` }
Service is a micro service
func (*Service) Descriptor ¶
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
type Subscription ¶
type Subscription struct { // id of subscription Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // email of associated Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` // type of subscription Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` // status e.g active Status string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"` // created at Created uint64 `protobuf:"varint,5,opt,name=created" json:"created,omitempty"` // quantity e.g services Quantity uint64 `protobuf:"varint,6,opt,name=quantity" json:"quantity,omitempty"` }
Subscription is a user subscription
func (*Subscription) Descriptor ¶
func (*Subscription) Descriptor() ([]byte, []int)
func (*Subscription) GetCreated ¶
func (m *Subscription) GetCreated() uint64
func (*Subscription) GetEmail ¶
func (m *Subscription) GetEmail() string
func (*Subscription) GetId ¶
func (m *Subscription) GetId() string
func (*Subscription) GetQuantity ¶
func (m *Subscription) GetQuantity() uint64
func (*Subscription) GetStatus ¶
func (m *Subscription) GetStatus() string
func (*Subscription) GetType ¶
func (m *Subscription) GetType() string
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) Reset ¶
func (m *Subscription) Reset()
func (*Subscription) String ¶
func (m *Subscription) String() string
type Token ¶
type Token struct { // unique id of token Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // unix timestamp Expires uint64 `protobuf:"varint,2,opt,name=expires" json:"expires,omitempty"` // various values Claims map[string]string `` /* 132-byte string literal not displayed */ // encrypted key Key string `protobuf:"bytes,4,opt,name=key" json:"key,omitempty"` }
Token is for auth
func (*Token) Descriptor ¶
func (*Token) GetExpires ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
type Update ¶
type Update struct { // unique id for update Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // unix timestamp Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` // service using license Service *Service `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"` }
Update is a checkpoint
func (*Update) Descriptor ¶
func (*Update) GetService ¶
func (*Update) GetTimestamp ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.