-
Notifications
You must be signed in to change notification settings - Fork 2
/
authas.pb.go
94 lines (78 loc) · 2.57 KB
/
authas.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
86
87
88
89
90
91
92
93
94
// Code generated by protoc-gen-go.
// source: github.com/hailocab/h2/proto/login/proto/authas/authas.proto
// DO NOT EDIT!
/*
Package com_hailocab_service_login_authas is a generated protocol buffer package.
It is generated from these files:
github.com/hailocab/h2/proto/login/proto/authas/authas.proto
It has these top-level messages:
Request
Response
*/
package com_hailocab_service_login_authas
import proto "github.com/hailocab/protobuf/proto"
import json "encoding/json"
import math "math"
import com_hailocab_service_login "github.com/hailocab/h2/proto/login/proto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = &json.SyntaxError{}
var _ = math.Inf
type Request struct {
Username *string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
// application is for h2 login and namespaces our user pool
Application *string `protobuf:"bytes,2,opt,name=application" json:"application,omitempty"`
DeviceType *string `protobuf:"bytes,3,opt,name=deviceType" json:"deviceType,omitempty"`
// meta data is optional meta data for h2 logins to attach to the login record, things like IP etc.
Meta []*com_hailocab_service_login.KeyValue `protobuf:"bytes,4,rep,name=meta" json:"meta,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (m *Request) GetUsername() string {
if m != nil && m.Username != nil {
return *m.Username
}
return ""
}
func (m *Request) GetApplication() string {
if m != nil && m.Application != nil {
return *m.Application
}
return ""
}
func (m *Request) GetDeviceType() string {
if m != nil && m.DeviceType != nil {
return *m.DeviceType
}
return ""
}
func (m *Request) GetMeta() []*com_hailocab_service_login.KeyValue {
if m != nil {
return m.Meta
}
return nil
}
type Response struct {
SessId *string `protobuf:"bytes,1,req,name=sessId" json:"sessId,omitempty"`
Token *string `protobuf:"bytes,2,req,name=token" json:"token,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (m *Response) GetSessId() string {
if m != nil && m.SessId != nil {
return *m.SessId
}
return ""
}
func (m *Response) GetToken() string {
if m != nil && m.Token != nil {
return *m.Token
}
return ""
}
func init() {
}