forked from mattheath/h2
/
endpoint.pb.go
85 lines (70 loc) · 2.1 KB
/
endpoint.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Code generated by protoc-gen-go.
// source: github.com/hailocab/h2/proto/login/proto/endpoint.proto
// DO NOT EDIT!
/*
Package com_hailocab_service_login is a generated protocol buffer package.
It is generated from these files:
github.com/hailocab/h2/proto/login/proto/endpoint.proto
It has these top-level messages:
Service
Endpoint
*/
package com_hailocab_service_login
import proto "github.com/hailocab/protobuf/proto"
import json "encoding/json"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = &json.SyntaxError{}
var _ = math.Inf
type Service struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Role *string `protobuf:"bytes,2,req,name=role" json:"role,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Service) Reset() { *m = Service{} }
func (m *Service) String() string { return proto.CompactTextString(m) }
func (*Service) ProtoMessage() {}
func (m *Service) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *Service) GetRole() string {
if m != nil && m.Role != nil {
return *m.Role
}
return ""
}
type Endpoint struct {
// service + endpoint identify the thing we can call
Service *string `protobuf:"bytes,1,req,name=service" json:"service,omitempty"`
Endpoint *string `protobuf:"bytes,2,req,name=endpoint" json:"endpoint,omitempty"`
// services identify what is granted access to this
Granted []*Service `protobuf:"bytes,3,rep,name=granted" json:"granted,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Endpoint) Reset() { *m = Endpoint{} }
func (m *Endpoint) String() string { return proto.CompactTextString(m) }
func (*Endpoint) ProtoMessage() {}
func (m *Endpoint) GetService() string {
if m != nil && m.Service != nil {
return *m.Service
}
return ""
}
func (m *Endpoint) GetEndpoint() string {
if m != nil && m.Endpoint != nil {
return *m.Endpoint
}
return ""
}
func (m *Endpoint) GetGranted() []*Service {
if m != nil {
return m.Granted
}
return nil
}
func init() {
}