enterprise

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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) Descriptor() ([]byte, []int)

func (*Info) GetMessage

func (m *Info) GetMessage() string

func (*Info) GetNextUpdate

func (m *Info) GetNextUpdate() uint64

func (*Info) GetTimestamp

func (m *Info) GetTimestamp() uint64

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

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) Descriptor() ([]byte, []int)

func (*License) GetCreated

func (m *License) GetCreated() uint64

func (*License) GetId

func (m *License) GetId() string

func (*License) GetKey

func (m *License) GetKey() string

func (*License) GetSubscription

func (m *License) GetSubscription() *Subscription

func (*License) GetVersion

func (m *License) GetVersion() string

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) Reset

func (m *License) Reset()

func (*License) String

func (m *License) String() string

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) Descriptor() ([]byte, []int)

func (*Service) GetId

func (m *Service) GetId() string

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) GetVersion

func (m *Service) GetVersion() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

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) Descriptor() ([]byte, []int)

func (*Token) GetClaims

func (m *Token) GetClaims() map[string]string

func (*Token) GetExpires

func (m *Token) GetExpires() uint64

func (*Token) GetId

func (m *Token) GetId() string

func (*Token) GetKey

func (m *Token) GetKey() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

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) Descriptor() ([]byte, []int)

func (*Update) GetId

func (m *Update) GetId() string

func (*Update) GetService

func (m *Update) GetService() *Service

func (*Update) GetTimestamp

func (m *Update) GetTimestamp() uint64

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) Reset

func (m *Update) Reset()

func (*Update) String

func (m *Update) String() string

Jump to

Keyboard shortcuts

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